/**
 * Responsive CSS - Hao788 Casino Redesign
 */

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

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

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

    .header-top-tagline {
        display: none;
    }

    /* Hero horizontal scroll */
    .hscroll-panel-content {
        padding: 0 40px;
    }

    .hscroll-panel-num {
        font-size: 5rem;
    }

    /* Feature strip */
    .feature-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-strip-item:nth-child(2) {
        border-right: none;
    }

    .feature-strip-item:nth-child(3) {
        border-right: 1px solid rgba(255,255,255,0.08);
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .feature-strip-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.08);
        border-right: none;
    }

    /* Categories magazine */
    .cat-magazine {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-mag-card.cat-mag-featured {
        grid-column: span 2;
    }

    /* Why section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image {
        height: 320px;
    }

    .why-image-badge {
        right: 20px;
        bottom: -10px;
    }

    /* Stats bar */
    .stats-bar-item {
        padding: 0 30px;
    }

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

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

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

    .article-sidebar {
        position: static;
    }

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

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

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

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

    /* Header top bar */
    .header-top-inner {
        padding: 8px 16px;
    }

    .header-logo-text {
        font-size: 1.2rem;
    }

    .header-nav-inner {
        padding: 0 16px;
    }

    /* Hero */
    .hero-hscroll {
        min-height: 480px;
    }

    .hscroll-panel-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .hscroll-title {
        font-size: 1.7rem;
    }

    .hscroll-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hscroll-features {
        gap: 12px;
    }

    .hscroll-stats {
        gap: 24px;
    }

    .hscroll-stat-num {
        font-size: 2.2rem;
    }

    .hscroll-arrows {
        display: none;
    }

    /* Feature strip */
    .feature-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section headers */
    .section-header-row {
        flex-direction: column;
        gap: 16px;
    }

    .section-desc-side {
        max-width: 100%;
        padding-top: 0;
    }

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

    .cat-mag-card.cat-mag-featured {
        grid-column: span 1;
        min-height: 220px;
    }

    /* Stats bar */
    .stats-bar-inner {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stats-bar-item {
        padding: 0 20px;
    }

    .stats-bar-divider {
        display: none;
    }

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

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

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

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

    /* CTA banner */
    .cta-banner {
        padding: 60px 0;
    }

    /* Contact form */
    .contact-form-wrap {
        padding: 24px;
    }

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

    .tag-pill {
        padding: 8px 14px;
    }
}

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

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

    /* Header */
    .header-cta-btn {
        display: none;
    }

    .header-top-tagline {
        display: none;
    }

    /* Hero */
    .hero-hscroll {
        height: 80vh;
        min-height: 420px;
    }

    .hscroll-panel-content {
        padding: 0 20px;
    }

    .hscroll-title {
        font-size: 1.5rem;
    }

    .hscroll-desc {
        font-size: var(--text-base);
        margin-bottom: 20px;
    }

    .hscroll-trust-row {
        display: none;
    }

    .hscroll-panel-num {
        display: none;
    }

    .hscroll-feature-item {
        padding: 12px 14px;
    }

    .hscroll-features {
        gap: 10px;
    }

    /* Feature strip */
    .feature-strip {
        padding: 16px 0;
    }

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

    .feature-strip-item {
        padding: 12px 16px;
    }

    /* Stats bar */
    .stats-bar-num {
        font-size: 2.2rem;
    }

    /* Why section */
    .why-image {
        height: 240px;
    }

    .why-image-badge {
        right: 10px;
        bottom: -10px;
        padding: 14px 18px;
    }

    .why-badge-num {
        font-size: 1.6rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: 50px 0;
    }

    .btn-cta-banner {
        padding: 14px 36px;
        font-size: 0.95rem;
    }

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

    /* Category cards */
    .cat-mag-card {
        min-height: 180px;
    }
}

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

@media (max-width: 380px) {
    .header-logo-text {
        font-size: 1rem;
    }

    .hscroll-title {
        font-size: 1.3rem;
    }

    .feature-strip-grid {
        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-hscroll,
    .hscroll-dots,
    .hscroll-arrow,
    .cta-banner,
    .btn-hscroll-primary,
    .btn-hscroll-secondary {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
