/* ============================================================
   RESPONSIVE.CSS - Shri Shri Maha Lakshmi Sewa Samiti
   Handles responsive layouts across all screen sizes
   ============================================================ */

/* TABLET & SMALL DESKTOP (< 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }
    
    /* Layouts */
    .about-grid, 
    .poster-showcase-wrapper,
    .contact-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 2rem;
    }

    .poster-stable-side, 
    .poster-scroll-side {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .poster-showcase-wrapper {
        height: auto !important;
        min-height: auto;
    }

    .committee-grid,
    .festival-grid,
    .donation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .gallery-masonry {
        column-count: 2 !important;
    }
    
    .video-playlist {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero Sections */
    .hero-content-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }

    /* Modals & Popups */
    .lightbox-content-container {
        max-width: 95% !important;
    }
}

/* MOBILE (< 768px) */
@media screen and (max-width: 768px) {
    /* Global Typography Scaling */
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }

    .subheading {
        font-size: 1.2rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    /* Navbar & Header */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0 !important;
    }

    .hamburger {
        display: flex !important;
        z-index: 1000;
    }
    
    header {
        padding: 1rem 5% !important;
    }

    /* Grids & Flexboxes */
    .committee-grid,
    .festival-grid,
    .donation-grid,
    .footer-grid,
    .mantras-grid,
    .video-playlist {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .gallery-masonry {
        column-count: 1 !important;
    }

    .timeline-item, .timeline-item:nth-child(even) {
        padding-left: 50px !important;
        justify-content: flex-start !important;
    }
    
    .timeline::before, .timeline-progress {
        left: 20px !important;
    }
    
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 10px !important;
    }

    /* Component specific adjustments */
    .lakshmi-circle {
        width: 250px !important;
        height: 250px !important;
    }

    .president-img-container {
        width: 150px !important;
        height: 150px !important;
    }

    .donation-card {
        padding: 1.5rem !important;
    }
    
    .qr-placeholder img {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Disable Custom Cursor on Mobile */
    .custom-cursor {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
    
    /* Hide decorative particles to save battery/performance */
    .particle {
        display: none !important;
    }
}

/* SMALL MOBILE (< 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .lakshmi-circle {
        width: 200px !important;
        height: 200px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .mantra-text {
        font-size: 1.2rem !important;
    }
}
/* Specific Fixes requested */
@media screen and (max-width: 768px) {
    /* Issue 1: QR Code Section Text Overflow */
    .qr-code-section {
        flex-direction: column !important;
        text-align: center !important;
    }
    .qr-code-section img {
        margin: 0 auto !important;
    }
    
    /* Issue 2: Footer Social Icons Alignment */
    .footer-social-icons {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* Issue 3: Gallery Video Playlist Overflow */
    .video-playlist-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .playlist-item-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
