/**
 * Responsive CSS - Kilat Casino Redesign
 */

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cashback {
        display: none;
    }

    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }

    .hero-trust-row {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .howto-layout {
        grid-template-columns: 1fr;
    }

    .howto-image {
        max-height: 300px;
    }

    .stats-row {
        justify-content: center;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-action {
        align-items: center;
    }

    .cta-banner-chips {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    :root {
        --header-top-height: 0px;
        --total-header-height: var(--header-height);
    }

    .header-top { display: none; }

    .header-nav-bar {
        background: rgba(15, 23, 42, 0.98);
    }

    .hero {
        min-height: auto;
        padding-top: var(--header-height);
    }

    .hero-inner {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .stats-row {
        gap: var(--space-lg);
    }

    .stat-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stat-divider { display: none; }
    .stat-desc { text-align: center; }

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

    .footer-links {
        align-items: center;
    }

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

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

    .section {
        padding: var(--space-2xl) 0;
    }

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

    .sidebar {
        order: 2;
    }

    .casino-grid-new {
        grid-template-columns: 1fr;
    }

    .article-content h2 {
        font-size: var(--text-xl);
    }

    .article-content h3 {
        font-size: var(--text-lg);
    }
}

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

@media (max-width: 640px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner-chips {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }

    .tags-magazine {
        gap: var(--space-xs);
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-num {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .article-content table {
        display: block;
        overflow-x: auto;
    }

    .form-control {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

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

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .header-logo-text {
        display: none;
    }

    .casino-grid-new {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   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;
    }
}

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

@media print {
    .header, .footer, .mobile-nav, .mobile-overlay,
    .hero-buttons, .btn, .cta-banner { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
}
