/*
Theme Name: Filmyzilla Movie Theme
Theme URI: https://example.com/filmyzilla-theme
Author: WordPress Developer
Author URI: https://example.com
Description: A dark-themed movie website theme inspired by Filmyzilla. Features movie grid layout, category filters, responsive design, and full WordPress functionality.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filmyzilla
Tags: movies, dark, responsive, grid, entertainment
*/

/* ================================
   CSS RESET & BASE STYLES
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: auto;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    height: auto;
}

.site {
    min-height: 100vh;
    height: auto;
}

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

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

ul, ol {
    list-style: none;
}

/* ================================
   HEADER STYLES
================================ */
.site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ff0000;
}

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

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    color: #ff0000;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: #cccccc;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input[type="search"] {
    width: 300px;
    padding: 12px 45px 12px 18px;
    border: 2px solid #333;
    border-radius: 30px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input[type="search"]::placeholder {
    color: #888;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #ff0000;
    background: #222;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff0000;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #cc0000;
    transform: translateY(-50%) scale(1.05);
}

/* ================================
   CATEGORY BUTTONS SECTION
================================ */
.category-section {
    background: #0d0d0d;
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Category Button Colors */
.cat-1080p { background: #e74c3c; color: #fff; }
.cat-1080p:hover { background: #c0392b; transform: translateY(-2px); }

.cat-720p { background: #3498db; color: #fff; }
.cat-720p:hover { background: #2980b9; transform: translateY(-2px); }

.cat-300mb { background: #9b59b6; color: #fff; }
.cat-300mb:hover { background: #8e44ad; transform: translateY(-2px); }

.cat-action { background: #e67e22; color: #fff; }
.cat-action:hover { background: #d35400; transform: translateY(-2px); }

.cat-bollywood { background: #f1c40f; color: #000; }
.cat-bollywood:hover { background: #f39c12; transform: translateY(-2px); }

.cat-hollywood { background: #1abc9c; color: #fff; }
.cat-hollywood:hover { background: #16a085; transform: translateY(-2px); }

.cat-dual-audio { background: #34495e; color: #fff; }
.cat-dual-audio:hover { background: #2c3e50; transform: translateY(-2px); }

.cat-hindi-dubbed { background: #e91e63; color: #fff; }
.cat-hindi-dubbed:hover { background: #c2185b; transform: translateY(-2px); }

.cat-web-series { background: #00bcd4; color: #fff; }
.cat-web-series:hover { background: #00acc1; transform: translateY(-2px); }

.cat-punjabi { background: #ff5722; color: #fff; }
.cat-punjabi:hover { background: #e64a19; transform: translateY(-2px); }

.cat-south-indian { background: #795548; color: #fff; }
.cat-south-indian:hover { background: #5d4037; transform: translateY(-2px); }

.cat-default { background: #555; color: #fff; }
.cat-default:hover { background: #444; transform: translateY(-2px); }

/* ================================
   WELCOME BANNER
================================ */
.welcome-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 25px 0;
    border-bottom: 2px solid #ff0000;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.banner-text {
    color: #f1c40f;
    font-size: 16px;
    line-height: 1.8;
}

.banner-text strong {
    color: #ff0000;
}

/* ================================
   MAIN CONTENT AREA
================================ */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-area {
    width: 100%;
}

/* Page Title */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ================================
   MOVIE GRID STYLES
================================ */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.movie-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

/* Attractive gradient border effect */
.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0000, #ff6b00, #ff0000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3), 0 0 30px rgba(255, 107, 0, 0.2);
}

/* Inner glow effect */
.movie-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.05);
    pointer-events: none;
    z-index: 0;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

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

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

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.movie-info {
    padding: 18px;
}

.movie-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.movie-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.movie-category {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    background: #333;
    color: #ccc;
    text-transform: uppercase;
    font-weight: 600;
}

.movie-category.quality-1080p { background: #e74c3c; color: #fff; }
.movie-category.quality-720p { background: #3498db; color: #fff; }
.movie-category.quality-480p { background: #9b59b6; color: #fff; }

/* ================================
   PAGINATION
================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.pagination ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.pagination ul li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

.pagination .prev,
.pagination .next {
    padding: 0 20px;
}

/* ================================
   SINGLE POST STYLES
================================ */
.single-post {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.single-header {
    padding: 30px;
    border-bottom: 1px solid #333;
}

.single-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 14px;
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-content {
    padding: 30px;
}

.single-content p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.single-content h2,
.single-content h3 {
    color: #ffffff;
    margin: 30px 0 15px;
}

.single-content h2 {
    font-size: 24px;
    border-left: 4px solid #ff0000;
    padding-left: 15px;
}

.single-content img {
    border-radius: 10px;
    margin: 20px 0;
}

/* Download Buttons */
.download-section {
    background: #0d0d0d;
    padding: 30px;
    border-top: 1px solid #333;
}

.download-title {
    font-size: 20px;
    color: #f1c40f;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

/* ================================
   SEARCH RESULTS
================================ */
.search-results-header {
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border-left: 4px solid #ff0000;
}

.search-results-header h1 {
    font-size: 22px;
    color: #ffffff;
}

.search-results-header span {
    color: #f1c40f;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
}

.no-results p {
    color: #888;
    margin-bottom: 25px;
}

/* ================================
   SIDEBAR STYLES
================================ */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff0000;
    text-transform: uppercase;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget ul li a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #ff0000;
}

.widget ul li a:hover {
    color: #ff0000;
    padding-left: 5px;
}

/* ================================
   FOOTER STYLES
================================ */
.site-footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border-top: 3px solid #ff0000;
    padding: 0;
}

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

/* Footer Bottom */
.footer-bottom {
    background: #000;
    padding: 25px 0;
    border-top: 1px solid #333;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: #888;
    font-size: 14px;
}

.footer-copyright a {
    color: #ff0000;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #888;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff0000;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media screen and (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-form input[type="search"] {
        width: 250px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .search-form input[type="search"] {
        width: 200px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .single-title {
        font-size: 24px;
    }
    
    .category-buttons {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form input[type="search"] {
        width: 100%;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .movie-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .download-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ================================
   UTILITY CLASSES
================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* WordPress Alignments */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-caption {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 12px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-metadata {
    font-size: 13px;
    color: #888;
}

.comment-content {
    color: #ccc;
    line-height: 1.7;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: #ff0000;
}

input[type="submit"] {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: #cc0000;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumbs a {
    color: #ccc;
}

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

.breadcrumbs .current {
    color: #fff;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
