﻿/* =========================================================
   GEDIAN SPORTS - PUBLIC PEOPLE DIRECTORIES
   Shared by Journalists, MediaActors and Supporters
   ========================================================= */

.public-people-page,
.public-profile-detail {
    --gedian-green: #5B8C3B;
    --gedian-green-dark: #41672e;
    --gedian-green-soft: #eef5e9;
    --gedian-navy: #17293d;
    --gedian-text: #48554e;
    --gedian-muted: #7c8881;
    --gedian-border: #dfe6dc;
    --gedian-bg: #f7f9f6;
    min-height: 100vh;
    color: var(--gedian-text);
    background: radial-gradient(circle at 6% 0%, rgba(91,140,59,.055), transparent 26rem), linear-gradient(180deg, #fff 0%, var(--gedian-bg) 100%);
    font-family: "Tajawal","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
}

    .public-people-page .people-container,
    .public-profile-detail .profile-container {
        width: min(1440px, calc(100% - 28px));
        margin-inline: auto;
    }


/* =========================================================
   Directory registration strip
   ========================================================= */

.people-register-strip {
    margin: 16px 0 12px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9e7d2;
    border-radius: 11px;
    background: linear-gradient(90deg, #f2f8ee 0%, #fbfdf9 100%);
}

.people-register-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #56704a;
    font-size: .82rem;
    font-weight: 700;
}

    .people-register-copy strong {
        color: var(--gedian-navy);
        font-weight: 900;
    }

.people-register-action {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--gedian-green);
    color: #fff;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 900;
}

    .people-register-action:hover {
        background: var(--gedian-green-dark);
        color: #fff;
    }


/* =========================================================
   Directory header/search
   ========================================================= */

.people-title-row {
    margin-bottom: 9px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

    .people-title-row h1 {
        margin: 0;
        color: var(--gedian-navy);
        font-size: 1.4rem;
        font-weight: 900;
    }

    .people-title-row p {
        margin: 3px 0 0;
        color: var(--gedian-muted);
        font-size: .79rem;
    }

.people-search-card {
    margin-bottom: 9px;
    padding: 10px;
    border: 1px solid var(--gedian-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(27,46,31,.025);
}

.people-search-grid {
    display: grid;
    grid-template-columns: minmax(230px,1.65fr) repeat(5,minmax(120px,.8fr)) auto auto;
    align-items: end;
    gap: 7px;
}

.people-search-field {
    min-width: 0;
}

    .people-search-field label {
        display: block;
        margin-bottom: 4px;
        color: #647168;
        font-size: .7rem;
        font-weight: 800;
    }

    .people-search-field input,
    .people-search-field select {
        width: 100%;
        min-height: 39px;
        padding: 6px 9px;
        border: 1px solid #dfe5dc;
        border-radius: 8px;
        background: #fbfcfa;
        color: #4d5a52;
        font-family: inherit;
        font-size: .77rem;
        outline: 0;
    }

        .people-search-field input:focus,
        .people-search-field select:focus {
            border-color: rgba(91,140,59,.65);
            box-shadow: 0 0 0 3px rgba(91,140,59,.09);
        }

.people-search-button,
.people-reset-button {
    min-height: 39px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 900;
}

.people-search-button {
    min-width: 65px;
    border: 1px solid var(--gedian-green);
    background: var(--gedian-green);
    color: #fff;
}

    .people-search-button:hover {
        background: var(--gedian-green-dark);
    }

.people-reset-button {
    min-width: 52px;
    border: 1px solid #dfe4dd;
    background: #fff;
    color: #77837c;
    text-decoration: none;
}

    .people-reset-button:hover {
        background: #f4f7f2;
        color: var(--gedian-green-dark);
    }

.people-result-context {
    margin: 0 1px 11px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #7a867f;
    font-size: .74rem;
}

    .people-result-context strong {
        color: var(--gedian-navy);
        font-family: Arial,sans-serif;
        font-size: .86rem;
    }

.people-context-chip {
    padding: 4px 7px;
    border: 1px solid #e0e6dd;
    border-radius: 999px;
    background: #fff;
    color: #68756d;
}


/* =========================================================
   Directory cards
   ========================================================= */

.people-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
}

.person-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe6dc;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(30,49,35,.035);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

    .person-card:hover {
        transform: translateY(-2px);
        border-color: #cbdcc4;
        box-shadow: 0 10px 25px rgba(36,66,28,.075);
        color: inherit;
    }

.person-card-media {
    position: relative;
    height: 205px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 25%, #f7faf5, #e4ede0 70%);
}

    .person-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.person-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #638153;
    font-size: 3rem;
    font-weight: 900;
}

.person-card-topbadges {
    position: absolute;
    top: 9px;
    inset-inline: 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.person-card-badge {
    min-height: 25px;
    padding: 4px 7px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 999px;
    background: rgba(23,41,61,.78);
    color: #fff;
    backdrop-filter: blur(6px);
    font-size: .64rem;
    font-weight: 900;
}

    .person-card-badge.is-verified {
        background: rgba(68,119,49,.88);
    }

.person-card-body {
    padding: 12px 12px 9px;
    flex: 1 1 auto;
}

.person-card-name {
    margin: 0;
    overflow: hidden;
    color: var(--gedian-navy);
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-card-name-en {
    min-height: 17px;
    margin-top: 1px;
    overflow: hidden;
    color: #98a19c;
    font-family: Arial,sans-serif;
    font-size: .66rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-card-subtitle {
    min-height: 38px;
    margin: 7px 0 8px;
    display: grid;
    place-items: center;
    color: #65736b;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.person-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.person-card-meta-item {
    min-width: 0;
    padding: 7px 6px;
    border-radius: 8px;
    background: #f7f9f6;
    text-align: center;
}

    .person-card-meta-item span,
    .person-card-meta-item strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .person-card-meta-item span {
        color: #9aa39e;
        font-size: .61rem;
    }

    .person-card-meta-item strong {
        margin-top: 1px;
        color: #546159;
        font-size: .69rem;
        font-weight: 900;
    }

.person-card-footer {
    min-height: 38px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf1eb;
    color: #748078;
    font-size: .68rem;
}

    .person-card-footer strong {
        color: var(--gedian-green-dark);
        font-weight: 900;
    }

.js-progressive-item.is-progressive-hidden {
    display: none !important;
}

.people-show-more-wrap {
    padding: 18px 0 3px;
    text-align: center;
}

.people-show-more {
    min-height: 40px;
    padding: 8px 17px;
    border: 1px solid #cfdcc9;
    border-radius: 9px;
    background: #fff;
    color: var(--gedian-green-dark);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 900;
}

    .people-show-more:hover {
        background: var(--gedian-green-soft);
    }

.people-message {
    min-height: 210px;
    padding: 30px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid var(--gedian-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

    .people-message span {
        font-size: 2.1rem;
    }

    .people-message strong {
        margin-top: 7px;
        color: var(--gedian-navy);
        font-size: 1rem;
    }

    .people-message p {
        margin: 4px 0 0;
        color: var(--gedian-muted);
        font-size: .8rem;
    }


/* =========================================================
   Detail profile
   ========================================================= */

.profile-back-row {
    padding: 14px 0 8px;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #67756c;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 800;
}

    .profile-back-link:hover {
        color: var(--gedian-green-dark);
    }

.profile-hero {
    position: relative;
    margin-bottom: 68px;
    overflow: visible;
    border: 1px solid #dce6d8;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(30,50,35,.05);
}

.profile-banner {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(120deg, #456d31, #7fa75f);
}

    .profile-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(13,26,16,.04) 0%, rgba(13,26,16,.28) 100%);
        pointer-events: none;
    }

.profile-identity {
    min-height: 118px;
    padding: 15px 22px 17px 190px;
    position: relative;
}

[dir="rtl"] .profile-identity {
    padding: 15px 190px 17px 22px;
}

.profile-avatar-wrap {
    position: absolute;
    bottom: 18px;
    inset-inline-start: 23px;
    width: 142px;
    height: 142px;
    padding: 5px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #d4dfd0, 0 8px 24px rgba(29,48,34,.18);
}

    .profile-avatar-wrap img,
    .profile-avatar-fallback {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .profile-avatar-wrap img {
        object-fit: cover;
    }

.profile-avatar-fallback {
    display: grid;
    place-items: center;
    background: #e5eee0;
    color: #557644;
    font-size: 2.5rem;
    font-weight: 900;
}

.profile-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

    .profile-name-line h1 {
        margin: 0;
        color: var(--gedian-navy);
        font-size: 1.55rem;
        font-weight: 900;
    }

.profile-name-en {
    margin-top: 2px;
    color: #9aa39e;
    font-family: Arial,sans-serif;
    font-size: .76rem;
}

.profile-lead {
    margin: 6px 0 0;
    color: #66736b;
    font-size: .84rem;
    font-weight: 700;
}

.profile-badges {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.profile-badge {
    min-height: 26px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef3eb;
    color: #5c6d54;
    font-size: .66rem;
    font-weight: 900;
}

    .profile-badge.is-green {
        background: #e8f5e7;
        color: #407848;
    }

    .profile-badge.is-gold {
        background: #fff5dc;
        color: #8e7427;
    }

.profile-content-grid {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr);
    gap: 14px;
    align-items: start;
}

.profile-card {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--gedian-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(31,50,36,.03);
}

    .profile-card:last-child {
        margin-bottom: 0;
    }

.profile-card-header {
    min-height: 51px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e9df;
    background: linear-gradient(90deg, #f2f8ef, #fbfdf9);
}

    .profile-card-header span {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: var(--gedian-green);
        color: #fff;
        font-size: .8rem;
    }

    .profile-card-header h2 {
        margin: 0;
        color: var(--gedian-navy);
        font-size: .92rem;
        font-weight: 900;
    }

.profile-card-body {
    padding: 15px;
}

.profile-about {
    margin: 0;
    color: #5e6b63;
    font-size: .86rem;
    line-height: 1.95;
    white-space: pre-line;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.profile-info-item {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #edf1eb;
    border-radius: 9px;
    background: #fafcf9;
}

    .profile-info-item span,
    .profile-info-item strong {
        display: block;
    }

    .profile-info-item span {
        color: #9aa39e;
        font-size: .65rem;
    }

    .profile-info-item strong {
        margin-top: 2px;
        color: #4d5a53;
        font-size: .76rem;
        font-weight: 900;
        line-height: 1.45;
    }

.profile-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-social-link {
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5d8;
    border-radius: 8px;
    background: #fff;
    color: #56665d;
    text-decoration: none;
    font-family: Arial,"Tajawal",sans-serif;
    font-size: .7rem;
    font-weight: 800;
}

    .profile-social-link:hover {
        border-color: #c8d8c2;
        background: var(--gedian-green-soft);
        color: var(--gedian-green-dark);
    }

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
}

.profile-gallery-item {
    height: 215px;
    overflow: hidden;
    border: 1px solid #e1e7df;
    border-radius: 10px;
    background: #edf3e9;
}

    .profile-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-sidebar .profile-info-grid {
    grid-template-columns: 1fr;
}

.profile-privacy-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #dfebda;
    border-radius: 10px;
    background: #f5faf2;
    color: #617357;
    font-size: .75rem;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .people-search-grid {
        grid-template-columns: minmax(220px,1.6fr) repeat(4,minmax(120px,1fr)) auto auto;
    }

    .people-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .person-card-media {
        height: 185px;
    }
}

@media (max-width: 991.98px) {
    .people-search-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .people-search-field.is-search {
        grid-column: span 2;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px;
    }

        .profile-sidebar .profile-card {
            margin-bottom: 0;
        }
}

@media (max-width: 767.98px) {
    .public-people-page .people-container,
    .public-profile-detail .profile-container {
        width: min(100% - 18px, 1440px);
    }

    .people-register-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .people-register-action {
        width: 100%;
    }

    .people-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .people-search-field.is-search {
        grid-column: 1 / -1;
    }

    .people-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .person-card-media {
        height: 167px;
    }

    .profile-banner {
        height: 205px;
    }

    .profile-hero {
        margin-bottom: 58px;
    }

    .profile-identity,
    [dir="rtl"] .profile-identity {
        padding: 72px 14px 14px;
        text-align: center;
    }

    .profile-avatar-wrap {
        bottom: auto;
        top: -60px;
        inset-inline-start: 50%;
        width: 120px;
        height: 120px;
        transform: translateX(-50%);
    }

    [dir="rtl"] .profile-avatar-wrap {
        transform: translateX(50%);
    }

    .profile-name-line,
    .profile-badges {
        justify-content: center;
    }

        .profile-name-line h1 {
            font-size: 1.28rem;
        }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-gallery-item {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .people-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .people-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .people-search-button,
    .people-reset-button {
        width: 100%;
    }

    .person-card-body {
        padding: 10px 9px 8px;
    }

    .person-card-name {
        font-size: .88rem;
    }

    .person-card-subtitle {
        font-size: .68rem;
    }

    .person-card-meta-item {
        padding-inline: 4px;
    }

    .profile-banner {
        height: 180px;
    }

    .profile-gallery {
        grid-template-columns: 1fr;
    }

    .profile-gallery-item {
        height: 230px;
    }
}

@media (max-width: 390px) {
    .people-grid {
        grid-template-columns: 1fr;
    }

    .person-card-media {
        height: 250px;
    }

    .people-search-grid {
        grid-template-columns: 1fr;
    }

    .people-search-field.is-search {
        grid-column: auto;
    }
}
