/*  LARGE DESKTOP (1200px+)  */
@media (max-width: 1200px) {
    .container,
    .nav-container,
    .footer-content,
    .footer-bottom {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}
/*  DESKTOP (992px - 1199px)  */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .tent-icon,
    .fire-icon,
    .code-icon {
        font-size: 3rem;
    }
}

/*  TABLET (768px - 991px)  */
@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .btn-join {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Events */
    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .event-details p {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/*  MOBILE (576px - 767px)  */
@media (max-width: 576px) {
    .container,
    .nav-container {
        padding: 0 1rem;
    }
    
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .announcement-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features,
    .resources-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-card img,
    .story-image {
        height: 150px;
    }
    
    .feature-card,
    .resource-card,
    .story-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/*  SMALL MOBILE (0 - 575px)  */
@media (max-width: 400px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-actions {
        order: 2;
    }
    
    .mobile-menu-toggle {
        order: 3;
        margin-left: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
}

/*  PRINT STYLES  */
@media print {
    .language-switcher,
    .announcement-bar,
    .navbar,
    .footer,
    .hero-actions,
    .event-join,
    .feature-link,
    .search-btn,
    .theme-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-visual {
        display: none;
    }
}

/*  DARK/LIGHT THEME SPECIFIC  */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        /* Use dark theme by default for dark mode preference */
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        /* Use light theme by default for light mode preference */
    }
}

/*  HIGH CONTRAST MODE  */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #00a8a8;
        --color-secondary: #d400d4;
        --color-text: #000;
        --color-bg: #fff;
    }
    
    .highlight {
        text-decoration: underline;
    }
}

/*  REDUCED MOTION  */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .tent-icon,
    .fire-icon,
    .code-icon {
        animation: none;
    }
}

/*  TOUCH DEVICE OPTIMIZATIONS  */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .feature-link,
    .btn-primary,
    .btn-secondary,
    .event-join {
        min-height: 44px;
        min-width: 44px;
    }
    
    .search-btn,
    .theme-toggle {
        width: 44px;
        height: 44px;
    }
    
    .feature-card:hover,
    .resource-card:hover,
    .story-card:hover,
    .event-card:hover {
        transform: none;
    }
}

/*  LANDSCAPE ORIENTATION  */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 2rem 0;
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 250px;
    }
}

/*  4K+ DISPLAYS  */

@media (min-width: 1920px) {
    .container,
    .nav-container,
    .footer-content,
    .footer-bottom {
        max-width: 1600px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}
