
/* VYRA Media - Responsive CSS (Dark Theme) */
/* Mobile-first responsive design with clean dark styling */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .site-header h1 {
        font-size: 1.875rem;
    }
    
    .hero-article .article-image {
        height: 250px;
    }
    
    .hero-article .article-title {
        font-size: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        display: grid;
        grid-template-columns: 2.5fr 1fr; /* Better ratio: main content wider, sidebar narrower */
        gap: 2rem;
        align-items: start;
    }
    
    .hero-article .article-image {
        height: 300px;
    }
    
    .hero-article .article-title {
        font-size: 1.875rem;
    }
    
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .bbc-article-card .article-image {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .site-header {
        padding: 1.5rem 0;
    }
    
    .site-header h1 {
        font-size: 2.25rem;
    }
    
    .main-nav {
        gap: 2rem;
    }
    
    .hero-article .article-image {
        height: 400px;
    }
    
    .hero-article .article-title {
        font-size: 2.25rem;
    }
    
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .bbc-article-card .article-image {
        height: 200px;
    }
    
    .sidebar-article {
        padding: 1.5rem;
        max-width: 300px; /* Prevent sidebar from getting too wide */
        min-width: 250px; /* Ensure minimum usable width */
    }
    
    .sidebar-article .article-image {
        width: 100px;
        height: 75px;
    }
    
    .sidebar-article .article-title {
        font-size: 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        gap: 3rem;
        grid-template-columns: 3fr 1fr; /* Even better ratio for large screens */
    }
    
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .content-blocks {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .vertical-section {
        padding: 2rem;
        width: 100%;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .content-blocks {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .vertical-section {
        padding: 3rem;
        width: 100%;
    }
}

/* Print styles */
@media print {
    .site-header,
    .main-nav,
    .site-footer,
    .hero-sidebar {
        display: none;
    }
    
    .hero-section {
        display: block;
    }
    
    .bbc-article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #666;
    }
    
    a {
        color: #333;
        text-decoration: underline;
    }
    
    .article-meta {
        font-size: 10pt;
    }
}

/* High contrast mode - Updated for dark background theme */
@media (prefers-contrast: high) {
    .bbc-article-card {
        border: 2px solid #ffffff;
    }
    
    .quality-score {
        border: 1px solid currentColor;
    }
    
    .main-nav a:hover,
    .main-nav a:focus {
        background-color: #66b3ff;
        color: #1a1a1a;
    }
}

/* Dark mode support - Enhanced for dark background theme */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #66b3ff;
        --color-primary-dark: #4da6ff;
        --color-text-primary: #ffffff;
        --color-text-secondary: #e8e8e8;
        --color-text-muted: #a0a0a0;
        --color-background: #1a1a1a;
        --color-background-alt: #2a2a2a;
        --color-border: #404040;
        --color-border-light: #666666;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e8e8e8;
    }
    
    .site-header {
        background-color: rgba(42, 42, 42, 0.98);
        border-bottom-color: #404040;
    }
    
    .bbc-article-card,
    .sidebar-article,
    .vertical-section {
        background-color: #2a2a2a;
        border-color: #404040;
    }
    
    .site-footer {
        background-color: #2a2a2a;
        border-top-color: #404040;
    }
}

/* Hero Section Responsive Styles */
@media (max-width: 768px) {
    .hero-article-link:hover .hero-featured {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .sidebar-article-link:hover .sidebar-article {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

/* Article Page Responsive Styles */
@media (max-width: 768px) {
    .article-content {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .article-headline {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .article-hero-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-button {
        width: 100%;
        text-align: center;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }
    
    .related-articles .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .article-headline {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .article-hero {
        margin-bottom: 2rem;
    }
    
    .article-meta {
        padding: 0.75rem 0;
    }
    
    .article-actions {
        padding: 1.5rem 0;
    }
}
