/**
 * Responsive Styles
 * 
 * @package MoviePro
 */

/* Large Desktops (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Desktops (1024px - 1399px) */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        max-width: 500px;
    }
    
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (640px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .site-main {
        padding-top: 70px;
    }
    
    .header-container {
        padding: var(--spacing-xs) 0;
    }
    
    .site-branding img {
        height: 40px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-meta {
        font-size: 0.875rem;
        gap: var(--spacing-sm);
    }
    
    .hero-synopsis {
        font-size: 0.875rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-hero-content {
        flex-direction: column;
    }
    
    .movie-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto var(--spacing-md);
    }
    
    .cast-carousel,
    .movies-carousel {
        margin: 0 -var(--spacing-md);
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-nav ul {
    list-style: none;
    padding: var(--spacing-md);
}

.mobile-nav li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
    display: block;
    padding: var(--spacing-sm) 0;
    color: var(--color-text);
    font-weight: 500;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.menu-open {
    overflow: hidden;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .social-share-buttons,
    .movie-actions,
    .watchlist-btn {
        display: none !important;
    }
    
    .site-main {
        padding-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}


/* ==========================================================================
   Carousel Responsive Fixes
   ========================================================================== */
@media (max-width: 767px) {
    .owl-nav {
        display: none !important;
    }
    
    .owl-dots {
        display: block !important;
    }
    
    .movie-hero-content {
        flex-direction: column;
    }
    
    .movie-poster {
        max-width: 250px;
        margin: 0 auto var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .cast-image,
    .crew-image {
        width: 100px;
        height: 100px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   Comments & Reviews Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .comments-area {
        padding: var(--spacing-md);
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-author-avatar {
        align-self: flex-start;
    }
    
    .comment-author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .comment-rating-stars {
        font-size: 1.5rem;
    }
    
    .comment-respond {
        padding: var(--spacing-md);
    }
}

/* ==========================================================================
   Video & Gallery Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-modal {
        padding: var(--spacing-sm);
    }
    
    .video-modal-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .box-office-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Breadcrumbs Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.75rem;
    }
    
    .breadcrumb-item a i {
        display: none;
    }
}

/* ==========================================================================
   Section Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .movie-section {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-title i {
        font-size: 1.25rem;
    }
}
