/* ==========================================
   PLAYER PROFILE — OUANAMINTHE FC
   Adapté au nouveau player.php dynamique
========================================== */


/* ==========================================
   PAGE
========================================== */

.player-profile {
    padding-top: var(--space-40);
    padding-bottom: var(--space-64);
    background: var(--color-background);
}


/* ==========================================
   BREADCRUMB
========================================== */

.player-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-bottom: var(--space-24);
    color: var(--color-text-light);
    font-size: var(--fs-14);
}

.player-breadcrumb a {
    color: var(--color-primary-dark);
    font-weight: var(--fw-600);
}

.player-breadcrumb a:hover {
    color: var(--color-primary);
}

.player-breadcrumb i {
    flex: 0 0 auto;
    font-size: 11px;
}


/* ==========================================
   PROFILE CARD
========================================== */

.profile-card {
    display: grid;
    grid-template-columns:
        minmax(300px, 420px)
        minmax(0, 1fr);
    align-items: stretch;
    gap: var(--space-40);
    overflow: hidden;
    padding: var(--space-32);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}


/* ==========================================
   PHOTO
========================================== */

.profile-photo {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.profile-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 45, 82, .34),
        transparent 42%
    );
    pointer-events: none;
}

.profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-normal);
}

.profile-card:hover .profile-photo img {
    transform: scale(1.025);
}

.profile-number-badge {
    position: absolute;
    right: var(--space-20);
    bottom: var(--space-20);
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 70px;
    height: 70px;
    padding-inline: var(--space-10, 10px);
    border: 4px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-size: var(--fs-28);
    font-weight: var(--fw-800);
}


/* ==========================================
   DETAILS
========================================== */

.profile-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-block: var(--space-16);
}

.profile-kicker {
    display: block;
    margin-bottom: var(--space-10, 10px);
    color: var(--color-primary);
    font-size: var(--fs-13);
    font-weight: var(--fw-700);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-name {
    margin: 0 0 var(--space-16);
    color: var(--color-primary-dark);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: var(--fw-800);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.profile-position-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-10, 10px);
    margin-bottom: var(--space-28);
}

.profile-position,
.profile-number {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-14);
    font-weight: var(--fw-700);
}

.profile-position {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.profile-number {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
}


/* ==========================================
   META
========================================== */

.profile-meta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
    margin-bottom: var(--space-28);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-16);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
}

.profile-meta-item > i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--fs-18);
}

.profile-meta-item div {
    min-width: 0;
}

.profile-meta-item span,
.profile-meta-item strong {
    display: block;
}

.profile-meta-item span {
    margin-bottom: 3px;
    color: var(--color-text-light);
    font-size: var(--fs-12);
    font-weight: var(--fw-600);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.profile-meta-item strong {
    color: var(--color-primary-dark);
    font-size: var(--fs-16);
    overflow-wrap: anywhere;
}


/* ==========================================
   BIO
========================================== */

.profile-bio {
    margin-bottom: var(--space-28);
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-border);
}

.profile-section-label {
    display: block;
    margin-bottom: var(--space-10, 10px);
    color: var(--color-primary);
    font-size: var(--fs-12);
    font-weight: var(--fw-700);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-bio p {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--fs-17, 17px);
    line-height: 1.85;
}


/* ==========================================
   ACTIONS
========================================== */

.profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-12);
}

.profile-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
}


/* ==========================================
   NOT FOUND
========================================== */

.player-not-found {
    padding: var(--space-56) var(--space-24);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.player-not-found-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-16);
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: var(--fs-32);
}

.player-not-found > span {
    display: block;
    margin-bottom: var(--space-8);
    color: var(--color-primary);
    font-size: var(--fs-12);
    font-weight: var(--fw-700);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.player-not-found h1 {
    margin-bottom: var(--space-12);
    color: var(--color-primary-dark);
    font-size: var(--fs-32);
}

.player-not-found p {
    max-width: 560px;
    margin: 0 auto var(--space-20);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    .profile-card {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin-inline: auto;
    }

    .profile-photo {
        min-height: 0;
        aspect-ratio: 4 / 4.6;
    }

    .profile-photo img {
        min-height: 0;
    }

    .profile-details {
        padding-block: 0;
        text-align: center;
    }

    .profile-position-line,
    .profile-actions {
        justify-content: center;
    }

    .profile-meta {
        text-align: left;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 575.98px) {

    .player-profile {
        padding-top: var(--space-32);
        padding-bottom: var(--space-40);
    }

    .player-breadcrumb {
        font-size: var(--fs-12);
    }

    .profile-card {
        gap: var(--space-24);
        padding: var(--space-16);
        border-radius: var(--radius-lg);
    }

    .profile-photo {
        aspect-ratio: 4 / 5;
    }

    .profile-number-badge {
        right: var(--space-12);
        bottom: var(--space-12);
        min-width: 58px;
        height: 58px;
        font-size: var(--fs-22);
    }

    .profile-name {
        font-size: var(--fs-32);
    }

    .profile-meta {
        grid-template-columns: 1fr;
    }

    .profile-meta-item {
        text-align: left;
    }

    .profile-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .player-not-found {
        padding: var(--space-40) var(--space-20);
    }

    .player-not-found h1 {
        font-size: var(--fs-26);
    }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .profile-photo img {
        transition: none !important;
    }
}


/* ==========================================
   FIX — PROFILE TITLE / POSITION / META SPACING
========================================== */

/*
 * Bay non jwè a, pozisyon/nimewo a ak kat
 * Nationalité / Âge yo yon separasyon klè.
 */

.profile-kicker {
    margin-bottom: 12px;
}

.profile-name {
    margin-bottom: 24px;
}

.profile-position-line {
    margin-bottom: 32px;
    row-gap: 12px;
    column-gap: 12px;
}

.profile-meta {
    margin-top: 0;
    margin-bottom: 32px;
}

.profile-meta-item {
    min-height: 104px;
}


/* ==========================================
   DESKTOP / LAPTOP
========================================== */

@media (min-width: 992px) {

    .profile-details {
        justify-content: center;
        padding-block: 32px;
    }

    .profile-name {
        font-size: clamp(3rem, 5vw, 5rem);
        line-height: 1.02;
    }

    .profile-position-line {
        margin-bottom: 36px;
    }

    .profile-meta {
        gap: 20px;
    }
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    .profile-details {
        padding-top: 8px;
    }

    .profile-kicker {
        margin-bottom: 12px;
    }

    .profile-name {
        margin-bottom: 22px;
    }

    .profile-position-line {
        justify-content: center;
        margin-bottom: 28px;
    }

    .profile-meta {
        margin-bottom: 28px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 575.98px) {

    .profile-details {
        padding-top: 12px;
    }

    .profile-kicker {
        margin-bottom: 14px;
        line-height: 1.45;
    }

    .profile-name {
        margin-bottom: 20px;
        font-size: 30px;
        line-height: 1.15;
    }

    .profile-position-line {
        justify-content: center;
        margin-bottom: 26px;
        row-gap: 10px;
        column-gap: 10px;
    }

    .profile-meta {
        gap: 18px;
        margin-bottom: 28px;
    }

    .profile-meta-item {
        min-height: 116px;
    }
}