/**
 * Responsive CSS — Royal Teal Casino
 * Redesigned 2026
 */

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

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

    .cat-magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-mag-featured {
        grid-column: span 2;
    }

    .features-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    .feature-step { min-width: 220px; flex: 0 1 220px; }
    .feature-step-connector { display: none; }

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

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

    .stats-typo-item { padding: var(--space-lg) var(--space-xl); }
}

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

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

    /* Header */
    .header-top-bar { height: 52px; }
    .header-nav-bar { height: var(--header-height); }
    .header-top-inner { padding: 0 var(--space-md); }
    .header-nav-inner { padding: 0 var(--space-md); }

    /* Hero */
    .hero-video { padding-top: calc(52px + var(--header-height)); }
    .hero-video-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .hero-video-actions { flex-direction: column; align-items: center; }
    .btn-royal, .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .hero-ring { display: none; }
    .hero-trust-row { flex-direction: column; align-items: center; }

    /* Stats */
    .stats-typo-grid { flex-direction: column; gap: 0; }
    .stats-typo-divider { width: 60px; height: 1px; }
    .stats-typo-item { padding: var(--space-lg); }

    /* Categories */
    .cat-magazine-grid { grid-template-columns: 1fr; }
    .cat-mag-featured { grid-column: span 1; }

    /* Features */
    .feature-step { width: 100%; flex: 1 1 100%; }

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

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

    /* Article */
    .article-content h2 { font-size: var(--text-xl); }
    .article-content h3 { font-size: var(--text-lg); }
    .article-content figure.image.left,
    .article-content figure.image.right { float: none; max-width: 100%; margin: var(--space-md) 0; }

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

    /* Page headers */
    .page-header, .article-header, .tag-hero {
        padding-top: calc(52px + var(--header-height) + var(--space-xl));
    }
}

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

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

    .header-brand-name { font-size: var(--text-base); }

    .hero-video { min-height: auto; padding-bottom: var(--space-3xl); }

    .stats-typo-number { font-size: clamp(1.75rem, 6vw, 2.5rem); }

    .tags-flow-grid { gap: 6px; }
    .tag-flow-pill { padding: 8px 12px; font-size: var(--text-xs); }

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

    .form-input, .form-textarea, .form-select { font-size: 16px; }

    .contact-form { padding: var(--space-lg); }

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

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

@media (max-width: 380px) {
    .header-brand-name { display: none; }
    .hero-video-title { font-size: 1.8rem; }
    .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;
    }
}

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

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

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

@media (min-width: 1400px) {
    .container-wide { max-width: 1600px; }
}
