/* ==========================================================================
   HEART OF KURDISTAN — PEOPLE & HERITAGE STYLESHEET (people.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Category Filter Navigation Bar
   -------------------------------------------------------------------------- */
.people-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 2.5rem 0 3rem;
    padding: 1.25rem 1.5rem;
    background: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.people-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.filter-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.filter-tab-btn .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.filter-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Live Search Box */
.people-search-box {
    position: relative;
    min-width: 260px;
    flex-grow: 1;
    max-width: 380px;
}

.people-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    pointer-events: none;
}

.people-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    background: rgba(10, 15, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.people-search-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* --------------------------------------------------------------------------
   2. People Card Grid (Homepage & Directory)
   -------------------------------------------------------------------------- */
.people-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.person-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(18, 24, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.person-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.15);
}

.person-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 105%;
    overflow: hidden;
    background: #0b0f19;
}

.person-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-card:hover .person-img-wrapper img {
    transform: scale(1.08);
}

.person-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.person-honor-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.person-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.person-kurdish-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 0.3rem;
    direction: rtl;
    text-align: left;
}

.person-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.person-card-desc {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.person-traits-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.trait-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
}

.person-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-read-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 10px;
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-read-person:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    border-color: #fbbf24;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. Person Detail Page Styles
   -------------------------------------------------------------------------- */
.person-detail-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0) 70%),
                linear-gradient(180deg, #090d16 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.person-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 968px) {
    .person-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.person-hero-portrait {
    position: relative;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.15);
}

.person-hero-portrait img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.person-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-badge-honor {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 9999px;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
}

.person-hero-kurdish {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.4rem;
}

.person-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .person-hero-title {
        font-size: 2.1rem;
    }
}

.person-hero-summary {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Quote Callout Banner */
.person-proverb-box {
    position: relative;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-left: 4px solid #fbbf24;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.person-proverb-box i.quote-icon {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-size: 2.25rem;
    color: rgba(251, 191, 36, 0.12);
}

.proverb-text {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    font-style: italic;
    line-height: 1.6;
}

/* Key Facts 4-Grid */
.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin: 3rem 0;
}

.fact-card {
    padding: 1.35rem 1.5rem;
    background: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 12px);
    transition: transform 0.25s ease;
}

.fact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.35);
}

.fact-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-card-header i {
    font-size: 1rem;
}

.fact-card-val {
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Narrative Story Chapters */
.person-narrative-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.narrative-chapter {
    position: relative;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    color: #34d399;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.chapter-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.chapter-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Prev / Next Nav Bar */
.person-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 4rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.person-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.4rem;
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.person-nav-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-all-people {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease;
}

.btn-all-people:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Quick-Switch Carousel / Grid */
.other-people-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.other-person-mini-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
}

.other-person-mini-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mini-card-img {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background: #0b0f19;
}

.mini-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card-body {
    padding: 0.9rem;
}

.mini-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.mini-card-kurdish {
    font-size: 0.8rem;
    color: #34d399;
    font-weight: 600;
}
