/* Responsive Design Styles */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .slide-content h1 {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .nav-search {
        width: 100%;
    }
    
    #search-input {
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .parallax-content h2 {
        font-size: 2.5rem;
    }
    
    .parallax-content p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        border-radius: var(--border-radius);
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .parallax-section {
        height: 50vh;
        background-attachment: scroll;
    }
    
    .parallax-content {
        padding: 1rem;
    }
    
    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .parallax-content p {
        font-size: 1rem;
    }
    
    .sidebar {
        margin-top: 2rem;
        position: static;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input-group button {
        align-self: flex-start;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 0.75rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .nav-brand .brand-link {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1.5rem;
    }
    
    .hero-slideshow {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .parallax-section {
        height: 40vh;
    }
    
    .parallax-content h2 {
        font-size: 1.75rem;
    }
    
    .parallax-content p {
        font-size: 0.9rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .load-more-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .slide-content {
        padding: 0.75rem;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .articles-grid {
        gap: 1rem;
    }
    
    .article-content {
        padding: 0.75rem;
    }
    
    .parallax-content {
        padding: 0.75rem;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-slideshow,
    .parallax-section,
    .sidebar,
    .footer,
    .back-to-top,
    .load-more-btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .article-image {
        height: auto;
        max-height: 200px;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .slide-btn,
    .read-more {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --border-color: #000000;
        --primary-color: #0000ff;
    }
    
    .article-card {
        border: 2px solid var(--border-color);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #000000;
        color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-light: #94a3b8;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-dark: #020617;
        --border-color: #334155;
    }
    
    .navbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.98);
    }
    
    #search-input {
        background: var(--bg-secondary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    .search-suggestions {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .suggestion-item:hover {
        background: var(--bg-primary);
    }
    
    .article-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .sidebar {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
}

