/**
 * Responsive CSS - Toto Indonesia Redesign
 */

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

@media (max-width: 1024px) {
    .nav-main { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-tagline { display: none; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .feature-item:nth-child(even) { border-right: none; }
    .feature-item:last-child, .feature-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .promo-banner { grid-template-columns: 1fr; }
    .promo-banner-img { min-height: 250px; order: -1; }
    .promo-banner-text { padding: 2rem; }

    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }

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

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

@media (max-width: 768px) {
    :root {
        --header-top-height: 44px;
        --header-nav-height: 52px;
        --header-height: 96px;
        --total-header-height: 96px;
    }

    .header-top-inner { padding: 0 1rem; }
    .header-nav-inner { padding: 0 1rem; }

    .hero-spins-buttons { flex-direction: column; align-items: center; }
    .hero-trust-bar { gap: 0.5rem; }
    .trust-chip { font-size: 0.78rem; padding: 6px 12px; }

    .cat-image-grid { grid-template-columns: 1fr 1fr; }

    .promo-banner-text { padding: 1.5rem; }

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

    .section-header-inline { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    .tag-cloud { gap: 0.5rem; }
    .tag-sz-xl { font-size: 0.95rem; padding: 10px 18px; }
    .tag-sz-lg { font-size: 0.875rem; padding: 8px 14px; }
}

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

@media (max-width: 480px) {
    :root { --container-padding: 1rem; }

    .spins-number { font-size: clamp(4rem, 20vw, 7rem); }
    .hero-spins-title { font-size: 1.5rem; }

    .cat-image-grid { grid-template-columns: 1fr; }

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

    .promo-badge-float { width: 70px; height: 70px; top: 12px; right: 12px; }
    .promo-badge-num { font-size: 1.1rem; }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}
