
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-body-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .category-featured,
    .tag-featured {
        grid-template-columns: 1fr;
    }
    
    .tag-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .search-filters {
        position: static;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 2rem;
    }
    
    .header-top {
        display: none;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        display: none;
    }
    
    .subscribe-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        background: var(--bg-body); /* Ensure menu background is light */
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-md);
        color: var(--text-primary); /* Ensure text is visible on light bg */
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-lg);
        background: var(--bg-surface); /* Slightly different bg for submenu */
        border: none;
    }
    
    .hero-story.featured .story-image img {
        height: 300px;
    }
    
    .hero-story.featured h2 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        justify-content: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card.horizontal {
        grid-template-columns: 1fr;
    }
    
    .article-card.horizontal .card-image img {
        height: 200px;
    }
    
    .category-header h1,
    .tag-header h1,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .tag-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-statement {
        font-size: 1.1rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .suggested-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .archive-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archive-item time {
        min-width: auto;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-story.featured .story-image img {
        height: 250px;
    }
    
    .story-content {
        padding: var(--spacing-md);
    }
    
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-avatar {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .info-card {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .breaking-news-ticker,
    .main-header,
    .main-footer,
    .share-buttons,
    .comments-section,
    .sidebar-widget,
    .newsletter-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000; /* Force black text for print */
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .article-body {
        max-width: 100%;
    }
    
    /* Remove shadows and borders for cleaner print */
    .news-card, .hero-story, .article-card {
        box-shadow: none;
        border: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
    
    .category-badge,
    .tag {
        border: 2px solid currentColor;
    }
    
    .btn-secondary, .load-more-btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional Override for Light Theme File) */
/* If you want this file to FORCE light mode even if system prefers dark, 
   you can leave this empty or explicitly set light vars. 
   Usually, a 'light' theme file assumes it overrides dark preferences. */
@media (prefers-color-scheme: dark) {
    /* Uncomment the below if you want to FORCE light colors even in OS Dark Mode */
    /*
    :root {
        --bg-body: #ffffff;
        --text-primary: #121212;
        --bg-surface: #f8f9fa;
    }
    body {
        background-color: #ffffff;
        color: #121212;
    }
    */
}
