/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-container {
        gap: 5rem;
    }
    
    .about-content {
        gap: 5rem;
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (max-width: 991px) {
    /* Header - Ensure it stays fixed on mobile */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: var(--deep-navy) !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-navy);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link {
        color: white;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-link:hover {
        color: var(--vivid-pink);
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1rem;
        border-radius: var(--border-radius);
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .nav-item.mobile-only {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        margin-top: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Games Section */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    /* Promotions Section */
    .promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .promo-card.featured {
        transform: none;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-features {
        align-items: center;
    }
    
    .about-feature {
        justify-content: center;
    }
    
    /* Support Section */
    .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    /* Header - Ensure it stays fixed on mobile */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: var(--deep-navy) !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Spacing */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 5px 0 40px;
        margin-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    /* Games Section */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Promotions Section */
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promo-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Support Section */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo img {
        height: 32px;
        max-width: 160px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Navigation Actions */
    .nav-actions {
        gap: 0.5rem;
    }
    
    /* Language Switcher */
    .language-switcher {
        margin-right: 0.25rem;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 160px;
    }
    
    /* Mobile Menu Language Switcher */
    .nav-item.mobile-only .language-switcher {
        margin: 0;
        width: 100%;
    }
    
    .nav-item.mobile-only .language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 1rem;
    }
    
    .nav-item.mobile-only .language-dropdown {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-item.mobile-only .language-dropdown.active {
        display: block;
    }
    
    .nav-item.mobile-only .language-option {
        padding: 0.75rem 1rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item.mobile-only .language-option:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--vivid-pink);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Global overflow prevention */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    /* Header - Ensure it stays fixed on mobile */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: var(--deep-navy) !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 5px 0 30px;
        margin-top: 80px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* Cards */
    .game-content,
    .promo-card,
    .support-card {
        padding: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        gap: 2rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .about-feature .feature-icon {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo img {
        height: 35px;
        max-width: 175px;
    }
    
    .footer-bottom {
        gap: 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Language Switcher */
    .language-switcher {
        margin-right: 0.25rem;
    }
    
    .language-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .language-dropdown {
        min-width: 140px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .game-content,
    .promo-card,
    .support-card {
        padding: 1.25rem;
    }
    
    /* Navigation */
    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Language Switcher - Hide text on very small screens */
    .current-lang {
        display: none;
    }
    
    .language-btn {
        gap: 0.25rem;
    }
}

/* Landscape Mobile (height less than 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .game-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .hero-buttons,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: white !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .game-card,
    .promo-card,
    .support-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .game-card,
    .promo-card,
    .support-card {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover,
    .game-card:hover,
    .promo-card:hover,
    .support-card:hover {
        transform: none;
    }
    
    .nav-link::after {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --deep-navy: #ffffff;
        --navy-medium: #e0e0e0;
        --navy-light: #f0f0f0;
        --white: #1a1a1a;
        --light-lavender: #2a2a3a;
        --light-gray: #3a3a4a;
        --light-blue: #4a4a5a;
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
        --shadow-dark: rgba(0, 0, 0, 0.4);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-link {
        color: var(--deep-navy);
    }
    
    .bar {
        background: var(--deep-navy);
    }
} 