/* Responsive Styles for The Reckoning Takes Flight */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: var(--font-6xl);
    }
    
    .section-title {
        font-size: var(--font-4xl);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero .container {
        gap: var(--space-12);
    }
    
    .watch-content {
        gap: var(--space-12);
    }
    
    .story-content {
        gap: var(--space-12);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-8);
        transition: left var(--transition-normal);
        z-index: var(--z-dropdown);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Watch Section */
    .watch-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Story Section */
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Episodes Grid */
    .episodes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-6);
    }
    
    /* Characters Grid */
    .characters-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-8);
    }
    
    /* Analysis Grid */
    .analysis-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-6);
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Header */
    .nav {
        padding: var(--space-3);
        min-height: 70px;
    }
    
    .brand-title {
        font-size: var(--font-xl);
    }
    
    main {
        margin-top: 70px;
    }
    
    /* Typography */
    .hero-title {
        font-size: var(--font-3xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-base);
    }
    
    .section-title {
        font-size: var(--font-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-base);
        margin-bottom: var(--space-8);
    }
    
    /* Spacing */
    section {
        padding: var(--space-12) 0;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
    }
    
    .hero-stats {
        gap: var(--space-6);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Episodes */
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .episode-card {
        padding: var(--space-6);
    }
    
    .episode-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-lg);
    }
    
    .episode-title {
        font-size: var(--font-lg);
    }
    
    .episode-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    /* Characters */
    .characters-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .character-info {
        padding: var(--space-6);
    }
    
    .character-name {
        font-size: var(--font-xl);
    }
    
    /* Analysis */
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .analysis-card {
        padding: var(--space-6);
    }
    
    /* Watch Section */
    .watch-features li {
        font-size: var(--font-sm);
    }
    
    /* Final CTA */
    .final-cta {
        padding: var(--space-8);
    }
    
    .final-cta h3 {
        font-size: var(--font-xl);
    }
    
    .final-cta p {
        font-size: var(--font-base);
    }
    
    /* Buttons */
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-base);
        min-height: 48px;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
}

/* Mobile Small (480px to 575px) */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 var(--space-2);
    }
    
    /* Typography */
    .hero-title {
        font-size: var(--font-2xl);
    }
    
    .section-title {
        font-size: var(--font-xl);
    }
    
    /* Hero */
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }
    
    .stat-number {
        font-size: var(--font-xl);
    }
    
    /* Video Player for small mobile */
    .video-container.vertical-video {
        max-width: min(300px, 85vw);
    }
    
    .video-container.vertical-video .video-wrapper {
        max-height: 50vh;
    }
    
    /* Episodes */
    .episode-card {
        padding: var(--space-4);
    }
    
    .episode-number {
        width: 35px;
        height: 35px;
        font-size: var(--font-md);
    }
    
    .episode-title {
        font-size: var(--font-base);
    }
    
    .episode-description {
        font-size: var(--font-sm);
    }
    
    /* Characters */
    .character-info {
        padding: var(--space-4);
    }
    
    .character-name {
        font-size: var(--font-lg);
    }
    
    .character-role {
        font-size: var(--font-sm);
    }
    
    .character-description {
        font-size: var(--font-sm);
    }
    
    /* Analysis */
    .analysis-card {
        padding: var(--space-4);
    }
    
    .analysis-card h3 {
        font-size: var(--font-lg);
    }
    
    .analysis-card p {
        font-size: var(--font-sm);
    }
    
    /* Theme Cards */
    .theme-card {
        padding: var(--space-4);
    }
    
    .theme-card h4 {
        font-size: var(--font-base);
    }
    
    /* Watch Section */
    .watch-cta {
        padding: var(--space-4);
    }
    
    /* Final CTA */
    .final-cta {
        padding: var(--space-6);
    }
    
    .final-cta h3 {
        font-size: var(--font-lg);
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-sm);
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-sm);
    }
}

/* Mobile Extra Small (below 480px) */
@media (max-width: 479px) {
    /* Brand Title */
    .brand-title {
        font-size: var(--font-lg);
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--font-xl);
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: var(--font-sm);
    }
    
    .hero-rating {
        flex-direction: column;
        gap: var(--space-1);
        text-align: center;
    }
    
    /* Video Player */
    .video-container {
        border-radius: var(--radius-lg);
    }
    
    .video-container.vertical-video {
        max-width: 100%; /* Full width on mobile */
        max-width: min(350px, 90vw); /* Responsive max width */
    }
    
    .video-container.vertical-video .video-wrapper {
        max-height: 60vh; /* Reduce height on mobile */
    }
    
    .video-container iframe {
        border-radius: var(--radius-md);
    }
    
    .video-container::before {
        font-size: var(--font-base);
    }
    
    /* Episodes */
    .episodes-grid {
        gap: var(--space-3);
    }
    
    .episode-card {
        padding: var(--space-3);
    }
    
    /* Characters */
    .character-traits {
        justify-content: center;
    }
    
    /* Spacing Adjustments */
    section {
        padding: var(--space-10) 0;
    }
    
    .section-subtitle {
        margin-bottom: var(--space-6);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--space-4) 0;
    }
    
    .hero-title {
        font-size: var(--font-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-sm);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--space-4);
    }
    
    /* Vertical video in landscape mode */
    .video-container.vertical-video {
        max-width: 250px;
    }
    
    .video-container.vertical-video .video-wrapper {
        max-height: 85vh;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .header,
    .nav-toggle,
    .btn,
    .video-placeholder {
        display: none !important;
    }
    
    main {
        margin-top: 0;
    }
    
    section {
        padding: var(--space-4) 0;
        page-break-inside: avoid;
    }
} 