/* ==========================================================================
   S11.cz - COMPETITIONS.CSS
   Styly pro ligové tabulky, střelce a rozpisy kol
   ========================================================================== */

/* --- OVLÁDACÍ PANEL (Filtry úrovní a sezón) --- */
.comp-control-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.comp-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.comp-tab {
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s;
}

.comp-tab:hover {
    color: #fff;
    border-color: var(--text-muted);
}

.comp-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* --- TABULKA SOUTĚŽE & STŘELCI (Grid layout) --- */
.comp-grid-top {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

/* Tabulka střelců v rozcestníku soutěží — drobnější písmo a klubový subtitle pod jménem */
.scorers-table .scorer-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.scorers-table .scorer-clubs {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.scorers-table .accent-text { font-size: 1rem; }

.scorers-empty { padding: 20px; }

/* Odstup obsahu pod ovládacím panelem */
.unified-content { margin-top: 25px; }

/* Zvýraznění postupů/sestupů (tr.row-promoted, tr.row-relegated) je v components/tables.css */

/* --- ROZPIS ZÁPASŮ (Horizontal scroll) --- */
.rounds-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Custom scrollbar pro Chrome/Safari */
.rounds-scroll-container::-webkit-scrollbar { 
    height: 8px; 
}
.rounds-scroll-container::-webkit-scrollbar-track { 
    background: var(--bg-main);
    border-radius: 4px;
}
.rounds-scroll-container::-webkit-scrollbar-thumb { 
    background: var(--border); 
    border-radius: 10px; 
}
.rounds-scroll-container::-webkit-scrollbar-thumb:hover { 
    background: var(--accent); 
}

.round-column {
    min-width: 320px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.round-column h4 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.match-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

/* Flex layout pro oříznutí dlouhých jmen klubů v boxu rozpisu */
.match-mini-row .team-home,
.match-mini-row .team-away {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-mini-row .team-home {
    text-align: right;
    padding-right: 10px;
}

.match-mini-row .team-away {
    text-align: left;
    padding-left: 10px;
}

.match-mini-row a {
    text-decoration: none;
    color: inherit;
}

.match-mini-row .score-link {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 0;
    color: var(--accent);
    font-weight: 800;
    width: 50px;
    flex-shrink: 0;
    display: block;
    text-align: center;
    transition: 0.2s;
}

.match-mini-row .score-link:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* --- RESPONZIVITA --- */
@media (max-width: 1200px) {
    .comp-grid-top {
        grid-template-columns: 1fr;
    }
    
    .scorers-section {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .comp-control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comp-tabs {
        justify-content: flex-start;
    }
    
    .comp-season-dropdown {
        text-align: center;
        border-top: 1px solid var(--border);
        padding-top: 15px;
    }
    
    .round-column {
        min-width: 280px;
    }
}