/**
 * Responsive CSS — Agen 108 Casino
 */

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

@media (max-width: 1024px) {
    /* Header — hide pill nav, show toggle */
    .pill-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }

    /* Features 4→2 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats band */
    .stats-band-inner {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    .stat-divider {
        display: none;
    }
    .stat-block {
        flex: 1 1 40%;
    }

    /* CTA banner */
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .cta-banner-actions {
        justify-content: center;
    }
    .cta-banner-text p {
        margin: 0 auto;
    }

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

    /* Article layout */
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

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

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

    /* Header */
    .site-header-inner {
        padding: 0 var(--space-md);
    }
    .site-logo img {
        height: 32px;
    }
    .site-logo-text {
        font-size: var(--text-base);
    }

    /* Hero */
    .hero-duotone {
        min-height: 520px;
    }
    .hero-duotone-title {
        font-size: clamp(1.7rem, 6vw, 2.5rem);
    }
    .hero-duotone-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Stats */
    .stat-block {
        flex: 1 1 100%;
    }
    .stat-block-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Category visual */
    .cat-visual-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Tags */
    .tags-cloud-list {
        gap: 7px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
    .footer-brand p {
        max-width: 100%;
    }

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

    /* Breadcrumb */
    .breadcrumb {
        font-size: var(--text-xs);
    }

    /* Subcats */
    .subcats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Articles grid */
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    /* Hero */
    .hero-duotone-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .hero-duotone-content {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    /* Category grid */
    .cat-visual-grid {
        grid-template-columns: 1fr;
    }
    .cat-visual-card {
        height: 200px;
    }

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

    /* Forms */
    .form-input, .form-textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }

    /* Article */
    .article-title {
        font-size: var(--text-2xl);
    }

    /* Subcats single col */
    .subcats-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-duotone-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   LARGE SCREENS (min-width: 1400px)
   ========================================================================== */

@media (min-width: 1400px) {
    .features-grid {
        gap: var(--space-2xl);
    }
}

/* ==========================================================================
   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-item {
        opacity: 1;
        transform: none;
    }
}

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

@media print {
    .site-header, .footer, .sidebar, .mobile-nav, .mobile-overlay,
    .hero-duotone-actions, .cta-banner { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    .main-content { padding: 0; }
}
