/*
Theme Name: FilmyZilla Vin
Theme URI: https://filmyzillavin.com
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: A movie download portal theme for Bollywood, Hollywood, South Indian, Punjabi Movies and Latest Web-Series. Features a clean grid layout with category support, search functionality, and optimized for movie listing websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filmyzilla-vin
Tags: movies, entertainment, grid-layout, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ================================
   CSS Reset & Base Styles
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Header Styles
   ================================ */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.site-title a:hover {
    color: #e74c3c;
}

/* ================================
   Navigation Styles
   ================================ */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    display: block;
}

.nav-menu a:hover {
    color: #e74c3c;
}

/* Search Button */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 20px;
    color: #555;
    font-size: 1.1rem;
}

.search-toggle:hover {
    color: #e74c3c;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.search-overlay.active {
    display: flex;
}

.search-form-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-form-container input {
    width: 100%;
    padding: 20px 30px;
    font-size: 1.25rem;
    border: none;
    border-radius: 50px;
    background: #fff;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ================================
   Mobile Menu
   ================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-navigation .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
}

/* ================================
   Main Content Area
   ================================ */
.site-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-area {
    width: 100%;
}

/* ================================
   Movie Grid Layout
   ================================ */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Movie Card Styles
   ================================ */
.movie-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.movie-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding: 10px 15px 5px;
}

.movie-category a:hover {
    color: #e74c3c;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 15px 15px;
    color: #2c3e50;
}

.movie-title a:hover {
    color: #e74c3c;
}

.movie-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.movie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-thumbnail img {
    transform: scale(1.05);
}

.movie-excerpt {
    padding: 15px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 15px;
    font-size: 0.8rem;
    color: #888;
}

.movie-meta .author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.movie-meta .author a {
    color: #555;
    font-weight: 500;
}

.movie-meta .author a:hover {
    color: #e74c3c;
}

.movie-meta .date::before {
    content: '/';
    margin-right: 10px;
    color: #ccc;
}

/* ================================
   Single Post Styles
   ================================ */
.single-post {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: #888;
}

.entry-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-meta .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.entry-meta .category {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.entry-meta .category a {
    color: #e74c3c;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: #3498db;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #e74c3c;
}

.entry-content strong {
    color: #e74c3c;
}

/* Movie Info Box */
.movie-info-box {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.movie-info-box h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movie-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.movie-info-item {
    display: flex;
    gap: 5px;
}

.movie-info-label {
    font-weight: 600;
    color: #555;
}

.movie-info-value {
    color: #777;
}

/* Download Section */
.download-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #fff;
    color: #764ba2;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #e74c3c;
}

/* Screenshots */
.screenshots-section {
    margin: 40px 0;
}

.screenshots-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.screenshots-grid img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ================================
   Pagination
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* ================================
   Footer Styles
   ================================ */
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    margin-top: 30px;
}

.footer-bottom a {
    color: #ecf0f1;
}

.footer-bottom a:hover {
    color: #e74c3c;
}

.footer-seo-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #95a5a6;
    margin-top: 20px;
}

.footer-seo-text h4 {
    color: #ecf0f1;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ================================
   Category & Archive Pages
   ================================ */
.page-header {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-title {
    font-size: 1.75rem;
    color: #2c3e50;
    font-weight: 700;
}

.page-title span {
    color: #e74c3c;
}

.archive-description {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

/* ================================
   Search Results
   ================================ */
.search-results .movie-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.search-results .movie-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.search-results .movie-content {
    flex: 1;
    padding: 15px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-results h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
}

/* ================================
   Widgets & Sidebar
   ================================ */
.widget-area {
    display: none;
}

/* ================================
   Breadcrumbs
   ================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #555;
}

.breadcrumbs a:hover {
    color: #e74c3c;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   Loading Animation
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeIn 0.5s ease forwards;
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .site-header,
    .site-footer,
    .pagination,
    .download-section {
        display: none;
    }
    
    .single-post {
        box-shadow: none;
        padding: 0;
    }
}
