/**
 * Responsive Styles - CineStream Pro
 * @package CineStream Pro
 * @version 3.0.0
 */

/* ========== TABLET (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .primary-menu {
        gap: 15px;
    }
    
    .primary-menu a {
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE (up to 768px) ========== */
@media (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .primary-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .primary-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu a {
        padding: 12px 0;
    }
    
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }
    
    .primary-menu li.active .sub-menu {
        display: block;
    }
    
    /* Dropdown Toggle */
    .menu-item-has-children > a {
        position: relative;
        padding-right: 25px;
    }
    
    .menu-item-has-children > a:after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero-premium-container {
        flex-direction: column;
    }
    
    .hero-slider-premium {
        height: 400px;
    }
    
    .hero-slide-content {
        padding: 20px;
    }
    
    .hero-slide-title {
        font-size: 22px;
    }
    
    .hero-slide-excerpt {
        display: none;
    }
    
    /* Breaking News */
    .breaking-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .breaking-ticker {
        white-space: normal;
    }
    
    .ticker-track {
        animation: none;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* Content Layout */
    .content-layout-grid {
        flex-direction: column;
    }
    
    /* Latest News Grid */
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        flex-direction: column;
    }
    
    /* Category Sections */
    .category-sections-row {
        grid-template-columns: 1fr;
    }
    
    /* Technology Grid */
    .tech-news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-widget-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Author Bio */
    .author-bio {
        text-align: center;
        justify-content: center;
    }
    
    /* Social Share */
    .social-share-buttons {
        justify-content: center;
    }
    
    /* Related Posts */
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pagination */
    .pagination-wrapper {
        gap: 5px;
    }
    
    .page-item .page-numbers {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* ========== SMALL MOBILE (up to 480px) ========== */
@media (max-width: 480px) {
    .hero-slider-premium {
        height: 300px;
    }
    
    .hero-slide-title {
        font-size: 18px;
    }
    
    .hero-slide-category {
        font-size: 11px;
    }
    
    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
    
    .breadcrumbs i {
        margin: 0 5px;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* ========== LARGE DESKTOP (1200px+) ========== */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}