/* 4raBet - Responsive CSS */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .promotions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .cta-actions {
        flex-direction: row;
    }
}

/* Small Devices (768px and down) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .content-title {
        font-size: 1.8rem;
    }
    
    .promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .registration-steps {
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 576px) {
    :root {
        --section-padding: 40px 0;
        --container-padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .promo-card,
    .feature-card,
    .advantage-item {
        padding: 1.5rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-question {
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Mobile Landscape (768px and down, landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        position: static;
    }
    
    .hero-title,
    .section-title,
    .content-title {
        color: black;
    }
    
    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-image,
    .feature-image,
    .game-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-image {
        transform: none;
    }
    
    .game-card:hover .game-image {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* Light Mode Override (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as specified in requirements */
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .faq-question:focus {
        outline: 2px solid var(--primary-gold);
        outline-offset: 2px;
    }
}

/* Container Queries (Future-proofing) */
@container (min-width: 600px) {
    .promo-card {
        padding: 2.5rem;
    }
}

@container (max-width: 400px) {
    .promo-card {
        padding: 1.5rem;
    }
}
