/* assets/css/standings.css */

/* Card Wrapper */
.standings-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Tabellen Layout */
.standings-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Header */
.standings-full-table th {
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
    text-align: inherit;
}

/* Zellen */
.standings-full-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    vertical-align: middle;
}

.standings-full-table tr:last-child td {
    border-bottom: none;
}

/* Zeilen-Logik */
.row-champ { background: rgba(16, 185, 129, 0.15); }
.row-champ td:first-child { border-left: 3px solid var(--primary); }

.row-top { background: rgba(16, 185, 129, 0.05); }

.row-barrage { background: rgba(220, 38, 38, 0.12) !important; }
.row-barrage td:first-child { border-left: 3px solid #f87171; }

.row-rel { background: rgba(220, 38, 38, 0.25) !important; }
.row-rel td:first-child { border-left: 3px solid var(--danger); }

/* Spalten Design */
.rank-cell { 
    font-weight: 600; 
    font-family: inherit; /* Kanit */
    color: var(--text-muted); 
    width: 40px; 
    text-align: center; 
}

.team-cell { 
    display: flex; 
    align-items: center; 
    font-weight: 500; 
    font-size: 15px; 
}
.team-cell a { 
    color: #fff; 
    text-decoration: none; 
    transition: color 0.2s; 
}
.team-cell a:hover { color: var(--primary); }

.num-cell { 
    font-family: inherit; /* Kanit (wirkt monospaced bei Zahlen) */
    text-align: center; 
}

.points-cell { 
    font-weight: 700; 
    color: #fff; 
    font-size: 16px; 
    text-align: center; 
    background: rgba(255,255,255,0.05); 
    border-radius: 6px; 
    padding: 4px 8px;
    display: inline-block;
    min-width: 30px;
}

/* Team Square */
.team-square { 
    width: 14px; 
    height: 14px; 
    display: inline-block; 
    margin-right: 12px; 
    border-radius: 2px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.5); 
    flex-shrink: 0;
}

/* Legende */
.table-legend {
    display: flex; gap: 20px; padding: 15px; font-size: 12px; color: var(--text-muted);
    border-top: 1px solid var(--border); 
    background: rgba(0,0,0,0.1); 
    flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-box { width: 12px; height: 12px; border-radius: 3px; }

/* Form Beads */
.form-beads { display: flex; gap: 3px; justify-content: flex-end; }
.bead { width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.6); }
.bead.win { background: var(--primary); }
.bead.draw { background: #64748b; color: #fff; }
.bead.lose { background: var(--danger); color: #fff; opacity: 0.9; }

/* Responsive */
@media(max-width: 768px) {
    .hide-mobile-l { display: none; }
    .standings-full-table th, .standings-full-table td { padding: 10px 5px; }
    .team-cell { font-size: 13px; }
    .points-cell { font-size: 14px; }
}