/* Responsive Styles */

/* Tablets (portrait) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 28px;
        --spacing-md: 20px;
        --spacing-sm: 12px;
        --spacing-xs: 6px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-content {
        padding-right: 0;
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .image-frame {
        max-width: 500px;
        margin: 0 auto;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 32px;
        --spacing-lg: 24px;
        --spacing-md: 16px;
        --spacing-sm: 10px;
        --spacing-xs: 5px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        gap: var(--spacing-md);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        flex-direction: column;
        background-color: rgba(25, 25, 25, 0.98);
        padding: 80px var(--spacing-md) var(--spacing-md);
        z-index: 100;
        transition: right var(--transition-speed) ease;
        gap: var(--spacing-md);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: var(--spacing-xs) 0 0 var(--spacing-md);
        margin-top: var(--spacing-xs);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        padding: var(--spacing-xs) 0;
    }

    .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown > a::before {
        content: '\25BC';
        font-size: 0.6rem;
        margin-left: var(--spacing-sm);
    }

    .dropdown.active > a::before {
        content: '\25B2';
    }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
    :root {
        --spacing-xl: 28px;
        --spacing-lg: 20px;
        --spacing-md: 14px;
        --spacing-sm: 8px;
        --spacing-xs: 4px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .age-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Height Adjustments */
@media screen and (max-height: 600px) and (min-width: 768px) {
    .hero-section {
        height: 500px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}