/**
 * Responsive CSS — CitiBet88 Redesign
 */

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

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

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

    .mobile-nav {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .features-image-wrap {
        max-height: 320px;
    }

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

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

    .payment-image-card {
        grid-column: span 1;
    }

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

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

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

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

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

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

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

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item {
        border-bottom: 1px solid rgba(20, 184, 166, 0.1);
        padding: var(--space-lg);
    }

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

    .hero-payment-strip-inner {
        padding: 0 var(--space-md);
        gap: var(--space-md);
    }

    .hero-payment-icons {
        gap: var(--space-md);
    }

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

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

    .footer-links a::before {
        display: none;
    }

    .article-content {
        padding: var(--space-lg);
        margin-top: calc(var(--space-lg) * -1);
    }

    .casino-card-new {
        flex-wrap: wrap;
    }

    .page-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }
}

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

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

    .hero-title {
        font-size: 1.3rem !important;
        overflow: hidden;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tags-cloud {
        gap: 6px;
    }

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

    .hero-node-1, .hero-node-3 {
        display: none;
    }

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

    .sidebar {
        order: -1;
    }

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

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

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

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

    .hero-title {
        font-size: 1.8rem;
    }

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

    .payment-grid {
        grid-template-columns: repeat(2, 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;
    }

    .hero::before {
        animation: none;
    }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

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

/* Hide brand text in header on mobile */
@media (max-width: 640px) {
    .header .header-logo-text { display: none; }
}
