/**
 * Responsive CSS - Media Queries
 * RapidBit Casino
 */

/* ==========================================================================
   GLOBAL — prevent horizontal scroll on every viewport
   ========================================================================== */

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, iframe, table, pre {
    max-width: 100%;
}

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

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

    .header-contact-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 99;
        margin-left: var(--space-sm);
    }

    /* Hero Mosaic */
    .hero-mosaic-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "text"
            "grid";
        gap: var(--space-xl);
        padding: var(--space-3xl) var(--space-lg);
    }

    .hero-mosaic-grid {
        height: 320px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

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

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

    .article-sidebar {
        order: -1;
    }

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

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

    /* Stats ticker */
    .stat-ticker-divider {
        display: none;
    }

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

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

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

    /* Mobile nav show */
    .mobile-nav {
        display: block;
    }

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

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

    .header-cta-btn {
        padding: 6px 14px;
        font-size: var(--text-xs);
    }

    /* Hero */
    .hero-mosaic {
        min-height: auto;
        padding-top: var(--total-header-height);
    }

    .hero-mosaic-content {
        padding: var(--space-xl) var(--space-md) var(--space-2xl);
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-mosaic-grid {
        height: 360px;
        max-width: 100%;
        margin: 0 auto;
    }

    .mosaic-overlay-badge {
        padding: 10px 16px;
    }

    .mosaic-overlay-badge span {
        font-size: 1.5rem;
    }

    /* Stats */
    .stats-ticker-row {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: var(--space-md);
        text-align: center;
    }

    .stat-ticker-divider { display: none; }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Categories */
    .cat-magazine-card {
        padding: var(--space-md) var(--space-lg);
    }

    .cat-mag-icon {
        width: 44px;
        height: 44px;
    }

    /* CTA Banner */
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Tags */
    .tags-pill-cloud {
        gap: var(--space-sm);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Article */
    .article-body {
        padding: var(--space-xl);
    }

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

    /* Header topbar */
    .header-tagline {
        display: none;
    }

    /* Section headers */
    .section-title {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-mosaic-grid {
        height: 280px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: var(--text-sm);
        padding: 12px 22px;
        width: 100%;
        justify-content: center;
    }

    .tags-pill-cloud {
        justify-content: flex-start;
    }

    .pagination a,
    .pagination span {
        width: 38px;
        height: 38px;
        font-size: var(--text-xs);
    }

    .article-body {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
}
