/**
 * Responsive CSS - Koko 5000
 */

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

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

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

    /* Hero roulette */
    .hero-roulette-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .hero-roulette-sub {
        max-width: 100%;
    }

    .hero-roulette-btns {
        justify-content: center;
    }

    .hero-trust-row {
        justify-content: center;
    }

    .hero-roulette-wheel-wrap {
        order: -1;
    }

    .roulette-scene {
        width: 260px;
        height: 260px;
    }

    /* Stats */
    .stats-luxury-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-luxury-divider {
        width: 80px;
        height: 1px;
        margin: 0;
        background: linear-gradient(90deg, transparent, var(--color-bg-dark), transparent);
    }

    /* Featured guide */
    .featured-guide-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .featured-guide-img img {
        height: 280px;
    }

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

    .cat-magazine-featured {
        grid-row: span 1;
        grid-column: span 2;
    }

    .cat-magazine-featured .cat-magazine-img {
        height: 260px;
    }

    /* Tips */
    .tips-open-grid {
        grid-template-columns: 1fr;
    }

    .tips-main-img {
        position: static;
    }

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

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

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

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

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

    .header-topbar {
        display: none;
    }

    .header {
        top: 0;
    }

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

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

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

    /* Roulette */
    .roulette-scene {
        width: 220px;
        height: 220px;
    }

    .roulette-num {
        font-size: 6px;
    }

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

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

    .cat-magazine-featured {
        grid-column: span 1;
    }

    .cat-magazine-featured .cat-magazine-img {
        height: 220px;
    }

    .cat-magazine-card:not(.cat-magazine-featured) .cat-magazine-img {
        height: 160px;
    }

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

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

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

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

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

    /* Contact */
    .contact-form {
        padding: var(--space-lg);
    }

    /* Topbar */
    .topbar-brand {
        display: none;
    }
}

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

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

    .hero-roulette-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .hero-roulette-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-roulette-primary,
    .btn-roulette-ghost {
        text-align: center;
        justify-content: center;
    }

    .tags-chips-flow {
        gap: var(--space-xs);
    }

    .tag-chip {
        font-size: var(--text-xs);
        padding: 6px 12px;
    }

    .tip-card {
        padding: var(--space-lg);
    }

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

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

    /* Article */
    .article-content {
        padding: var(--space-lg);
    }

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

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

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

    .roulette-scene {
        width: 180px;
        height: 180px;
    }
}

/* ==========================================================================
   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; }

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

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

@media print {
    .header,
    .header-topbar,
    .footer,
    .mobile-nav,
    .mobile-overlay,
    .hero-roulette-wheel-wrap,
    .cta-banner,
    .btn,
    .pagination {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}
