/* Responsive Design for UPI Withdrawal Games */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid,
    .games-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .nav-buttons {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title::after {
        width: 80px;
        margin: 1.5rem auto 0;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Sections */
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    /* Login and Register Sections - Mobile Layout */
    .login-section .container,
    .register-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .login-section-content,
    .register-section-content {
        text-align: center;
    }
    
    .login-section-content .section-title,
    .register-section-content .section-title {
        font-size: 2rem;
    }
    
    .login-section-image img {
        max-width: 300px;
    }
    
    .register-section-image {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .register-section-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Banner Section - Mobile Layout */
    .banner-section {
        padding: 40px 0;
    }
    
    .banner-section img {
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
    
    .banner-section img:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Games Slider Section - Mobile Layout */
    .games-slider-section {
        padding: 60px 0;
    }
    
    .slider-header .section-title {
        font-size: 2.5rem;
    }
    
    .mobile-games-slider {
        padding: 0 60px;
        min-height: 600px;
    }
    
    .mobile-slider-container {
        height: 350px;
        margin-bottom: 1rem;
        padding: 30px 0 30px 0;
        margin-top: -5rem;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .mobile-screen {
        width: 260px;
        height: 470px;
        padding: 20px;
    }
    
    /* Adjust slide positioning for mobile */
    .mobile-slide.prev-slide {
        transform: translateX(120px) scale(0.7) translateZ(-30px) rotateY(10deg);
    }
    
    .mobile-slide.next-slide {
        transform: translateX(-120px) scale(0.7) translateZ(-30px) rotateY(-10deg);
    }
    
    .game-thumbnails {
        gap: 0.5rem;
        margin-top: 27rem;
        padding: 1rem;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail-name {
        font-size: 0.65rem;
    }
    
    .slider-slogan {
        margin-top: 2rem;
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Grid Layouts */
    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .game-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-login-large,
    .btn-register-large {
        font-size: 1.1rem;
        padding: 14px 28px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-title::after {
        width: 60px;
        margin: 1rem auto 0;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .nav-buttons .btn {
        width: auto;
        min-width: 120px;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Landscape Mobile Styles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img,
    .feature-icon img,
    .game-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .footer {
        display: none;
    }
    
    .hero-section,
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Improvements for Mobile */
@media (prefers-reduced-motion: reduce) {
    .nav-menu {
        transition: none;
    }
    
    .feature-card:hover,
    .game-card:hover {
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .footer-section a:hover {
        transform: none;
        background-color: inherit;
        color: inherit;
    }
    
    .feature-card:hover,
    .game-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Back to top button touch optimization */
    .back-to-top {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --white: #1a1a1a;
        --secondary-color: #2a2a2a;
    }
    
    .header {
        background-color: var(--white);
        border-bottom: 1px solid #333;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        background-color: #2a2a2a;
        color: var(--text-dark);
    }
} 