/* responsive.css */
/* Responsive styles for Movies Downloader Theme */

/*--------------------------------------------------------------
# Table of Contents
--------------------------------------------------------------
1. Global Responsive Settings
2. Header & Navigation
3. Hero Section
4. Movie Grid & Cards
5. Single Movie Page
6. Forms & Inputs
7. Footer
8. Utilities
9. Device Specific Breakpoints
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. Global Responsive Settings
--------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}

/*--------------------------------------------------------------
# 2. Header & Navigation Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
    }
    
    .logo {
        font-size: 24px;
        order: 1;
        flex: 1;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .nav-links li.page_item {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .search-bar {
        order: 2;
        width: auto;
        flex: 1;
        max-width: 300px;
        margin: 0 15px;
    }
    
    .user-actions {
        order: 4;
        margin-left: auto;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo {
        order: 1;
        flex: none;
    }
    
    .search-bar {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        padding: 10px 0;
        justify-content: flex-start;
    }
    
    .nav-links li.page_item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .user-actions {
        order: 4;
        margin: 10px 0 0;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links li.page_item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .user-btn {
        width: 35px;
        height: 35px;
    }
}

/*--------------------------------------------------------------
# 3. Hero Section Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    .hero {
        padding: 40px 30px;
        margin-bottom: 0px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 30px 20px;
        margin-bottom: 0px;
        background-position: center center;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 25px 15px;
        margin-bottom: 0px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/*--------------------------------------------------------------
# 4. Movie Grid & Cards Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
}
@media screen and (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .movie-categories,
    .categories {
        overflow-x: auto;
        padding: 10px 5px;
        margin-bottom: 30px;
        scrollbar-width: thin;
    }
    
    .movie-category,
    .category {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .view-all {
        font-size: 14px;
    }
    
    .movie-category,
    .category {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media screen and (max-width: 640px) {
    
    .movie-image {
        height: 160px;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .movie-title {
        font-size: 220px;
    }
    
    .movie-meta {
        font-size: 12px;
    }
    
    .download-btn {
        padding: 8px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    
    .movie-card {
        margin-bottom: 15px;
    }
    
    .movie-image {
        height: 220px;
    }
    
    .genre-tag,
    .quality-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .wishlist-btn {
        width: 18px;
        height: 18px;
        padding: 14px;
    }
    
    .wishlist-btn i {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# 5. Single Movie Page Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    .movie-hero {
        grid-template-columns: 250px 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .movie-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .movie-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        padding: 20px;
    }
    
    .movie-poster {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .movie-badges {
        flex-direction: row;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
    
    .movie-title {
        font-size: 28px;
    }
    
    .movie-meta {
        justify-content: space-between;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .movie-info-grid {
        grid-template-columns: 1fr;
        width: 80%;
    }
    
    .quality-options {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .movie-hero {
        padding: 15px;
        margin: 20px 0;
    }
    
    .movie-title {
        font-size: 24px;
    }
    
    .movie-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .movie-meta span {
        padding: 5px 5px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-btn,
    .wishlist-btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-options,
    .related-movies {
        padding: 20px 15px;
        margin: 25px 0;
    }
}

@media screen and (max-width: 480px) {
    .movie-title {
        font-size: 16px;
    }
    
    .download-btn,
    .wishlist-btn {
        padding: 12px 8px;
        font-size: 10px;
    }
	.wishlist-btn {
        width:18px;
        height: 18px;
        padding: 14px
    }
    
    .quality-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .info-item {
        font-size: 13px;
    }
}

/*--------------------------------------------------------------
# 6. Forms & Inputs Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .search-bar input {
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    textarea {
        font-size: 12px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    select {
        font-size: 16px;
        padding: 12px;
    }
}

/*--------------------------------------------------------------
# 7. Footer Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .copyright {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/*--------------------------------------------------------------
# 8. Utilities Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .load-more-container {
        margin: 40px 0 25px;
        padding: 15px 0;
    }
    
    .load-more-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .load-more-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/*--------------------------------------------------------------
# 9. Device Specific Breakpoints
--------------------------------------------------------------*/

/* iPhone SE and small phones */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .movie-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Tablet portrait */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        max-width: 600px;
    }
}

/* Tablet landscape */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High-resolution devices */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --bg-color: #1a1a1a;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .movie-card,
    .download-btn,
    .wishlist-btn {
        transition: none !important;
    }
    
    .movie-card:hover .movie-image img {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .movie-card {
        border: 2px solid #fff;
    }
    
    .download-btn {
        border: 2px solid #fff;
    }
}

/* Print styles */
@media print {
    .header,
    .hero,
    .movie-categories,
    .categories,
    .footer,
    .wishlist-btn,
    .download-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .movie-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}
