/* ==========================================================================
   CUTIESMOOTH — Responsive Design & Breakpoints
   ========================================================================== */

/* --- 1. Large Screens & Laptops (992px to 1199px) --- */
@media (max-width: 1199px) {
    .masonry-gallery {
        columns: 3 240px;
        column-gap: 18px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-visual-collage {
        height: 420px;
    }
    
    .collage-card-1 { width: 170px; height: 230px; left: 10px; }
    .collage-card-2 { width: 190px; height: 250px; right: 10px; }
    .collage-card-3 { width: 210px; height: 270px; }
    .collage-card-4 { width: 140px; height: 180px; }
    .collage-card-5 { width: 150px; height: 190px; }
    
    .lightbox-body {
        grid-template-columns: 1.1fr 1fr;
    }
}

/* --- 2. Tablets (768px to 991px) --- */
@media (max-width: 991px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-visual-collage {
        height: 380px;
        max-width: 580px;
        margin: 0 auto;
    }
    
    .masonry-gallery {
        columns: 3 200px;
        column-gap: 16px;
    }
    
    .surprise-banner-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 32px 24px;
    }
    
    .surprise-banner-text p {
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    
    .lightbox-body {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .lightbox-media-container {
        height: 420px;
    }
    
    .lightbox-dialog {
        max-height: 94vh;
    }
}

/* --- 3. Mobile Devices (below 768px) --- */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px; /* Clearance for fixed mobile bottom navigation */
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .header-pinterest-btn {
        display: none; /* Accessible in drawer and mobile bottom nav */
    }
    
    .site-logo {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 36px 0 44px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -0.03em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
    
    .hero-visual-collage {
        height: 320px;
    }
    
    .collage-card-1 { width: 130px; height: 170px; left: 5px; top: 10px; }
    .collage-card-2 { width: 140px; height: 190px; right: 5px; top: 20px; }
    .collage-card-3 { width: 160px; height: 210px; top: 60px; }
    .collage-card-4 { display: none; }
    .collage-card-5 { display: none; }
    
    .masonry-gallery {
        columns: 2;
        column-gap: 12px;
    }
    
    .gallery-item {
        margin-bottom: 12px;
        border-radius: var(--radius-md);
    }
    
    .card-hover-overlay {
        padding: 10px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-desc {
        display: none; /* Keep mobile card clean */
    }
    
    .card-btn {
        width: 32px;
        height: 32px;
    }
    
    .section-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-sort-group {
        justify-content: flex-end;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    
    .category-card {
        height: 200px;
    }
    
    .category-card-title {
        font-size: 1.15rem;
    }
    
    .category-card-desc {
        display: none;
    }
    
    .pinterest-cta-card {
        padding: 32px 20px;
    }
    
    .pinterest-cta-title {
        font-size: 1.6rem;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .editorial-content-box, .contact-info-card, .contact-form-card {
        padding: 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }
    
    .lightbox-prev-btn { left: 8px; }
    .lightbox-next-btn { right: 8px; }
    
    .lightbox-sidebar {
        padding: 20px;
        gap: 16px;
    }
    
    .lightbox-media-container {
        height: 320px;
    }
    
    .lightbox-title {
        font-size: 1.3rem;
    }
    
    .lightbox-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .global-search-modal {
        padding-top: 20px;
    }
    
    .search-modal-container {
        width: 95%;
        max-height: 88vh;
    }
}

/* --- 4. Extra Small Mobile (below 400px, e.g. 375px, 390px) --- */
@media (max-width: 400px) {
    .container, .container-fluid {
        padding: 0 16px;
    }
    
    .masonry-gallery {
        columns: 2;
        column-gap: 8px;
    }
    
    .gallery-item {
        margin-bottom: 8px;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .share-social-grid {
        grid-template-columns: 1fr;
    }
}
