/* Responsive Styles - responsive.css */
/* Main responsive rules are in style.css; this file adds supplemental tweaks */

@media (max-width: 768px) {
    .desktop { display: none; }
    .mobile  { display: block; }

    .custom-swiper-next {
        width: 26px;
        height: 26px;
    }

    /* Mobile Reel Modal */
    .reel-modal-layout {
        flex-direction: column;
        padding: 0;
        height: 100vh;
        width: 100vw;
        max-width: 100%;
        position: relative;
        justify-content: center;
        align-items: center;
    }
    .reel-modal-center {
        width: 100%;
        height: 100vh;
        aspect-ratio: auto;
        border-radius: 0;
    }
    .reel-modal-left {
        position: absolute;
        bottom: 20px;
        left: 16px;
        width: calc(100% - 70px);
        padding: 0;
        z-index: 10;
        align-items: flex-start;
        text-align: left;
    }
    .reel-modal-right {
        position: absolute;
        bottom: 20px;
        right: 12px;
        padding: 0;
        z-index: 10;
        align-items: center;
        width: auto;
        max-width: none;
    }
    .reel-nav-arrows {
        display: none;
    }
    .reel-modal-close {
        top: 10px;
        right: 10px;
        width: 26px;
        height: 26px;
        padding: 4px;
        z-index: 20;
    }
    .reel-volume-control {
        bottom: 20px;
        right: 64px;
        width: 32px;
        height: 32px;
        padding: 4px 0;
    }
    .reel-volume-control:hover,
    .reel-volume-control.expanded,
    .reel-volume-control.is-dragging {
        height: 114px;
        padding: 10px 0 4px;
    }
    .reel-volume-slider-track {
        height: 56px;
        width: 5px;
        margin-bottom: 8px;
    }
    .reel-volume-slider-thumb {
        width: 12px;
        height: 12px;
    }
    .reel-volume-toggle-btn {
        width: 24px;
        height: 24px;
    }
    [data-theme="dark"] .tag {
        color: #F5F5F5;
    }
    .modal-brand-name,
    .modal-title-text, 
    .modal-hashtags {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }
    .action-icon {
        width: 28px;
        height: 28px;
        filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
    }
    .modal-action-btn {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        gap: 4px;
    }
    .theme-toggle-img {
        width: 58px;
    }
    .reel-section {
        padding-top: 26px;
        padding-bottom: 0rem;
    }
    .scroll-to-top {
        bottom: 30px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
}

@media (min-width: 769px) {
    .mobile { display: none; }
    .desktop  { display: block; }
}

@media (max-width: 576px) {
    .header { padding: 30px 12px 16px; }
    .top-nav-inner { padding: 10px 16px; }
    .section-title { font-size: 24px; margin-bottom: 10px; }
    .footer-links { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (min-width:1900px) {
    .theme-label {
        font-size: 22px;
    } 
    .main-title {
        font-size: 50px;
    }
    .tag { 
        font-size: 24px;
    }
    .tag-count {
        font-size: 24px;
    }
    .tag-slide {
        margin-right: 20px;
    }
    .header {
        gap: 30px;
    }
    .section-title {
        font-size: 36px;
    } 
    .reel-section {
        padding-top: 46px;
    }
    .reel-card-title {
        font-size: 22px;
        line-height: 28px;
    }  
    .footer-links a {
        font-size: 20px;
    }
    .copyright {
        font-size: 20px;
    }
    
    /* Reel Modal Scaling for Large Screens */
    .reel-modal-layout {
        max-width: 1400px;
    }
    .reel-modal-left, .reel-modal-right {
        max-width: 500px;
    }
    .modal-brand-logo {
        width: 48px;
        height: 48px;
    }
    .modal-brand-name {
        font-size: 24px;
    }
    .modal-title-text {
        font-size: 22px;
        line-height: 1.6;
    }
    .modal-hashtags {
        font-size: 20px;
    }
    .action-icon {
        width: 36px;
        height: 36px;
    }
    .modal-action-btn {
        font-size: 18px;
        gap: 10px;
    }
    .nav-arrow {
        width: 60px;
        height: 60px;
    }
    .reel-nav-arrows {
        right: 80px;
        gap: 24px;
    }
    .reel-modal-close {
        width: 50px;
        height: 50px;
        font-size: 24px;
        top: 40px;
        right: 40px;
    }

    .main-container,
    .top-nav-inner,
    .header,
    .footer-inner {
        max-width: 1700px;
    }
}

@media (width:1164px) {
    .top-nav-inner {
        max-width: 1100px;
    } 
    .header {
        max-width: 1100px;
    }
    .main-container {
        max-width: 1100px;
    }
    .footer-inner {
        max-width: 1100px;
    }
}
@media (width:1280px) {
    .top-nav-inner {
        max-width: 1210px;
    } 
    .header {
        max-width: 1210px;
    }
    .main-container {
        max-width: 1210px;
    }
    .footer-inner {
        max-width: 1210px;
    }
}

/* Reels Grid Responsive */
@media (max-width: 1250px) {
    .reels-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
    .reels-grid .reel-card-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 242 / 346;
    }
}
@media (max-width: 768px) {
    .main-container {
        padding: 0 14px;
    }
    .category-description {
        font-size: 13px;
        font-family: 'Manrope';
        font-weight: 500;
        font-size: 14px;
        line-height: 22px; 
        letter-spacing: 0px;
        text-transform: capitalize;
        margin-bottom: 0;
    }
    .subcategories-swiper {
        margin-bottom: 0 !important;
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .category-header {
        padding-bottom: 0 !important;
    }
    .reels-grid {
        grid-template-columns: repeat(3, 82px);
        justify-content: flex-start;
        gap: 0;
        padding-top: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        width: fit-content;
        margin: 0;
    }
    .reels-grid.not-fitted {
        border-radius: 0 !important;
    }
    .reels-grid .reel-card-img-wrap {
        width: 82px;
        height: 119px;
        aspect-ratio: auto;
    }
    .reels-grid .card-overlay {
        display: none !important; 
    }
}