/**
 * Responsive CSS - MPO1221 Indonesia
 */

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

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

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

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

    .hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-split-left,
    .hero-split-right {
        width: 100%;
    }

    .hero-split-left {
        min-height: 70vh;
    }

    .hero-split-right {
        min-height: 40vh;
    }

    .hero-split::after {
        display: none;
    }

    .hero-split-left-inner {
        padding: 60px 40px;
    }

    .stats-bar-inner {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .stat-divider {
        display: none;
    }

    .stat-big {
        flex: 0 0 calc(50% - var(--space-lg));
    }

    .cta-image-content {
        flex-direction: column;
        text-align: center;
    }

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

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

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

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

    .header-top-bar {
        height: 44px;
    }

    .header-nav-bar {
        height: 44px;
    }

    .hero-split-left-inner {
        padding: 40px 24px;
    }

    .hero-split-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .hero-split-buttons {
        flex-direction: column;
    }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-split-stats {
        bottom: 20px;
        right: 20px;
    }

    .stat-big {
        flex: 0 0 calc(50% - var(--space-md));
    }

    .stat-big-num {
        font-size: clamp(2rem, 5vw, 3rem);
    }

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

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

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

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

    .cta-image-banner {
        background-attachment: scroll;
    }

    .tag-cloud-grid {
        gap: 8px;
    }

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

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

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

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

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

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

    .hero-split-left {
        min-height: 85vh;
    }

    .hero-split-right {
        min-height: 35vh;
    }

    .hero-split-title {
        font-size: 2rem;
    }

    .hero-stat-pill {
        min-width: 80px;
        padding: 8px 12px;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }

    .stats-bar {
        padding: 32px 0;
    }

    .stat-big {
        flex: 0 0 100%;
        padding: 0 var(--space-md);
    }

    .cat-hex-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .cat-hex-card {
        padding: 24px 16px 20px;
    }

    .cat-hex-icon {
        width: 52px;
        height: 52px;
    }

    .cat-hex-icon svg {
        width: 26px;
        height: 26px;
    }

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

    .cta-image-desc {
        font-size: var(--text-base);
    }

    .btn-cta-gold {
        padding: 13px 28px;
        font-size: var(--text-base);
    }

    .casino-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

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

    .page-hero {
        padding: 40px 0 30px;
    }

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

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

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

    .hero-split-title {
        font-size: 1.75rem;
    }

    .cat-hex-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (hover: none) {
    .cat-hex-card:hover {
        transform: none;
    }

    .article-card:hover {
        transform: none;
    }

    .btn-hero-primary:hover,
    .btn-cta-gold: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;
    }

    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

@media (min-width: 1400px) {
    .hero-split-left-inner {
        padding: 100px 80px;
    }

    .hero-split-title {
        font-size: 5rem;
    }
}

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

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

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