/**
 * Responsive CSS — Garuda4D Dark Casino Theme
 */

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

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

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

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--space-2xl);
    }

    .hero-slot {
        order: -1;
    }

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

    .hero-trust {
        align-items: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

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

    .stat-divider {
        display: none;
    }

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

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

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

    .cta-banner-text p {
        max-width: 100%;
    }

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

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

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

    .header-inner,
    .header-top-inner {
        padding: 0 var(--space-md);
    }

    .header-logo img {
        height: 30px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-layout {
        gap: var(--space-xl);
        padding-top: var(--space-xl);
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .slot-machine {
        max-width: 320px;
    }

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

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

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

    .cat-feature-card {
        height: 200px;
    }

    .stats-row {
        flex-direction: column;
        gap: 0;
    }

    .stat-block {
        padding: var(--space-md) var(--space-lg);
    }

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

    .sidebar {
        order: 2;
    }

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

    .tag-pill {
        font-size: var(--text-xs);
        padding: 0.35rem 0.75rem;
    }
}

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

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

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

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

    .hero-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .cta-banner-text h2 {
        font-size: var(--text-2xl);
    }

    .cta-banner-actions {
        flex-direction: column;
    }

    .cta-banner-actions .btn {
        justify-content: center;
    }

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

    .pagination {
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: var(--text-xs);
    }
}

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

@media (max-width: 380px) {
    .header-logo-text {
        display: none;
    }

    .slot-machine {
        max-width: 280px;
        padding: var(--space-lg);
    }

    .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;
    }

    html { scroll-behavior: auto; }
}

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

@media print {
    .header, .footer, .mobile-nav, .mobile-overlay,
    .hero-buttons, .slot-machine, .cta-banner, .btn,
    .pagination { display: none !important; }

    body { background: white; color: black; font-size: 12pt; }

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    h1, h2, h3 { page-break-after: avoid; }
    img { max-width: 100% !important; page-break-inside: avoid; }
}
