/* ══════════════════════════════════════════════════════════════
   Puan Durumu & Fikstür — Sports Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ── League Tabs ─────────────────────────────────────────── */
.league-tabs-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 12px 16px;
}

.league-tab {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 6px 6px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.league-tab:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.league-tab.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-color: rgba(255, 255, 255, .15);
    box-shadow: 0 2px 8px rgba(231, 76, 60, .3);
}

.league-tab-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ── Standings Card ──────────────────────────────────────── */
.standings-header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 16px;
}

.standings-league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.standings-table {
    font-size: 0.82rem;
}

.standings-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    padding: 6px 4px;
    position: sticky;
    top: 0;
}

.standings-table tbody tr {
    transition: background .15s ease;
}

.standings-table tbody tr:hover {
    background: #f0f4ff !important;
}

.standings-row-top {
    border-left: 3px solid #1b5e20;
}

.standings-row-bottom {
    border-left: 3px solid #c62828;
}

.standings-rank {
    font-size: 0.8rem;
    color: #495057;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    font-size: 0.82rem;
}

.standings-points {
    color: #1b5e20;
    font-size: 0.9rem;
}

/* ── Form Badges ─────────────────────────────────────────── */
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    margin: 0 1px;
}

.form-win {
    background: #2e7d32;
}

.form-draw {
    background: #f9a825;
}

.form-loss {
    background: #c62828;
}

.form-none {
    background: #9e9e9e;
}

/* ── Fixtures Card ───────────────────────────────────────── */
.fixtures-header {
    background: linear-gradient(135deg, #283593, #1565c0);
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 16px;
}

.round-select {
    width: auto;
    min-width: 120px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
    font-size: 0.82rem;
    font-weight: 600;
}

.round-select option {
    color: #333;
    background: #fff;
}

.round-nav-btn {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
}

.round-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.round-nav-btn:disabled {
    opacity: .3;
}

/* ── Fixture Items ───────────────────────────────────────── */
.fixture-date-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057;
    text-transform: uppercase;
}

.fixture-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s ease;
    gap: 16px;
}

.fixture-item:hover {
    background: #f8f9fa;
}

.fixture-item:last-child {
    border-bottom: none;
}

.fixture-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fixture-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.fixture-team.home-team {
    justify-content: flex-end;
    text-align: right;
}

.fixture-team.away-team {
    justify-content: flex-start;
}

.fixture-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.fixture-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    justify-content: center;
    gap: 4px;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.score-value {
    font-weight: 800;
    font-size: 1rem;
    background: #1a1a2e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.score-sep {
    font-weight: 400;
    color: #999;
}

.score-vs {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
}

.fixture-time-badge {
    text-align: center;
    font-size: 0.75rem;
}

.time-text {
    font-weight: 700;
    color: #495057;
}

.live-badge {
    color: #c62828;
    font-weight: 700;
    font-size: 0.75rem;
}

.blink {
    animation: blink-anim 1s ease-in-out infinite;
    font-size: 0.5rem;
    vertical-align: middle;
}

@keyframes blink-anim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Status Colors ───────────────────────────────────────── */
.status-live {
    background: #fff3f3 !important;
}

.status-live .fixture-time-badge {
    color: #c62828;
}

/* ── Leagues Sidebar ─────────────────────────────────────── */
.leagues-sidebar-header {
    background: linear-gradient(135deg, #37474f, #455a64);
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 16px;
}

.league-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: all .15s ease;
}

.league-sidebar-item:hover {
    background: #f0f4ff;
    border-left-color: #1565c0;
}

.league-sidebar-item.active {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #1565c0;
    font-weight: 700;
}

.sidebar-league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-league-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-league-name {
    font-weight: 600;
}

.sidebar-country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .league-tabs-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .fixture-status small {
        display: none !important;
    }

    .fixture-team .team-name {
        font-size: 0.78rem;
    }
}

@media (max-width: 575px) {
    .fixture-teams {
        flex-direction: column;
        gap: 4px;
    }

    .fixture-team.home-team,
    .fixture-team.away-team {
        justify-content: center;
    }

    .fixture-score {
        min-width: auto;
    }
}