/**
 * Responsive CSS — SpinBet99
 */

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

@media (max-width: 1024px) {
    .features-magazine {
        grid-template-columns: 1fr;
    }

    .feat-col-small {
        flex-direction: row;
        gap: var(--space-md);
    }

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

    .howto-inner {
        grid-template-columns: 1fr;
    }

    .howto-image-col {
        height: 350px;
    }

    .howto-image-glow {
        background: linear-gradient(to bottom, transparent 70%, var(--color-bg) 100%);
    }

    .howto-content-col {
        padding: var(--space-2xl) var(--space-xl);
    }

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

    .article-sidebar {
        position: static;
    }

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

    .stat-strip-divider {
        display: none;
    }

    .stats-strip-grid {
        gap: 0;
        flex-wrap: wrap;
    }

    .stat-strip-item {
        flex: 0 0 50%;
    }
}

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

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

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

    .hero-mask-text {
        font-size: clamp(4rem, 22vw, 8rem);
    }

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

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

    .hero-trust-row {
        gap: var(--space-sm);
    }

    .trust-chip {
        font-size: var(--text-xs);
    }

    .stats-strip-grid {
        flex-direction: column;
    }

    .stat-strip-item {
        flex: 1;
        width: 100%;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .feat-col-small {
        flex-direction: column;
    }

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

    .cat-img-card {
        height: 160px;
    }

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

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

    .features-magazine {
        gap: var(--space-md);
    }

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

    .howto-steps {
        gap: var(--space-md);
    }

    .howto-step-num {
        font-size: 1.8rem;
        min-width: 48px;
    }

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

    .article-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

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

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

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

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

    .cat-img-card {
        height: 140px;
    }

    .howto-image-col {
        height: 200px;
    }

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

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

    .stat-strip-item {
        padding: var(--space-md);
    }

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

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

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

    .tag-cloud {
        gap: 0.4rem;
    }

    .tag-pill {
        font-size: var(--text-xs);
        padding: 0.4rem 0.8rem;
    }
}

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

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

    .hero-mask-text {
        font-size: 4rem;
    }

    .feat-card-large .feat-card-img {
        height: 200px;
    }
}

/* ==========================================================================
   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,
    .reveal-left,
    .reveal-right {
        opacity: 1;
    }
}

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

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

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