/* ==========================================================
   HoFi Billard - Team
   ========================================================== */

.team-page{
    max-width:1400px;
    margin:0 auto;
    padding:30px;
}

.team-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.back-button{
    display:inline-block;
    padding:10px 18px;
    border-radius:10px;
    background:#eef5ff;
    color:#2c7be5;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.back-button:hover{
    background:#dcecff;
}

.team-header{
    background:linear-gradient(135deg,#1d4e89,#2c7be5);
    color:#fff;
    border-radius:18px;
    padding:28px 32px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.team-header h1{
    margin:0;
    font-size:2rem;
    font-weight:700;
}

.team-competition{
    font-size:.95rem;
    opacity:.9;
    margin-bottom:6px;
}

.team-short-name{
    margin-top:8px;
    opacity:.85;
    font-size:.95rem;
}

.team-average{
    text-align:right;
}

.average-label{
    font-size:.9rem;
    opacity:.9;
}

.average-value{
    font-size:2.3rem;
    font-weight:700;
    margin-top:5px;
}

.team-content{
    display:grid;
    grid-template-columns:2fr 320px;
    gap:25px;
    margin-bottom:30px;
}

.team-panel{
    background:#fff;
    border-radius:18px;
    border:1px solid #d9e2ef;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    overflow:hidden;
}

.team-panel h2{
    margin:0;
    padding:18px 24px;
    background:#f7faff;
    border-bottom:1px solid #e4ebf5;
    color:#1d4e89;
    font-size:1.2rem;
}

.team-player-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 24px;
    text-decoration:none;
    color:#222;
    border-bottom:1px solid #edf2f7;
    transition:.2s;
}

.team-player-row:last-child{
    border-bottom:none;
}

.team-player-row:hover{
    background:#eef5ff;
}

.player-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.player-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#2c7be5;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    flex-shrink:0;
}

.player-name{
    font-size:1rem;
    font-weight:600;
    color:#1f2937;
}

.player-display{
    font-size:.85rem;
    color:#7b8794;
    margin-top:2px;
}

.player-right{
    min-width:70px;
    text-align:right;
    font-size:1.25rem;
    font-weight:700;
    color:#2c7be5;
}

.team-sidebar{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.info-card{
    background:#fff;
    border-radius:18px;
    border:1px solid #d9e2ef;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    padding:22px;
}

.info-title{
    color:#6b7280;
    font-size:.85rem;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.info-value{
    margin-top:10px;
    color:#1d4e89;
    font-size:1.8rem;
    font-weight:700;
}

.team-info-table{
    width:100%;
    border-collapse:collapse;
}

.team-info-table th{
    width:180px;
    text-align:left;
    padding:16px 24px;
    color:#6b7280;
    font-weight:600;
    border-bottom:1px solid #edf2f7;
}

.team-info-table td{
    padding:16px 24px;
    border-bottom:1px solid #edf2f7;
}

.team-info-table tr:last-child th,
.team-info-table tr:last-child td{
    border-bottom:none;
}

.coming-soon{
    margin-top:25px;
}

.coming-soon p{
    padding:24px;
    color:#6b7280;
}

.empty-message{
    padding:35px;
    text-align:center;
    color:#999;
    font-style:italic;
}

.badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.badge-green{
    background:#d1fae5;
    color:#047857;
}

.badge-red{
    background:#fee2e2;
    color:#b91c1c;
}

@media(max-width:1000px){

    .team-content{
        grid-template-columns:1fr;
    }

    .team-header{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .team-average{
        text-align:left;
    }

}

@media(max-width:700px){

    .team-page{
        padding:18px;
    }

    .team-player-row{
        padding:14px 16px;
    }

    .team-header{
        padding:22px;
    }

    .team-header h1{
        font-size:1.6rem;
    }

}