/* ==========================================================
   HoFi Billard - Teams
   ========================================================== */

.teams-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    margin: 0;
    color: #1f3c88;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-title p {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 24px;
}

.team-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d9e2ef;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .25s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

.team-header {
    background: linear-gradient(135deg,#1d4e89,#2c7be5);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.team-competition {
    font-size: .90rem;
    opacity: .90;
    margin-bottom: 6px;
}

.team-header h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
}

.team-short-name {
    margin-top: 5px;
    font-size: .95rem;
    opacity: .85;
}

.team-body {
    padding: 0;
}

.team-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    border-top: 1px solid #edf2f7;
    text-decoration: none;
    color: #222;
    transition: .20s;
}

.team-player:hover {
    background: #eef5ff;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.player-display {
    font-size: .82rem;
    color: #7a8599;
    margin-top: 2px;
}

.player-average {
    min-width: 70px;
    text-align: right;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c7be5;
}

.captain {
    font-size: 1.25rem;
}

.team-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-green {
    background: #d1fae5;
    color: #047857;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 900px) {

    .team-grid {
        grid-template-columns: 1fr;
    }

    .teams-page {
        padding: 20px;
    }

    .team-header {
        padding: 18px;
    }

    .team-player {
        padding: 14px 18px;
    }

}

.team-link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.team-link:hover{
    text-decoration:none;
}

.team-link:hover .team-header{
    filter:brightness(1.06);
}