/* ========================================================================
   TEMPLATE STANDINGS – Flex tabela
   ======================================================================== */

.standings {
    margin-bottom: 24px;
}

.standings__group-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

/* Header */
.standings__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

/* Red */
.standings__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.standings__row:hover {
    background: #fafafa;
}

.standings__row--highlighted {
    background: #e3f2fd;
}

.standings__row--highlighted:hover {
    background: #bbdefb;
}

/* Ćelije */
.standings__cell {
    flex-shrink: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.standings__cell--pos {
    width: 32px;
    font-weight: 700;
    color: #888;
}

.standings__cell--team {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.standings__cell--played,
.standings__cell--wins,
.standings__cell--draws,
.standings__cell--losses,
.standings__cell--gf,
.standings__cell--ga,
.standings__cell--gd {
    width: 36px;
}

.standings__cell--pts {
    width: 40px;
    font-weight: 700;
    color: #1a1a1a;
}

.standings__cell--form {
    width: 80px;
}

/* Tim link */
.standings__team-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    min-width: 0;
}

.standings__team-link:hover {
    color: #1a73e8;
}

.standings__team-logo {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
}

.standings__team-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Forma */
.standings__form {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.standings__form-char {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.standings__form-char--W {
    background: #2e7d32;
}

.standings__form-char--D {
    background: #f57f17;
}

.standings__form-char--L {
    background: #c62828;
}

/* COMPACT MOD */
.standings--compact .standings__header,
.standings--compact .standings__row {
    gap: 6px;
    padding: 6px 8px;
}

.standings--compact .standings__cell--pos {
    width: 24px;
    font-size: 12px;
}

.standings--compact .standings__cell--played,
.standings--compact .standings__cell--gd {
    width: 28px;
    font-size: 12px;
}

.standings--compact .standings__cell--pts {
    width: 32px;
    font-size: 13px;
}

/* Toggle dugme za compact mod */
.standings__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin: 12px auto;
    transition: background 0.2s;
}

.standings__toggle-btn:hover {
    background: #f5f5f5;
}

.standings__toggle-icon {
    font-size: 10px;
}

.standings__full-table {
    display: block;
}

/* ========================================================================
   RESPONSIVE – sakrij kolone na mobilnom
   ======================================================================== */

@media (max-width: 768px) {
    .standings__cell--wins,
    .standings__cell--draws,
    .standings__cell--losses,
    .standings__cell--gf,
    .standings__cell--ga {
        display: none;
    }

    .standings__cell--played,
    .standings__cell--gd {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .standings__cell--wins,
    .standings__cell--draws,
    .standings__cell--losses,
    .standings__cell--gf,
    .standings__cell--ga,
    .standings__cell--form {
        display: none;
    }

    .standings__cell--team {
        font-size: 12px;
    }

    .standings__team-name {
        max-width: 120px;
    }
}

.standings--compact {
    text-align: center;
}





