/* Responsive Design for Zupee Game Website */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .nav-menu {
        justify-content: flex-end;
        flex: 1;
        margin-right: 1.5rem;
    }
    
    .nav-list {
        gap: 1.5rem;
        justify-content: flex-end;
        align-items: center;
    }
    
    .nav-buttons {
        margin-left: 0.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        overflow-y: auto;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile Menu Header */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile Menu Logo Area */
    .nav-menu .nav-logo {
        position: absolute;
        top: 20px;
        left: 2rem;
        z-index: 2;
    }
    
    .nav-menu .nav-logo img {
        height: 45px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    
    .nav-list {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 0;
        position: relative;
        text-align: center;
        align-items: center;
    }
    
    .nav-list::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    }
    
    .nav-link {
        font-size: 1.3rem;
        padding: 1.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        font-weight: 600;
        color: #2c3e50;
        text-decoration: none;
        display: block;
        border-radius: 12px;
        margin: 0.5rem 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        transform: translateY(-50%);
        transition: width 0.3s ease;
        border-radius: 1px;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        padding-left: 2rem;
        color: #667eea;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    }
    
    .nav-link:hover::before {
        width: 4px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile Menu Footer */
    .nav-menu::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
        pointer-events: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* Mobile Menu Buttons */
    .nav-menu .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(102, 126, 234, 0.2);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        align-items: center;
        text-align: center;
    }
    
    .nav-menu .nav-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        margin: 0 auto;
    }
    
    .nav-menu .nav-buttons .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu .nav-buttons .btn:hover::before {
        left: 100%;
    }
    
    .nav-menu .nav-buttons .btn-login {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .nav-menu .nav-buttons .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    
    .nav-menu .nav-buttons .btn-register {
        background: transparent;
        color: #667eea;
        border: 2px solid #667eea;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu .nav-buttons .btn-register:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }
    
    /* Mobile Menu Close Button */
    .hamburger.active {
        position: fixed;
        top: 20px;
        right: 2rem;
        z-index: 10000;
    }
    
    /* Mobile Menu Animation */
    .nav-menu.active .nav-link {
        animation: slideInLeft 0.5s ease-out both;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .hero-section {
        padding: 4rem 0;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 4vw, 2.8rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .hero-buttons {
        gap: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu::before {
        height: 70px;
    }
    
    .nav-menu .nav-logo {
        top: 15px;
    }
    
    .nav-list {
        padding: 2rem 1.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1.5rem 0;
        margin: 0.3rem 0;
    }
    
    .hamburger.active {
        top: 15px;
        right: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        text-align: center;
        min-height: 70vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        margin: 0 auto 2rem auto;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .games-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Large */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    .nav-list {
        padding: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .hero-section {
        padding: 2.5rem 0;
        min-height: 60vh;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        max-width: 250px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .btn-login-large, .btn-register-large {
        padding: 14px 24px;
        font-size: 16px;
        min-width: 180px;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .cta-buttons {
        gap: 0.8rem;
    }
    
    .features-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .login-section,
    .register-section {
        padding: 3rem 0;
    }
    
    .feature-card,
    .benefit-item,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .game-card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
}

/* Mobile Small */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .btn-login-large, .btn-register-large {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 160px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .feature-card,
    .benefit-item,
    .testimonial-card {
        padding: 1rem;
    }
    
    .game-card {
        padding: 0.8rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .btn-login-large, .btn-register-large {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .container {
        padding: 0 5px;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .features-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 2rem 0;
    }
    
    .login-section,
    .register-section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 50px 50px;
    }
    
    .games-section::before {
        background-size: 50px 50px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    main {
        margin-top: 0;
    }
    
    .hero-section,
    .login-section,
    .register-section,
    .games-section,
    .stats-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .highlight {
        color: black !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-login,
    .btn-register {
        border: 1px solid black !important;
        color: black !important;
        background: white !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .games-section::before {
        animation: none !important;
    }
    
    .feature-card:hover,
    .benefit-item:hover,
    .game-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --dark-gray: #e0e0e0;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark-gray);
    }
    
    .header {
        background: var(--light-gray);
    }
    
    .feature-card,
    .benefit-item,
    .testimonial-card {
        background: var(--light-gray);
    }
    
    .register-section {
        background: var(--light-gray);
    }
}

/* Focus Visible for Keyboard Navigation */
@media (any-hover: none) {
    .btn:hover,
    .nav-link:hover,
    .feature-card:hover,
    .benefit-item:hover,
    .game-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 0;
    }
    
    .hamburger span {
        min-height: 4px;
    }
}

/* Responsive Logo Sizing */
@media (max-width: 1199px) {
    .nav-logo img {
        height: 50px;
    }
}

/* Back to Top Button Responsive */
@media (max-width: 767px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 991px) {
    .nav-logo img {
        height: 48px;
    }
}

@media (max-width: 767px) {
    .nav-logo img {
        height: 45px;
    }
} 