/**
 * Responsive CSS — Kasino Keraton
 */

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

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

    .steps-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps-image { height: 200px; }

    .whyus-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .whyus-intro .section-label { display: none; }

    .catpanel-header { flex-direction: column; align-items: flex-start; }
    .catpanel-sub { text-align: left; max-width: 100%; }

    .stats-marquee-grid { gap: 0; }
    .stat-marquee-item { padding: 0 2rem; }

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

    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: 2; }

    .casino-grid-new { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-top-height: 40px;
        --header-nav-height: 48px;
        --header-height: 88px;
    }

    .header-tagline { display: none; }
    .header-brand-inner { padding: 0 1rem; }
    .header-nav-inner { padding: 0 1rem; }

    .hero { min-height: 85vh; }
    .hero-content { padding: 3rem 0 4rem; }

    .hero-trust-sep { display: none; }
    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lball-1, .lball-3, .lball-6 { display: none; }

    .stats-marquee-grid { flex-wrap: wrap; gap: 1.5rem; }
    .stat-marquee-divider { display: none; }
    .stat-marquee-item { padding: 0 1rem; flex: 1 1 40%; min-width: 140px; }

    .steps-layout { grid-template-columns: 1fr; }
    .steps-image { display: none; }

    .catpanel-grid { grid-template-columns: repeat(2, 1fr); }
    .catpanel-item { height: 220px; }

    .tagcloud-wrap { gap: 0.5rem; }
    .tag-xl { font-size: var(--text-base); padding: 0.6rem 1.1rem; }

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

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links { align-items: center; }

    .casino-grid-new { grid-template-columns: repeat(2, 1fr); }

    .btn:not(.btn-sm) { width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-outline-hero { width: auto; }
}

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

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
        --header-height: 84px;
    }

    .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .hero-subtitle { font-size: var(--text-base); }

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

    .casino-grid-new { grid-template-columns: repeat(2, 1fr); }

    .stat-marquee-item { flex: 1 1 40%; }
    .stat-marquee-num { font-size: 2.2rem; }

    .step-item { gap: 1rem; }
    .step-num { width: 44px; height: 44px; font-size: 1rem; }
}

/* ==========================================================================
   VERY SMALL (max-width: 380px)
   ========================================================================== */

@media (max-width: 380px) {
    .header-logo-text { font-size: 1rem; }
    .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }
    .casino-grid-new { grid-template-columns: 1fr; }
    .stat-marquee-item { flex: 1 1 100%; }
    .stat-marquee-divider { width: 60px; height: 1px; }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .lball { animation: none !important; opacity: 0.4 !important; }
    .reveal-section, .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .header, .footer, .sidebar, .mobile-nav, .mobile-overlay,
    .hero-actions, .btn, .pagination { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
