/* ========================================
   A3M Language Club - Responsive
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .hero-container {
        gap: var(--space-8);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        max-width: none;
        grid-column: 1 / -1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .nav-links, .auth-buttons, .theme-toggle {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        overflow: hidden; /* Ensure floating cards don't stretch layout */
    }

    .hero-content {
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-badge {
        height: auto;
        white-space: normal;
        text-align: center;
        margin: 0 auto var(--space-6) auto;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-floating-card.card-1 {
        right: 0;
        top: 0;
    }
    
    .hero-floating-card.card-2 {
        left: 0;
        bottom: 0;
    }

    .features-grid, .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        z-index: var(--z-fixed);
        transition: left var(--transition-base);
    }

    .sidebar.active {
        left: 0;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
