/* Responsive Design for Tiranga Lottery Game */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Featured games responsive */
    .featured-games .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        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-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
        min-height: 70vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .how-to-play,
    .games,
    .testimonials {
        padding: 3rem 0;
    }
    
    /* Grid Layouts */
    .features-grid,
    .steps-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Featured games on tablet */
    .featured-games .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card.featured {
        margin-bottom: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .step-card,
    .game-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* CTA Section */
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .features,
    .how-to-play,
    .games,
    .testimonials {
        padding: 2rem 0;
    }
    
    /* Featured games on mobile */
    .featured-games .games-grid {
        gap: 1rem;
    }
    
    .game-card.featured {
        margin-bottom: 0.5rem;
    }
    
    .game-card.featured .game-content {
        padding: 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .step-card,
    .game-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    /* CTA Section */
    .cta {
        padding: 2rem 0;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .feature-card h3,
    .step-card h3,
    .game-card h3 {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .nav-menu {
        top: 60px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img,
    .feature-icon img,
    .game-card img,
    .social-links img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .step-card:hover,
    .game-card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffffff;
        --accent-color: #ffff00;
        --text-color: #000000;
        --light-text: #333333;
        --white: #ffffff;
        --light-bg: #f0f0f0;
        --dark-bg: #000000;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid var(--text-color);
    }
    
    .feature-card,
    .step-card,
    .game-card,
    .testimonial-card {
        border: 2px solid var(--border-color);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --light-text: #cccccc;
        --white: #1a1a1a;
        --light-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--white);
        color: var(--text-color);
    }
    
    .feature-card,
    .step-card,
    .game-card,
    .testimonial-card {
        background: var(--light-bg);
        color: var(--text-color);
    }
}

/* Print Styles Enhancement */
@media print {
    .hero {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        color: black;
    }
    
    .hero-subtitle {
        color: black;
    }
    
    .feature-card,
    .step-card,
    .game-card,
    .testimonial-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .btn {
        border: 1px solid #000;
        background: none;
        color: black;
    }
    
    .section-title {
        color: black;
    }
    
    .section-title::after {
        background: black;
    }
    
    .footer {
        background: none;
        color: black;
    }
    
    .footer-section h3,
    .footer-section h4 {
        color: black;
    }
    
    .footer-section ul li a {
        color: black;
    }
} 