/**
 * Responsive CSS — Prime Casino
 */

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

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

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

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

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

    .stats-grid {
        gap: var(--space-lg);
    }
}

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

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --header-brand-height: 40px;
        --total-header-height: 96px;
    }

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

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

    .header-tagline {
        display: none;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: var(--space-xl) var(--space-md);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }

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

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

    .hero-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

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

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

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

    .stat-item:not(:last-child)::after {
        display: none;
    }

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

    .footer-brand p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .article-content h2 { font-size: var(--text-xl); }
    .article-content h3 { font-size: var(--text-lg); }

    .article-content figure.image.left,
    .article-content figure.image.right {
        float: none;
        max-width: 100%;
        margin: var(--space-md) 0;
    }

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

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

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

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

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

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

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

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

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .header-logo-text {
        display: 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;
    }

    .hero-bg-image {
        animation: none !important;
    }
}

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

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

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

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================================================
   LARGE SCREENS
   ========================================================================== */

@media (min-width: 1400px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
