/* ====================================
   NOVA ACADEMY - FICHE JOUEUR
   ==================================== */

.profile-page {
    min-height: 75vh;
    background: #0c0917;
    color: white;
    padding: 55px 20px 90px;
}

.profile-container {
    max-width: 900px;
    margin: auto;
}

.back-link {
    display: inline-block;
    color: #c18aff;
    text-decoration: none;
    margin-bottom: 25px;
    font-size: 14px;
}

.back-link:hover {
    color: white;
}

.profile-card {
    background: #211632;
    border: 1px solid #493064;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,.3);
}

.profile-banner {
    background: linear-gradient(
        120deg,
        #26133f,
        #6025a0,
        #1c1030
    );
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 25px 15px;
    box-sizing: border-box;
    color: #e5d0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
}

.profile-content {
    padding: 0 35px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    margin-top: -65px;
    background: #35204e;
    border: 4px solid #a855f7;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-icon {
    font-size: 75px;
    color: #d8a5ff;
}

.profile-content h1 {
    color: #ffffff;
    font-size: clamp(30px, 6vw, 44px);
    margin: 20px 0 10px;
    overflow-wrap: anywhere;
}

.profile-captain {
    background: #6d28d9;
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
}

.profile-player {
    color: #c18aff;
    font-size: 14px;
}

.profile-subtitle {
    color: #b5a3ca;
    margin: 18px 0 30px;
}

.profile-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.profile-stat {
    min-width: 0;
    background: #160f25;
    border: 1px solid #493064;
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-stat span {
    color: #a99bb9;
    font-size: 11px;
    letter-spacing: 2px;
}

.profile-stat strong {
    color: white;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.profile-about {
    width: 100%;
    margin-top: 35px;
    text-align: left;
}

.profile-about h2 {
    color: #c18aff;
    font-size: 22px;
}

.profile-about p {
    color: #d2c4e0;
    line-height: 1.8;
}

.profile-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.profile-socials a {
    background: #6d28d9;
    color: white;
    padding: 12px 25px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    transition: .2s ease;
}

.profile-socials a:hover {
    background: #9333ea;
    transform: translateY(-2px);
}

.profile-bottom {
    text-align: center;
    margin-top: 30px;
}

.profile-bottom a {
    color: #c18aff;
    text-decoration: none;
}

.profile-bottom a:hover {
    color: white;
}

/* Cartes cliquables des rosters */

.nova-teams a.player-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nova-teams .player-card-link:focus-visible {
    outline: 3px solid #c18aff;
    outline-offset: 4px;
}

.player-open {
    margin-top: auto;
    font-size: 12px;
    color: #c18aff;
}

@media (max-width: 600px) {
    .profile-content {
        padding: 0 18px 35px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-banner {
        font-size: 10px;
        letter-spacing: 1px;
    }
}
