/**
 * Responsive CSS — Toto99 Casino
 */

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

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

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

    .hero-text { text-align: center; }

    .hero-buttons { justify-content: center; }
    .hero-trust { align-items: center; }

    .hero-radial {
        width: 360px;
        height: 360px;
        margin: 0 auto;
    }

    .hero-ring-item:nth-child(1) { transform: rotate(0deg) translateX(140px) rotate(0deg); }
    .hero-ring-item:nth-child(2) { transform: rotate(60deg) translateX(140px) rotate(-60deg); }
    .hero-ring-item:nth-child(3) { transform: rotate(120deg) translateX(140px) rotate(-120deg); }
    .hero-ring-item:nth-child(4) { transform: rotate(180deg) translateX(140px) rotate(-180deg); }
    .hero-ring-item:nth-child(5) { transform: rotate(240deg) translateX(140px) rotate(-240deg); }
    .hero-ring-item:nth-child(6) { transform: rotate(300deg) translateX(140px) rotate(-300deg); }

    .hero-orbit { width: 300px; height: 300px; }
    .hero-orbit-inner { width: 220px; height: 220px; }

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

    /* Trust strip */
    .trust-strip-grid { flex-wrap: wrap; gap: var(--space-lg); }
    .trust-strip-item { min-width: 180px; }

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

    /* Stats */
    .stats-grid { flex-wrap: wrap; }
    .stat-item { min-width: 140px; }

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

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

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

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

    .header-inner { padding: 0 var(--space-md); }
    .header-logo img { height: 32px; }
    .header-logo-text { font-size: 1rem; }

    /* Hero */
    .hero-content { padding: var(--space-2xl) var(--space-md); }
    .hero-subtitle { font-size: var(--text-base); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }

    .hero-radial { width: 280px; height: 280px; }
    .hero-orbit { width: 240px; height: 240px; }
    .hero-orbit-inner { width: 170px; height: 170px; }
    .hero-wheel { width: 140px; height: 140px; }

    .hero-ring-item { width: 58px; height: 58px; margin-left: -29px; margin-top: -29px; }
    .hero-ring-item:nth-child(1) { transform: rotate(0deg) translateX(110px) rotate(0deg); }
    .hero-ring-item:nth-child(2) { transform: rotate(60deg) translateX(110px) rotate(-60deg); }
    .hero-ring-item:nth-child(3) { transform: rotate(120deg) translateX(110px) rotate(-120deg); }
    .hero-ring-item:nth-child(4) { transform: rotate(180deg) translateX(110px) rotate(-180deg); }
    .hero-ring-item:nth-child(5) { transform: rotate(240deg) translateX(110px) rotate(-240deg); }
    .hero-ring-item:nth-child(6) { transform: rotate(300deg) translateX(110px) rotate(-300deg); }

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

    /* Trust strip */
    .trust-strip-grid { flex-direction: column; align-items: flex-start; }

    /* Tags */
    .tags-cloud { gap: var(--space-xs); }

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

    /* Stats */
    .stats-grid { flex-direction: column; }
    .stat-item + .stat-item::before { display: none; }
    .stat-item { padding: var(--space-lg); }

    /* Articles */
    .articles-grid { grid-template-columns: 1fr; }

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

    /* Layout */
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: 2; }

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

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

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

    .hero-radial { width: 240px; height: 240px; }
    .hero-orbit { width: 200px; height: 200px; }
    .hero-orbit-inner { width: 140px; height: 140px; }
    .hero-wheel { width: 110px; height: 110px; }
    .hero-ring-item { width: 50px; height: 50px; margin-left: -25px; margin-top: -25px; }
    .hero-ring-item:nth-child(1) { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    .hero-ring-item:nth-child(2) { transform: rotate(60deg) translateX(90px) rotate(-60deg); }
    .hero-ring-item:nth-child(3) { transform: rotate(120deg) translateX(90px) rotate(-120deg); }
    .hero-ring-item:nth-child(4) { transform: rotate(180deg) translateX(90px) rotate(-180deg); }
    .hero-ring-item:nth-child(5) { transform: rotate(240deg) translateX(90px) rotate(-240deg); }
    .hero-ring-item:nth-child(6) { transform: rotate(300deg) translateX(90px) rotate(-300deg); }

    .hero-ring-item-label { display: none; }

    .form-input, .form-textarea { font-size: 16px; }
    .error-code { font-size: 5rem; }
}

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

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

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

@media (min-width: 1400px) {
    .magazine-grid { grid-template-columns: repeat(4, 1fr); }
    .casino-grid-new { grid-template-columns: repeat(4, 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;
    }
    html { scroll-behavior: auto; }
}

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

@media print {
    .header, .footer, .mobile-nav, .mobile-overlay, .hero-buttons, .btn, .pagination { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    h1, h2, h3, h4 { page-break-after: avoid; }
}
