/*
Theme Name: PureClikz
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: Movie streaming WordPress theme with SEO and security optimization
Version: 1.0
License: GPLv2
Text Domain: pureclikz
*/

:root {
    --deep-black: #000000;
    --metallic-white: linear-gradient(145deg, #ffffff, #cccccc);
    --shadow: 0 4px 8px rgba(0,0,0,0.5);
}

body {
    background-color: var(--deep-black);
    color: #ffffff;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header Styles */
.site-header {
    background: var(--deep-black);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    background: var(--deep-black);
    border: 2px solid #333;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    background: #fff;
    height: 3px;
    width: 100%;
    transition: all 0.3s;
}

.site-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    text-align: center;
    flex-grow: 1;
    background: var(--metallic-white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    margin: 0 20px;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background: var(--deep-black);
    width: 250px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #333;
}

/* Search Form */
.search-container {
    margin: 100px auto 30px;
    width: 90%;
    max-width: 600px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input,
.search-button {
    background: var(--deep-black);
    border: 1px solid #333;
    color: #fff;
    padding: 12px 20px;
    box-shadow: var(--shadow);
}

.search-input {
    flex-grow: 1;
}

/* Movie Grid Styles */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.movie-card {
    background: var(--deep-black);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.movie-thumbnail {
    width: 100%;
    height: auto;
    flex-grow: 1;
    object-fit: contain;
    background: #000;
}

.movie-title {
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    font-size: 1.2rem;
    font-family: 'Times New Roman', serif;
    text-align: center;
    width: 100%;
    margin: 0;
    background: linear-gradient(145deg, #ffffff, #cccccc);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.movie-title a {
    color: inherit !important;
    text-decoration: none !important;
    background: inherit !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    display: inline-block;
}

.movie-title a:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, #ffffff, #aaaaaa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination .page-numbers {
    color: #fff;
    padding: 10px 15px;
    margin: 0 5px;
    background: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .page-numbers.current {
    background: #555;
}

.thumbnail-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Minimum height for empty thumbnails */
    max-height: 600px; /* Maximum height for very large images */
    overflow: hidden;
}

.movie-thumbnail {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Mobile Screens (up to 767px) */
@media (max-width: 767px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 posts per row */
        gap: 10px; /* Smaller gap for mobile */
        padding: 10px; /* Reduced padding for mobile */
    }

    .movie-card {
        aspect-ratio: 2/3; /* Maintain aspect ratio */
    }

    .movie-title {
        font-size: 1rem; /* Smaller font size for mobile */
        padding: 10px; /* Reduced padding for mobile */
    }
}