/* ============================================
   RESPONSIVE STYLES
   Mobile-first responsive design
   ============================================ */

/* Large Desktops (max-width: 1400px) */
@media (max-width: 1400px) {
    .container { max-width: 1140px; }
}

/* Tablets / Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 400px; }

    .hero-side { flex-direction: row; }
    .hero-side-card { min-height: 200px; }

    .hero-main-content h2 { font-size: 26px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

    .header-search { max-width: 350px; }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .container { padding: 0 15px; }

    .top-bar { font-size: 12px; }
    .top-bar-left span:not(:first-child) { display: none; }

    .header-container { flex-wrap: wrap; gap: 16px; }
    .header-search { order: 3; max-width: 100%; width: 100%; }
    .logo { font-size: 22px; }
    .logo i { font-size: 26px; }

    #mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 20px var(--shadow-lg);
    }

    .main-nav.active { right: 0; }

    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-menu li a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .nav-menu li a.active,
    .nav-menu li a:hover {
        background: var(--bg-secondary);
        border-bottom-color: transparent;
    }

    .breaking-container { flex-direction: column; align-items: flex-start; gap: 10px; }

    .articles-grid { grid-template-columns: 1fr; }

    .hero-main { min-height: 320px; }
    .hero-main-content { padding: 20px; }
    .hero-main-content h2 { font-size: 22px; }

    .hero-side { flex-direction: column; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-title { font-size: 22px; }
    .section-actions { width: 100%; overflow-x: auto; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-col h4 { margin-top: 10px; }

    .article-detail-title { font-size: 26px; }
    .article-detail-content { padding: 24px 20px; }
    .article-hero-image { height: 280px; }
    .article-detail-body { font-size: 15px; }

    .cookie-consent {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
        text-align: center;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .top-bar-left { font-size: 11px; }
    .top-bar-right a { margin-left: 10px; font-size: 13px; }

    .logo { font-size: 20px; }
    .logo i { font-size: 24px; }

    .stats-section { padding: 40px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stat-card h3 { font-size: 36px; }

    .hero-main-content h2 { font-size: 18px; }
    .hero-side-content h3 { font-size: 14px; }

    .article-title { font-size: 16px; }

    .widget { padding: 18px; }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .toast { left: 15px; right: 15px; top: 15px; }
}

/* Print Styles */
@media print {
    .top-bar, .header, .main-nav, .breaking-news, .sidebar, .footer,
    #back-to-top, .cookie-consent, .section-actions, .load-more-wrapper {
        display: none !important;
    }

    body { background: white; color: black; }
    .container { max-width: 100%; }
    .article-detail { box-shadow: none; }
    .article-detail-body { font-size: 14pt; line-height: 1.6; }
}
