/* ====== STYLES GÉNÉRIQUES POUR LES ONGLETS ====== */
.app-tabs {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.5s ease-out;
}

.app-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e2e8f0;
}

.app-tab-item {
    flex: 1;
    margin: 0;
    position: relative;
}

.app-tab-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

.app-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    border-bottom: 3px solid transparent;
    min-height: 60px;
}

.app-tab-link:hover {
    color: var(--color-text-accent, #2563eb);
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
    transform: translateY(-1px);
}

.app-tab-link.active {
    color: var(--color-text-accent, #2563eb);
    background: #fff;
    border-bottom-color: var(--color-text-accent, #2563eb);
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.1);
    z-index: 1;
}

.app-tab-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-text-accent, #2563eb);
}

.app-tab-label {
    font-weight: inherit;
    letter-spacing: 0.025em;
}

.app-tab-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.app-tab-link.active .app-tab-icon,
.app-tab-link:hover .app-tab-icon {
    filter: grayscale(0);
}

/* ====== CONTENU DES ONGLETS ====== */
.app-tab-content {
    animation: fadeInUp 0.5s ease-out;
}

.app-tab-pane {
    display: none;
}

.app-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .app-tabs-nav {
        flex-wrap: wrap;
        background: #f8fafc;
    }
    
    .app-tab-item {
        flex: 1 1 50%;
        min-width: 0;
    }
    
    .app-tab-item::after {
        display: none;
    }
    
    .app-tab-link {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        min-height: 70px;
    }
    
    .app-tab-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 1.3em;
    }
    
    .app-tab-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .app-tab-item {
        flex: 1 1 100%;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .app-tab-item:last-child {
        border-bottom: none;
    }
    
    .app-tab-link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        text-align: left;
        min-height: 50px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .app-tab-link.active {
        border-bottom: none;
        border-left-color: var(--color-text-accent, #2563eb);
    }
    
    .app-tab-link.active::before {
        display: none;
    }
    
    .app-tab-icon {
        /*margin-right: 0.75rem;*/
        margin-bottom: 0;
        font-size: 1.1em;
    }
    
    .app-tab-label {
        font-size: 0.9rem;
    }
}

/* ====== STYLES SPÉCIFIQUES POUR LE CONTENU JOUEUR ====== */
.player-view-page {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.35), transparent 50%),
        linear-gradient(to bottom, #f4f4f4, #ffffff);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.section-player-profile {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr;
    height: 100vh;
    overflow: hidden;
    padding-block-start: 8rem;
    padding-block-end: 0;
}

.player-illustration {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-inline: 1rem;
    padding-top: 2rem;
}

.player-illustration img {
    will-change: transform, opacity;
    animation: slideIn 330ms ease-in-out;
    max-width: 180px;
    height: 240px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-info-block {
    will-change: transform, opacity;
    animation: slideIn 330ms ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.player-info-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.player-info-block p {
    margin: 0;
    font-size: 1rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #2563eb1a;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.tag-link:hover {
    background-color: #2563eb33;
    color: #1d4ed8;
}

.position-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.pill {
    background: #2563eb;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

.player-contracts-col {
    border-left: 1px dashed #ccc;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.player-contracts-col h3 {
    margin-bottom: 1rem;
    text-align: end;
    color: #666;
}

.player-contracts-col p {
    margin: 0;
    font-size: 0.95rem;
    text-align: end;
    color: #999;
}

.contract-scroll {
    /* will-change: transform, opacity;
    animation: slideInLeft 330ms ease-in-out; */
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    -ms-overflow-style: none;
}

.contract-card {
    position: relative;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* cursor: pointer; */
    overflow: hidden;
    min-height: 70px;
}

/* .contract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #60a5fa, #2563eb, rgb(32, 84, 255));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 4px;
} */

/* .contract-card:hover::before {
    opacity: 1;
} */

.contract-card .club-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.contract-card .contract-dates {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.25rem;
}

.info-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.info-item {
    min-width: 200px;
}

.info-item strong {
    color: #374151;
}

/* Section Statistiques */
.section-player-statistics {
    background: #f8fafc;
    padding: 4rem 0;
    min-height: 50vh;
}

.statistics-content {
    margin: 0 auto;
}

.statistics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.statistics-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.statistics-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.stats-tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.nav-tabs .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.nav-tabs .nav-link.active {
    background: white;
    color: #3b82f6;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

.tab-content {
    padding: 2rem;
}

.no-statistics {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.no-stats-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-statistics h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
}

.no-statistics p {
    color: #6b7280;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Animations spécifiques */
@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.app-tab-pane .section-player-profile {
    padding-top: 2rem;
}

.app-tab-pane .section-player-statistics {
    background: transparent;
    padding: 2rem 0;
}

.app-tab-pane .statistics-header {
    margin-bottom: 2rem;
}

/* ====== STYLES SPÉCIFIQUES POUR LE CONTENU CLUB ====== */
.club-info-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.club-infos {
    flex: 1;
}

.club-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.club-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.club-flag {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.club-title h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #1f2937;
    font-weight: 700;
}

.club-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #2563eb1a;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

.club-illustration {
    width: 300px;
    text-align: center;
}

.club-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .club-info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .club-illustration {
        width: 100%;
        order: -1;
    }

    .club-title h1 {
        font-size: 2rem;
    }
}

/* Responsive pour le contenu joueur */
@media (max-width: 1024px) {
    .section-player-profile {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }

    .player-contracts-col {
        border-left: none;
        border-top: 1px dashed #ccc;
        height: auto;
        max-height: 300px;
    }

    .contract-scroll {
        max-height: 280px;
    }

    .player-view-page {
        height: auto;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .section-player-statistics {
        padding: 2rem 0;
    }

    .statistics-header h2 {
        font-size: 2rem;
    }

    .statistics-header {
        margin-bottom: 2rem;
    }

    .no-statistics {
        padding: 2rem 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
