/**
 * Responsive CSS - GACOR 77 Dark Luxury Casino Theme
 */

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

@media (max-width: 1024px) {
    /* Header - hide desktop nav bar on tablet */
    .header-nav-bar {
        display: none;
    }

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

    /* Why section */
    .why-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .why-img-badge {
        bottom: 0.75rem;
        right: 0.75rem;
    }

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

    .mag-card-featured {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .mag-card-featured .mag-card-img {
        height: 280px;
    }

    /* Stats */
    .stats-luxury-item {
        padding: var(--space-lg) var(--space-xl);
    }

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

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

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

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

    /* Header */
    .header-top-bar {
        height: 52px;
    }

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

    /* Sticky hero */
    .sticky-hero-wrapper {
        height: 300vh;
    }

    .sticky-hero-content {
        padding: 0 1rem;
    }

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

    .sticky-hero-btns .btn {
        width: 100%;
        max-width: 260px;
    }

    /* Stats */
    .stats-luxury-row {
        flex-direction: column;
    }

    .stats-luxury-divider {
        width: 80px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(245,158,11,0.3), transparent);
    }

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

    /* Categories */
    .categories-pill-grid {
        grid-template-columns: 1fr;
    }

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

    .mag-card-featured {
        grid-row: auto;
        grid-column: auto;
    }

    .mag-card-featured .mag-card-img {
        height: 220px;
    }

    .mag-card-small .mag-card-img {
        height: 140px;
    }

    /* Why grid */
    .why-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand p {
        max-width: 100%;
    }

    /* Section header */
    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .section-header-line {
        display: none;
    }

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

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

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

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

    /* Buttons */
    .sticky-hero-btns .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

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

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

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

    /* Stats */
    .stats-luxury-num {
        font-size: 2.5rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: var(--space-2xl) 0;
    }

    /* Magazine */
    .mag-card-featured .mag-card-img {
        height: 180px;
    }

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

    /* Form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Why badge */
    .why-img-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        justify-content: center;
        width: fit-content;
    }
}

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

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

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

/* ==========================================================================
   TOUCH DEVICE ADJUSTMENTS
   ========================================================================== */

@media (hover: none) {
    .article-card:hover,
    .cat-pill-card:hover,
    .mag-card:hover,
    .why-item:hover,
    .tag-pill:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-gold:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .carousel-row {
        animation: none;
    }

    .reveal-section,
    .reveal-child {
        opacity: 1;
        transform: none;
    }

    .sticky-hero-slide {
        transition: none;
    }
}

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

@media print {
    .header,
    .footer,
    .mobile-nav,
    .mobile-overlay,
    .sticky-hero-wrapper,
    .cta-banner,
    .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;
    }
}
