/* ===================================
   VSVSV - Responsive Styles
   =================================== */

/* ===== Tablet (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .courses-grid,
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Navigation drawer (raised from 768→1024 to kill the overflow dead
          zone the UX review found between ~820px and ~1250px) ── */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    .nav-container > .nav-menu,
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--brand-navy);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.25rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        flex-wrap: nowrap;
    }
    .nav-menu.active { right: 0; }
    .nav-menu > .nav-item { width: 100%; }
    .nav-menu a {
        width: 100%;
        padding: 0.6rem 0;
    }

    /* Courses dropdown renders as an inline, always-open sublist in the drawer */
    .nav-menu .nav-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-menu .nav-dropdown-caret { display: none; }
    .nav-menu .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: 0;
        padding: 0.25rem 0 0.5rem 1rem;
    }
    .nav-menu .nav-dropdown-menu a { color: rgba(255,255,255,0.85); padding: 0.45rem 0; font-size: 0.92rem; }
    .nav-menu .nav-dropdown-menu a:hover { background: transparent; color: var(--white); }
    .nav-menu .nav-dropdown-menu i { color: rgba(255,255,255,0.6); }
}

/* ===== Mobile (< 768px) ===== */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation: the hamburger + drawer now engage at ≤1024px (in the tablet
       block above) so the mid-width overflow dead zone is closed. Only the
       full-width auth buttons stay mobile-only. */
    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Grids */
    .features-grid,
    .courses-grid,
    .updates-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Course Cards */
    .course-actions {
        flex-direction: column;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Small Mobile (< 480px) ===== */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .course-card {
        font-size: 0.9rem;
    }
    
    .update-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ===== Landscape Orientation (Mobile) ===== */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .hero,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}
