/* ============================================
   RESPONSIVE STYLESHEET
   Mobile-First Approach
   ============================================ */

/* Mobile Devices (< 640px) */
@media (max-width: 639px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Header */
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Page Navigation */
    .page-nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-nav-list {
        overflow-x: auto;
        width: 100%;
    }

    /* Grids */
    .features-grid,
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .casino-header {
        flex-direction: column;
        text-align: center;
    }

    .casino-cta {
        flex-direction: column;
    }

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

    /* Tables */
    .specs-table {
        font-size: 0.875rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 0.75rem 0.5rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Calculator */
    .calculator {
        padding: 1.5rem;
    }

    .calculator-result-value {
        font-size: 2rem;
    }

    /* Tabs */
    .tab-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-button {
        padding: 0.75rem 1.5rem;
        white-space: nowrap;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablets (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .container {
        padding: 0 2rem;
    }

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

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

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

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

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

/* Large Tablets & Small Desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

/* Large Desktops (>= 1280px) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .page-nav,
    .btn,
    .casino-cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: underline;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .page-nav {
        position: relative;
        top: 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .skeleton {
        animation: none;
    }
}

/* Dark Mode (Additional Support) */
@media (prefers-color-scheme: light) {
    /* If user prefers light mode, we could add light theme support here */
    /* Currently defaulting to dark theme for all users */
}
