/* Mobile First Responsive Design */

/* Mobile Devices (320px - 767px) */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-cards);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(135, 92, 239, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        padding: 3rem 0 2rem;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .stat-card {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Apps Grid */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    /* Games */
    .games-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Safety Features */
    .safety-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Pick Section */
    .pick-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pick-text h2 {
        text-align: center;
    }

    .pick-visual {
        font-size: 6rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* FAQ */
    .faq-actions {
        flex-direction: column;
    }

    .faq-actions .btn {
        width: 100%;
    }

    /* Help Section */
    .help-guarantees {
        flex-direction: column;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablet Devices (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    /* Grids */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pick Section */
    .pick-content {
        gap: 3rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Devices (1024px - 1439px) */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1100px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .safety-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Devices (1440px and above) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .app-card,
    .game-card,
    .feature-card,
    .safety-card,
    .testimonial-card {
        min-height: 44px;
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .tab-btn {
        min-height: 44px;
    }

    .faq-question {
        min-height: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .testimonial-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    section {
        padding: 2rem 0;
    }
}

/* Terms, Privacy, Contact Page Responsive */
@media screen and (max-width: 767px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .terms-section,
    .privacy-section {
        padding: 1.5rem;
    }

    .terms-section h2,
    .privacy-section h2 {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .faq-preview {
        padding: 2rem 1.5rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .games-tabs,
    .faq-actions {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

