/* main4.css - Media Queries & Responsiveness */

/* --- Tablet (and up) --- */
@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }

    #mobile-menu-toggle { display: none; }
    .main-nav { display: block; }
    
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .promotion-grid { grid-template-columns: repeat(1, 1fr); }
    .support-links { grid-template-columns: repeat(2, 1fr); }
    
    .app-promo .promo-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 2fr 1fr; }

    .entertainment-feature,
    .entertainment-feature.reverse {
        grid-template-columns: 1fr 1fr;
    }
    .entertainment-feature .feature-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .entertainment-feature .feature-text {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .entertainment-feature.reverse .feature-image {
        grid-column: 2 / 3;
    }
    .entertainment-feature.reverse .feature-text {
        grid-column: 1 / 2;
    }

    .contact-layout { grid-template-columns: 1fr 1.5fr; }

    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Laptop (and up) --- */
@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
    .promotion-grid { grid-template-columns: repeat(3, 1fr); }

    .hero p { font-size: 1.3rem; }
}

/* --- Mobile Menu (Active State) --- */
body.mobile-menu-active .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
body.mobile-menu-active .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 0;
}
body.mobile-menu-active .main-nav li {
    text-align: center;
}
body.mobile-menu-active .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: none;
}
body.mobile-menu-active .main-nav a:hover {
    background-color: var(--color-light);
}