/* =========================
   LIVE SCORES PAGE - COMPACT & USER-FRIENDLY
   Streamlined design for better usability
   ========================= */

/* Compact Page Header */
.page-header-compact {
    background: #ffffff;
    border-bottom: 2px solid #dc143c;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title-compact {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.page-title-compact i {
    color: #dc143c;
    font-size: 1.1rem;
}

.live-stats-inline {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-inline {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-inline i {
    color: #dc143c;
    font-size: 0.9rem;
}

.stat-inline strong {
    color: #dc143c;
    font-size: 1rem;
}

.header-right-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-update-compact {
    font-size: 0.8rem;
    color: #666;
}

.last-update-compact strong {
    color: #1a1a1a;
    font-weight: 600;
}

.refresh-btn-compact {
    background: #dc143c;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn-compact:hover {
    background: #b01030;
    transform: scale(1.05);
}

.refresh-btn-compact i.fa-spin {
    animation: spin 1s linear infinite;
}

/* Main Content Compact */
.main-content-compact {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

.content-full {
    width: 100%;
}

/* Filter Bar Compact */
.filter-bar-compact {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.live-filter-tabs-compact {
    display: flex;
    gap: 6px;
}

.live-tab-btn-compact {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 5px;
    color: #666;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.live-tab-btn-compact i {
    font-size: 0.7rem;
}

.live-tab-btn-compact:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #dc143c;
    border-color: #dc143c;
}

.live-tab-btn-compact.active {
    background: #dc143c;
    color: #ffffff;
    border-color: #dc143c;
}

.search-wrapper-compact {
    flex: 1;
}

.search-box-compact {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.search-box-compact:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
}

/* Compact Match Display */
.league-section-compact {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.league-header-compact {
    background: #fafafa;
    padding: 8px 12px;
    border-left: 3px solid #dc143c;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.league-title-compact {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-flag-mini {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.match-count-mini {
    background: #dc143c;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Compact Match Rows */
.match-row-compact {
    display: grid;
    grid-template-columns: 60px 2fr auto 80px;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: all 0.15s ease;
}

.match-row-compact:hover {
    background: #fafafa;
}

.match-row-compact:last-child {
    border-bottom: none;
}

.match-time-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.time-value-compact {
    font-size: 0.85rem;
    font-weight: 700;
    color: #dc143c;
}

.live-indicator {
    background: #dc143c;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.match-minute-compact {
    font-size: 0.7rem;
    color: #666;
}

.match-teams-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-row-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.team-logo-mini {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.team-name-text {
    font-weight: 600;
    color: #1a1a1a;
}

.match-score-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc143c;
}

.score-sep-compact {
    color: #999;
    font-size: 0.9rem;
}

.match-actions-compact {
    display: flex;
    gap: 6px;
}

.action-btn-compact {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn-compact:hover {
    background: #dc143c;
    color: #ffffff;
    border-color: #dc143c;
}

/* Empty State */
.empty-state-compact {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.empty-state-compact i {
    font-size: 4rem;
    color: #dc143c;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-compact h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state-compact p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc143c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header-compact {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .live-stats-inline {
        width: 100%;
        justify-content: space-around;
    }
    
    .header-right-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-bar-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .live-filter-tabs-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .live-tab-btn-compact {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .match-row-compact {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }
    
    .match-score-compact,
    .match-actions-compact {
        grid-column: 2;
    }
    
    .match-actions-compact {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .page-title-compact {
        font-size: 1rem;
    }
    
    .stat-inline {
        font-size: 0.75rem;
    }
    
    .live-tab-btn-compact span {
        display: none;
    }
    
    .team-name-text {
        font-size: 0.8rem;
    }
    
    .match-score-compact {
        font-size: 1rem;
    }
}
.nav {
    background: var(--darker-bg);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 999;
    display: flex; /* ✅ Add flex container */
    justify-content: space-between; /* ✅ Space between logo and menu */
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-lg);
    margin-left: auto; /* ✅ Push menu to right */
}