/* ============================================
   24LIVE - Responsive Styles
   ============================================ */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-nav {
        flex-basis: 100%;
        order: 3;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: var(--radius);
        padding: 6px 10px;
        font-size: 20px;
        cursor: pointer;
    }
    
    .header-nav.open {
        display: block;
    }
    
    .hero-section {
        padding: 24px 16px;
    }
    
    .hero-text h1 {
        font-size: 22px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .match-card {
        padding: 12px;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 4px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .match-score {
        font-size: 22px;
    }
    
    .standings-table {
        font-size: 12px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 6px 8px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    /* League tabs */
    .league-tabs,
    .match-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .league-tabs a,
    .match-tabs a {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .header-actions .login-btn,
    .header-actions .register-btn {
        display: none;
    }
    
    .search-form {
        flex: 1;
    }
    
    .search-input {
        min-width: 80px;
        font-size: 12px;
    }
    
    .sports-nav ul li a {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .hero-text h1 {
        font-size: 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 33%;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .match-score {
        font-size: 20px;
    }
    
    .match-score .score-delimiter {
        font-size: 12px;
    }
    
    .match-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .match-link {
        text-align: center;
    }
    
    .favorite-btn {
        align-self: center;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .logo {
        font-size: 18px;
    }
    
    .search-input {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .hero-text h1 {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B121B;
        --bg-elevated: #121B26;
        --panel: #17212D;
        --panel-hover: #1D2836;
        --border: #263241;
        --text: #E7ECF2;
        --text-muted: #8B9AAC;
        --text-faint: #56667A;
    }
}

/* Light Mode */
[data-theme="light"] {
    --bg: #F5F6FA;
    --bg-elevated: #FFFFFF;
    --panel: #FFFFFF;
    --panel-hover: #F0F1F4;
    --border: #E2E5EA;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    --text-faint: #9CA3AF;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sports-nav,
    .hero-section,
    .match-footer {
        display: none !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
    
    .match-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
    }
}