/* ČEZ Extraliga Tabulka - Světlý styl podle volejbalpribram.cz */

.cvf-extraliga-wrapper {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #e0e0e0;
}

.cvf-extraliga-header {
    background: #ee1c25;
    padding: 15px 20px;
    color: #ffffff;
}

.cvf-extraliga-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvf-last-update {
    font-size: 12px;
    color: #ffebee;
    font-weight: 400;
}

.cvf-table-responsive {
    overflow-x: auto;
    background: #ffffff;
}

.cvf-extraliga-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #333333;
}

.cvf-extraliga-table thead {
    background: #ffffff;
    color: #ffffff;
}

.cvf-extraliga-table thead th {
    padding: 12px 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: none;
}

.cvf-extraliga-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

/* Střídající se barvy řádků */
.cvf-extraliga-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.cvf-extraliga-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.cvf-extraliga-table tbody tr:hover {
    background: #eeeeee;
}

/* Zvýraznění VK Trox Příbram */
.cvf-extraliga-table tbody tr.cvf-highlight {
    background: #ffebee !important;
    font-weight: 600;
}

.cvf-extraliga-table tbody tr.cvf-highlight:hover {
    background: #ffcdd2 !important;
}

.cvf-extraliga-table td {
    padding: 12px 10px;
    font-size: 15px;
    color: #424242;
}

.cvf-extraliga-table .col-pozice {
    width: 60px;
    text-align: center;
    font-weight: 700;
    color: #616161;
}

.cvf-extraliga-table .col-tym {
    text-align: left;
    padding-left: 15px;
    color: #212121;
    font-weight: 500;
}

.cvf-extraliga-table .col-stat {
    width: 70px;
    text-align: center;
    font-weight: 600;
    color: #424242;
}

/* Top 3 týmy - barevné pozice */
.cvf-extraliga-table tbody tr:nth-child(1) .col-pozice {
    color: #f39c12;
    font-weight: 800;
}

.cvf-extraliga-table tbody tr:nth-child(2) .col-pozice {
    color: #95a5a6;
    font-weight: 800;
}

.cvf-extraliga-table tbody tr:nth-child(3) .col-pozice {
    color: #cd7f32;
    font-weight: 800;
}

/* Responsivní design pro mobily */
@media screen and (max-width: 768px) {
    .cvf-extraliga-header h3 {
        font-size: 16px;
    }
    
    .cvf-extraliga-header {
        padding: 12px 15px;
    }
    
    .cvf-extraliga-table thead th {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .cvf-extraliga-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .cvf-extraliga-table .col-pozice {
        width: 45px;
    }
    
    .cvf-extraliga-table .col-stat {
        width: 50px;
    }
    
    .cvf-extraliga-table .col-tym {
        font-size: 12px;
        padding-left: 8px;
    }
}

@media screen and (max-width: 480px) {
    .cvf-extraliga-wrapper {
        margin: 10px 0;
    }
    
    .cvf-extraliga-header {
        padding: 10px 12px;
    }
    
    .cvf-extraliga-header h3 {
        font-size: 14px;
    }
    
    .cvf-last-update {
        font-size: 11px;
    }
    
    .cvf-extraliga-table thead th {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .cvf-extraliga-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .cvf-extraliga-table .col-tym {
        font-size: 11px;
    }
    
    .cvf-extraliga-table .col-pozice {
        width: 40px;
    }
    
    .cvf-extraliga-table .col-stat {
        width: 45px;
    }
}

/* Loading state */
.cvf-no-data {
    padding: 40px;
    text-align: center;
    color: #757575;
    font-style: italic;
    background: #fafafa;
}

/* Admin stránka */
.cvf-extraliga-wrapper .card {
    background: #ffffff;
}

/* Divi kompatibilita */
.et_pb_module .cvf-extraliga-wrapper {
    margin: 0;
}

/* Jemnější animace */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cvf-extraliga-table tbody tr {
    animation: fadeIn 0.3s ease-out;
}

.cvf-extraliga-table tbody tr:nth-child(1) { animation-delay: 0.03s; }
.cvf-extraliga-table tbody tr:nth-child(2) { animation-delay: 0.06s; }
.cvf-extraliga-table tbody tr:nth-child(3) { animation-delay: 0.09s; }
.cvf-extraliga-table tbody tr:nth-child(4) { animation-delay: 0.12s; }
.cvf-extraliga-table tbody tr:nth-child(5) { animation-delay: 0.15s; }

/* Zarovnání sloupce BODY vpravo */
.cvf-extraliga-table .col-stat:last-child {
    text-align: right;
    padding-right: 20px;
    font-weight: 700;
}

/* Tenčí písmo pro celou tabulku */
.cvf-extraliga-table {
    font-weight: 400;
}

/* Silnější písmo jen pro čísla */
.cvf-extraliga-table .col-stat {
    font-weight: 600;
}

/* ============================================
   STYLY PRO ZÁPASY
   ============================================ */

.cvf-match-wrapper {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 600px;
}

.cvf-match-header {
    background: #ee1c25;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvf-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    background: #ffffff;
}

.cvf-match-team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cvf-match-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.cvf-match-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    text-align: center;
    line-height: 1.3;
}

.cvf-match-center {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cvf-match-vs {
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    letter-spacing: 2px;
}

.cvf-match-score {
    font-size: 36px;
    font-weight: 700;
    color: ee1c25;
    letter-spacing: 2px;
}

.cvf-match-date {
    font-size: 15px;
    font-weight: 600;
    color: #424242;
}

.cvf-match-time {
    font-size: 14px;
    font-weight: 500;
    color: #757575;
}

/* Responsivní design pro zápasy */
@media screen and (max-width: 768px) {
    .cvf-match-wrapper {
        max-width: 100%;
    }
    
    .cvf-match-content {
        padding: 20px 15px;
    }
    
    .cvf-match-logo {
        width: 90px;
        height: 90px;
    }
    
    .cvf-match-team-name {
        font-size: 12px;
    }
    
    .cvf-match-vs {
        font-size: 24px;
    }
    
    .cvf-match-score {
        font-size: 28px;
    }
    
    .cvf-match-date {
        font-size: 13px;
    }
    
    .cvf-match-time {
        font-size: 12px;
    }
    
    .cvf-match-center {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .cvf-match-content {
        padding: 15px 10px;
    }
    
    .cvf-match-logo {
        width: 70px;
        height: 70px;
    }
    
    .cvf-match-team-name {
        font-size: 11px;
    }
    
    .cvf-match-vs {
        font-size: 20px;
    }
    
    .cvf-match-score {
        font-size: 24px;
    }
    
    .cvf-match-date {
        font-size: 12px;
    }
    
    .cvf-match-time {
        font-size: 11px;
    }
    
    .cvf-match-center {
        padding: 0 8px;
        gap: 5px;
    }
    
    .cvf-match-header {
        padding: 10px 15px;
        font-size: 14px;
    }
}