/* Hunting Funds — integrat în tema publică bHunt */

.hf-page {
    --hf-green-dark: #1e3c2a;
    --hf-green: #2f5d3a;
    --hf-accent: #28a745;
    --hf-bg: #f8f9fa;
}

.hf-page.hf-embedded {
    min-height: calc(100vh - 76px);
    background: var(--hf-bg);
    padding: 76px 16px 0;
}

@media (min-width: 992px) {
    .hf-page.hf-embedded {
        padding-top: 80px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

.hf-shell {
    max-width: 1140px;
    margin: 0 auto;
}

.hf-page.hf-embedded {
    max-width: 1140px;
    margin: 0 auto;
}

.hf-embedded .hf-hero {
    text-align: center;
    color: #fff;
    margin: 0 0 24px;
    padding: 2.5rem 1rem 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #1e3c2a 0%, #2f5d3a 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hf-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.6rem;
    color: #b8e6c5;
}

.hf-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hf-hero p {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.hf-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--hf-accent);
    overflow: visible;
    margin-bottom: 1.5rem;
}

.hf-filters-panel {
    position: relative;
    z-index: 2;
}

.hf-results-panel,
.hf-loading-panel,
.hf-empty-panel {
    position: relative;
    z-index: 1;
}

.hf-filters {
    padding: 22px 24px 24px;
    position: relative;
    overflow: visible;
}

#hunting-funds-app.haf-picker-open .hf-filters-panel {
    z-index: 50;
}

#hunting-funds-app.haf-picker-open .hf-results-panel,
#hunting-funds-app.haf-picker-open .hf-loading-panel,
#hunting-funds-app.haf-picker-open .hf-empty-panel {
    z-index: 0;
}

.hf-field {
    position: relative;
    z-index: 1;
}

#hunting-funds-app .hf-field.hf-field-raised {
    z-index: 60;
}

.hf-field .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2f5d3a;
}

.hf-field .form-label i {
    color: #28a745;
    width: 16px;
    text-align: center;
}

.hf-filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #1e3c2a;
    font-size: 1.05rem;
    font-weight: 700;
}

.hf-filters-title i {
    color: #28a745;
}

.hf-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.hf-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2f5d3a;
}

.hf-field label i {
    color: #28a745;
    width: 16px;
    text-align: center;
}

.hf-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dde3e8;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e3c2a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232f5d3a' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.hf-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}

.hf-select:disabled {
    background-color: #f4f6f8;
    color: #8a939c;
    cursor: not-allowed;
}

.hf-field-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #6c757d;
}

.hf-results {
    padding: 0;
}

.hf-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eef1f3;
}

.hf-results-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3c2a;
    line-height: 1.35;
    max-width: 100%;
    word-break: break-word;
}

.hf-results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef7f0;
    color: #2f5d3a;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.hf-badge i {
    color: #28a745;
}

.hf-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hf-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.hf-table thead th {
    position: sticky;
    top: 0;
    z-index: 0;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1e3c2a, #2f5d3a);
    white-space: nowrap;
}

.hf-table tbody tr {
    border-bottom: 1px solid #eef1f3;
    transition: background 0.15s ease;
}

.hf-table tbody tr:hover {
    background: #f8fbf9;
}

.hf-table tbody tr:last-child {
    border-bottom: none;
}

.hf-table td {
    padding: 14px 16px;
    vertical-align: top;
    font-size: 0.92rem;
    color: #495057;
    line-height: 1.5;
}

.hf-table .col-id {
    width: 52px;
    text-align: center;
    font-weight: 800;
    color: #28a745;
}

.hf-table .col-name {
    font-weight: 700;
    color: #1e3c2a;
    min-width: 160px;
}

.hf-table .col-location {
    min-width: 140px;
}

.hf-table .col-location i {
    color: #28a745;
    margin-right: 4px;
}

.hf-table .col-area {
    white-space: nowrap;
    font-weight: 600;
}

.hf-table .col-area i {
    color: #28a745;
    margin-right: 4px;
}

.hf-table .col-desc {
    color: #6c757d;
    max-width: 320px;
}

/* Mobile cards */
.hf-cards {
    display: none;
    padding: 16px;
    gap: 12px;
}

.hf-card {
    border: 1px solid #e8ecef;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 60, 42, 0.06);
}

.hf-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.hf-card-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef7f0, #dff0e4);
    color: #1e3c2a;
    font-weight: 800;
    font-size: 0.9rem;
}

.hf-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #1e3c2a;
    line-height: 1.35;
    word-break: break-word;
}

.hf-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #495057;
}

.hf-card-row i {
    width: 16px;
    margin-top: 2px;
    color: #28a745;
    flex-shrink: 0;
}

.hf-card-row strong {
    color: #1e3c2a;
}

.hf-card-desc {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.55;
    word-break: break-word;
}

.hf-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #eef1f3;
}

.hf-pagination-info {
    font-size: 0.88rem;
    color: #6c757d;
}

.hf-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hf-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dde3e8;
    border-radius: 10px;
    background: #fff;
    color: #1e3c2a;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hf-page-btn:hover:not(:disabled):not(.active) {
    border-color: #28a745;
    color: #28a745;
    background: #f4fbf6;
}

.hf-page-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: transparent;
    color: #fff;
}

.hf-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hf-page-ellipsis {
    color: #adb5bd;
    padding: 0 4px;
    user-select: none;
}

.hf-empty,
.hf-loading {
    text-align: center;
    padding: 48px 24px;
}

.hf-empty-icon,
.hf-loading-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f7f5;
    color: #28a745;
    font-size: 1.75rem;
}

.hf-empty h3,
.hf-loading h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3c2a;
}

.hf-empty p,
.hf-loading p {
    margin: 0;
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hf-loading-icon i {
    animation: hf-spin 0.9s linear infinite;
}

@keyframes hf-spin {
    to { transform: rotate(360deg); }
}

.hf-empty--hero {
    margin: 0 0 2rem;
    padding: 2rem 1.25rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--hf-accent);
}

.hf-empty--hero .hf-empty-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.12));
    color: var(--hf-accent);
}

.hf-empty--hero h3 {
    color: var(--hf-green-dark);
}

.hf-empty--hero p {
    color: #666;
}

@media (max-width: 767.98px) {
    .hf-filter-grid {
        grid-template-columns: 1fr;
    }

    .hf-filters,
    .hf-results-header,
    .hf-pagination {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hf-results-header {
        flex-direction: column;
    }

    .hf-results-meta {
        justify-content: flex-start;
    }

    .hf-table-desktop {
        display: none !important;
    }

    .hf-cards {
        display: flex;
        flex-direction: column;
    }

    .hf-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .hf-pagination-info {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .hf-cards {
        display: none !important;
    }
}
