/**
 * Responsive CSS - Garuda138 Redesign
 */

/* ==========================================================================
   TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header nav links hidden, show hamburger */
    .nav-main {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-tagline {
        display: none;
    }

    /* Hero */
    .hero-phone-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    .hero-phone-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-phone-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-phone-btns {
        justify-content: center;
    }
    .hero-phone-features {
        justify-content: center;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-phone-device-wrap {
        align-items: center;
        order: -1;
    }
    .hero-phone-device {
        width: 220px;
        height: 430px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Cat magazine */
    .cat-mag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-mag-featured {
        grid-column: span 2;
        min-height: 280px;
    }

    /* Stats */
    .stats-bar-divider {
        display: none;
    }
    .stats-bar-grid {
        gap: var(--space-2xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

/* ==========================================================================
   MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-top-height: 48px;
        --header-nav-height: 50px;
        --header-height: 98px;
        --total-header-height: 98px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero-phone-section {
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }
    .hero-phone-features {
        grid-template-columns: 1fr 1fr;
    }

    /* Stats */
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: var(--space-xl);
    }

    /* Tags */
    .tags-cloud-wrap {
        gap: var(--space-xs);
    }
    .tag-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Categories */
    .cat-mag-grid {
        grid-template-columns: 1fr;
    }
    .cat-mag-featured {
        grid-column: span 1;
        min-height: 280px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }

    /* CTA banner */
    .cta-banner-title {
        font-size: 1.8rem;
    }

    /* Section titles */
    .section-title {
        font-size: var(--text-2xl);
    }
    .features-title {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-phone-title {
        font-size: 1.8rem;
    }
    .hero-phone-features {
        grid-template-columns: 1fr;
    }
    .hero-phone-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
    }
    .header-top-cta {
        display: none;
    }
    .stats-bar-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero-phone-device {
        animation: none !important;
    }
    .hero-phone-particles span {
        animation: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
