/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid,
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid,
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--gradient-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* Breadcrumb Navigation */
    .breadcrumb-nav {
        padding: 0.8rem 0;
        margin-top: 70px;
    }
    
    .breadcrumb-list {
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.4rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.2rem 0.4rem;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .games-grid {
        gap: 1rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .game-card {
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: start;
    }
    
    .games-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: none;
    }
    
    .games-slider-nav.prev {
        left: -20px;
    }
    
    .games-slider-nav.next {
        right: -20px;
    }
    
    .games-slider-container {
        margin-bottom: 2rem;
    }
    
    .games-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .game-card,
    .benefit-item,
    .testimonial-card {
        margin: 0 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-login-large,
    .btn-register-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Breadcrumb Navigation Mobile */
    .breadcrumb-nav {
        padding: 0.6rem 0;
        margin-top: 60px;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.3rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.15rem 0.3rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 60px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 1rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .feature-card,
    .game-card,
    .benefit-item,
    .testimonial-card,
    .value-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .games-grid {
        gap: 0.8rem;
        padding: 0.5rem 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .game-card {
        min-width: 250px;
        max-width: 280px;
        scroll-snap-align: start;
    }
    
    .game-card img {
        max-height: 200px;
        padding: 0.8rem;
    }
    
    .game-card-content {
        padding: 1.2rem;
    }
    
    .game-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .game-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .game-card-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .games-slider-nav {
        display: none;
    }
    
    .games-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .games-slider-container {
        margin-bottom: 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon img {
        width: 30px;
        height: 30px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    /* 404 Page Responsive */
    .error-404-section {
        padding: 60px 0;
    }
    
    .error-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .error-number {
        font-size: 8rem;
    }
    
    .error-content h1 {
        font-size: 2rem;
    }
    
    .error-content p {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .error-suggestions ul {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-grid {
        gap: 1rem;
        max-width: 100%;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    .feature-card h3,
    .game-card h3,
    .benefit-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p,
    .game-card p,
    .benefit-item p {
        font-size: 0.9rem;
    }
    
    /* Login/Register Content */
    .login-content h2,
    .register-content h2 {
        font-size: 2rem;
    }
    
    .login-content p,
    .register-content p {
        font-size: 1rem;
    }
    
    /* Login/Register Section Layout */
    .login-section .container,
    .register-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .login-image {
        margin-top: 2rem;
    }
    
    .login-image img {
        max-width: 300px;
    }
    
    .register-image {
        flex-direction: column;
        gap: 1rem;
    }
    
    .register-image img {
        max-width: 200px;
    }
    
    /* About Content */
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-grid {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Stats */
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-login-large,
    .btn-register-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .game-card,
    .benefit-item,
    .testimonial-card {
        padding: 1rem;
    }
    
    .games-grid {
        gap: 0.6rem;
        padding: 0.3rem 0;
    }
    
    .game-card {
        min-width: 220px;
        max-width: 250px;
    }
    
    .game-card img {
        max-height: 180px;
        padding: 0.6rem;
    }
    
    .game-card-content {
        padding: 1rem;
    }
    
    .game-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .game-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .game-card-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .games-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* High DPI Displays - Removed due to missing image file */

/* 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-image img {
        animation: none;
    }
    
    .btn::before {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --dark-gray: #e0e0e0;
    }
    
    body {
        background: var(--white);
        color: var(--dark-gray);
    }
    
    .feature-card,
    .game-card,
    .benefit-item {
        background: var(--light-gray);
        color: var(--dark-gray);
    }
}

/* Print Styles */
@media print {
    .nav-toggle,
    .nav-buttons,
    .back-to-top {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .btn {
        border: 1px solid black;
        background: white !important;
        color: black !important;
    }
}
