/* === КАТАЛОГ HERO === */
.catalog-hero {
    position: relative;
    text-align: center;
    padding: 120px 30px 60px;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/history-people.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.catalog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(234, 227, 210, 0.3), rgba(245, 241, 232, 0));
    z-index: 1;
}

.catalog-hero h1,
.catalog-hero p {
    position: relative;
    z-index: 2;
}
.catalog-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.catalog-hero p {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto;
}

/* === ФИЛТРИ === */
.filters-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 30px;
    margin-top: 20px;
}

.filters-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.filter-group select {
    padding: 10px 16px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    border: 1px solid #d4c5a9;
    background-color: #f5f1e8;
    border-radius: 4px;
    color: #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: #8b6f47;
}

.filter-group select:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.search-filter {
    flex: 1;
    min-width: 250px;
}

.search-filter input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    border: 1px solid #d4c5a9;
    background-color: #f5f1e8;
    border-radius: 4px;
    color: #2a2a2a;
    transition: all 0.3s ease;
}

.search-filter input:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

/* === КАТАЛОГ GRID === */
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.person-card {
    background: white;
    border: 1px solid #e5ddc8;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.person-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 111, 71, 0.2);
    border-color: #8b6f47;
}

.person-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.person-card:hover .person-card-image {
    opacity: 0.9;
}

.person-card-content {
    padding: 24px;
}

.person-card-name {
    font-family: 'Palatino', 'Book Antiqua', 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.person-card:hover .person-card-name {
    color: #8b6f47;
}

.person-card-period {
    font-size: 0.95rem;
    color: #8b6f47;
    margin-bottom: 12px;
    font-weight: 500;
}

.person-card-description {
    font-size: 1.05rem;
    color: #3a3a3a;
    line-height: 1.7;
}

/* === ПЕРИОД BADGE === */
.period-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(139, 111, 71, 0.1);
    color: #8b6f47;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 12px;
    font-weight: 500;
}

/* === NO RESULTS === */
.no-results {
    text-align: center;
    padding: 80px 30px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #4a4a4a;
}

.no-results p {
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .catalog-hero {
        padding: 60px 20px 40px;
    }

    .catalog-hero h1 {
        font-size: 2.2rem;
    }

    .catalog-hero p {
        font-size: 1.05rem;
    }

    .filters-container {
        flex-direction: column;
        padding: 20px;
    }

    .filter-group {
        width: 100%;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .catalog-container {
        padding: 0 20px 60px;
    }

    /* центрирано и запълнено фоново изображение на мобилни */
    .catalog-hero::before {
        background-position: center center;
        background-size: cover;
    }
}
