/*
Theme Name: CineVood
Theme URI: https://cinevood.net
Description: CineVood - House of Entertainment Movie Download Theme
Version: 1.0
Author: CineVood Team
Author URI: https://cinevood.net
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cinevood
*/

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Roboto', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

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

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

/* ===== FIX IMAGE LOADING - CRITICAL ===== */
.movie-poster img,
.movie-card img,
.trending-item img,
.movie-grid img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ===== Header Styles ===== */
.site-header {
    background: #ffffff;
    padding: 20px 15px;
}

.site-logo {
    text-align: center;
    margin-bottom: 20px;
}

.site-logo img {
    max-width: 350px;
    margin: 0 auto;
}

.site-logo h1 {
    font-size: 42px;
    color: #00b8e6;
    margin: 0;
    font-weight: bold;
}

.site-logo p {
    color: #000;
    font-size: 16px;
    margin-top: -5px;
}

/* ===== Search Bar ===== */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar form {
    display: flex;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: #2a2a2a;
    color: #999;
    font-size: 14px;
}

.search-bar input[type="text"]::placeholder {
    color: #666;
}

.search-bar button {
    background: #000;
    border: none;
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background: #333;
}

/* ===== Navigation ===== */
.main-nav {
    background: #1e88e5;
    margin-top: 15px;
}

.nav-toggle {
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 15px;
    width: 100%;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle::after {
    content: '☰';
    font-size: 20px;
}

.nav-menu {
    display: none;
    list-style: none;
    background: #1e88e5;
    padding: 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-menu a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-menu a:hover {
    background: rgba(0,0,0,0.2);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        justify-content: center;
    }
    
    .nav-menu li {
        border: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-right: none;
    }
}

/* ===== Category Buttons ===== */
.category-buttons {
    background: #2a2a2a;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cat-btn {
    background: #333;
    color: #fff;
    padding: 8px 16px;
    border: 1px solid #555;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn:hover {
    background: #1e88e5;
    border-color: #1e88e5;
}

.cat-btn.telegram {
    background: #0088cc;
    border-color: #0088cc;
}

.cat-btn.adult {
    background: #ff9800;
    border-color: #ff9800;
}

/* ===== Notice Bar ===== */
.notice-bar {
    background: #26a69a;
    padding: 12px 15px;
    text-align: center;
    font-size: 13px;
    position: relative;
}

.notice-bar a {
    color: #ffeb3b;
    text-decoration: underline;
}

.notice-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: bold;
}

/* ===== Movie Grid ===== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* Desktop: 4 columns */
@media (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.movie-card {
    background: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.movie-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Movie Poster with Watermark ===== */
.movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Watermark Overlay - HIGH OPACITY */
.movie-poster::after {
    content: 'ClauDe';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.50);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* Content Images - FIXED SPACING */
.movie-info img,
.entry-content img,
article img {
    display: block !important;
    margin: 5px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 5px;
}

/* Image Watermark Wrapper - FIXED SPACING */
.ClauDe-img-wrapper {
    position: relative;
    display: block;
    text-align: center;
    margin: 5px auto;
}

.ClauDe-img-wrapper::after {
    content: 'ClauDe';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.50);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 2px;
}

.ClauDe-img-wrapper img {
    position: relative;
    z-index: 1;
}

.movie-title {
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    height: 90px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
}

/* White Title Box for Latest Movies - FIXED HEIGHT */
.movie-title-box {
    background: #fff;
    color: #000;
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    height: 90px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    flex-shrink: 0;
}

/* ===== Trending Movies Slider ===== */
.trending-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.trending-slider {
    display: flex;
    gap: 15px;
    padding: 10px 0;
}

.trending-item {
    flex: 0 0 45%;
    max-width: 45%;
}

@media (min-width: 768px) {
    .trending-item {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

.trending-item .movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #000;
    border-radius: 5px;
}

.trending-item .movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-item .movie-poster::after {
    content: 'ClauDe';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.50);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 2px solid #444;
    margin: 40px auto;
    max-width: 90%;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: #2a2a2a;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    color: #1e88e5;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Single Movie Page ===== */
.single-movie {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.movie-header {
    margin-bottom: 20px;
}

.movie-categories {
    background: #1e88e5;
    color: #fff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 14px;
}

.movie-categories a {
    color: #fff;
}

.movie-categories a:hover {
    text-decoration: underline;
}

h1.movie-title-single {
    font-size: 24px;
    color: #000;
    margin: 15px 0;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    font-size: 13px;
    color: #666;
}

/* ===== Social Share Buttons ===== */
.social-share {
    display: flex;
    gap: 5px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 3px;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.8;
}

.whatsapp { background: #25d366; }
.telegram { background: #0088cc; }
.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.pinterest { background: #bd081c; }
.email { background: #0072c6; }

/* ===== Video Player ===== */
.video-player {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.video-player img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Player Watermark - HIGH OPACITY */
.video-player::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-image: url('https://hdhubflix.com/wp-content/themes/HDHubFlix2026/template-parts/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.50;
    pointer-events: none;
    z-index: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 30px solid #000;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    margin-left: 8px;
}

/* ===== Download Buttons ===== */
.download-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.download-btn {
    flex: 1;
    padding: 12px;
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #333;
}

/* ===== Movie Info - FIXED SPACING ===== */
.movie-info {
    margin: 20px 0;
    line-height: 1.7;
    font-size: 14px;
}

.movie-info p {
    margin-bottom: 15px;
    line-height: 1.7;
    display: block;
    text-align: left;
}

.movie-info br {
    display: block;
    content: "";
    margin: 8px 0;
    line-height: 1.7;
}

.movie-info strong {
    color: #000;
    font-weight: bold;
}

.movie-info h1, .movie-info h2, .movie-info h3, 
.movie-info h4, .movie-info h5, .movie-info h6 {
    color: #000;
    font-weight: bold;
    margin: 24px 0 16px 0;
    display: block;
}

.movie-info h1 { font-size: 32px; line-height: 1.4; }
.movie-info h2 { font-size: 28px; line-height: 1.4; }
.movie-info h3 { font-size: 24px; line-height: 1.4; }
.movie-info h4 { font-size: 20px; line-height: 1.4; }
.movie-info h5 { font-size: 18px; line-height: 1.4; }
.movie-info h6 { font-size: 16px; line-height: 1.4; }

.movie-info strong, .movie-info b { 
    font-weight: bold !important; 
    color: #000; 
}

.movie-info em, .movie-info i { 
    font-style: italic !important; 
}

.movie-info u { 
    text-decoration: underline; 
}

.movie-info ul, .movie-info ol { 
    list-style-position: inside;
    margin: 0 0 15px 20px; 
    padding: 0; 
}

.movie-info li { 
    margin-bottom: 10px;
    line-height: 1.7;
}

.movie-info blockquote {
    border-left: 4px solid #1e88e5;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    display: block;
}

.movie-info a { 
    color: #1e88e5; 
    text-decoration: underline; 
}

.movie-info a:hover { 
    color: #1565c0; 
}

.movie-info code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.movie-info pre {
    background: #2a2a2a;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.movie-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.movie-info table td, .movie-info table th {
    border: 1px solid #ddd;
    padding: 10px;
}

.movie-info table th {
    background: #1e88e5;
    color: #fff;
    font-weight: bold;
}

/* Entry Content - FIXED SPACING */
.entry-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    display: block;
}

.entry-content br {
    display: block;
    content: "";
    margin: 8px 0;
    line-height: 1.7;
}

/* ===== Screenshots Section - FIXED SPACING ===== */
.screenshots-section {
    margin: 30px 0;
}

.screenshots-section h2 {
    text-align: center;
    color: red;
    font-size: 24px;
    margin-bottom: 20px;
}

.screenshot-img {
    margin: 5px 0;
    border-radius: 5px;
    overflow: hidden;
}

.screenshot-img img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ===== FAQ Section ===== */
.faq-section {
    margin: 30px 0;
}

.faq-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #000;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* ===== Related Posts ===== */
.related-posts {
    margin: 40px 0;
}

.related-posts h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
}

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

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.related-grid .movie-card {
    background: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-grid .movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.related-grid .movie-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-grid .movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.related-grid .movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid .movie-title {
    background: #fff;
    color: #000;
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    height: 90px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    flex-shrink: 0;
}

/* ===== Comment Section ===== */
.comment-section {
    margin: 40px 0;
}

.comment-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
}

.comment-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-height: 150px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-form button {
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.comment-form button:hover {
    background: #333;
}

/* ===== Sidebar Widgets ===== */
.sidebar-widget {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
    text-transform: uppercase;
}

.telegram-widget img {
    max-width: 300px;
    margin: 0 auto;
}

.daily-file-widget img {
    max-width: 250px;
    margin: 0 auto;
}

.android-app-widget img {
    max-width: 250px;
    margin: 0 auto;
}

/* ===== Tags Widget ===== */
.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #ff9800;
    color: #000;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== Footer ===== */
.site-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    margin-top: 40px;
    font-size: 13px;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e88e5;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: #1565c0;
}

.scroll-top.show {
    display: flex;
}

/* ===== Pagination ===== */
.pagination-wrapper {
    grid-column: 1 / -1;
    margin-top: 40px;
    margin-bottom: 20px;
}

.navigation.pagination {
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    background: #2a2a2a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s;
}

.nav-links .page-numbers:hover {
    background: #1e88e5;
}

.nav-links .page-numbers.current {
    background: #1e88e5;
    font-weight: bold;
}

.nav-links .prev,
.nav-links .next {
    background: #1e88e5;
    padding: 10px 20px;
}

.nav-links .prev:hover,
.nav-links .next:hover {
    background: #1565c0;
}

.nav-links .dots {
    background: transparent;
    color: #fff;
    padding: 10px 5px;
}

.nav-links .dots:hover {
    background: transparent;
    cursor: default;
}
