/*
Theme Name: TMDB Movie Site
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A movie and TV show website powered by TMDB API
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmdb-movie-site
Tags: movie, tv, entertainment, responsive, modern
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* WordPress page container */
.wp-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Header styles */
header {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 0 0 20px;
    padding: 0;
}

nav ul li:first-child {
    margin-left: 0;
}

#primary-menu {
    margin: 0;
    padding: 0;
}

.main-menu {
    margin: 0;
    padding: 0;
}

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

.search-input {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 4px 0 0 4px;
    background-color: #222;
    color: #fff;
    font-size: 14px;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b00;
}

.search-button {
    padding: 8px 12px;
    border: 1px solid #333;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #ff6b00;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #e55a00;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b00;
}

/* Responsive header styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .header-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: stretch;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
    
    .main-nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .search-button {
        padding: 6px 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
}

/* Hero section */
.hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero .rating {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b00;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e55a00;
}

/* Movie grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.movie-card img {
    width: 100%;
    height: 375px;
    object-fit: cover;
}

/* Image placeholder styles */
.image-placeholder {
    width: 100%;
    height: 375px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    text-align: center;
    border: 1px solid #444;
}

.cast-member .image-placeholder {
    width: 100%;
    height: 100px;
    border-radius: 50%;
}

.similar-movie-item .image-placeholder {
    width: 60px;
    height: 90px;
    font-size: 12px;
}

.movie-poster .image-placeholder {
    width: 150px;
    height: 225px;
    font-size: 14px;
}

.movie-card-content {
    padding: 15px;
}

.movie-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.movie-card .rating {
    color: #ff6b00;
    font-weight: 500;
    margin-bottom: 10px;
}

.movie-card .release-date {
    font-size: 14px;
    color: #666;
}

.movie-card .media-type {
    font-size: 12px;
    color: #ff6b00;
    font-weight: 500;
    margin-top: 5px;
}

/* Movie details */
.movie-detail-container {
    background-color: #f5f5f5;
}

.video-sources {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
}

.video-sources h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.video-options {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.video-options::-webkit-scrollbar {
    height: 6px;
}

.video-options::-webkit-scrollbar-track {
    background: #333;
}

.video-options::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 3px;
}

.video-options::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

.movie-info-section {
    padding: 30px 0;
}

.movie-info-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.movie-basic-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.movie-basic-info .movie-poster {
    flex: 0 0 150px;
}

.movie-basic-info .movie-poster img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.movie-title-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.movie-meta .rating {
    color: #ff6b00;
    font-weight: 500;
}

.movie-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.genre-tag:hover {
    background-color: #e0e0e0;
}

/* Tabs */
.movie-tabs {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #ff6b00;
    border-bottom-color: #ff6b00;
    background-color: #fff;
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.synopsis {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.director-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.director-list span {
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
}

/* Cast grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.cast-member {
    text-align: center;
}

.cast-member .cast-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cast-member .cast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-member .image-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    border-radius: 50%;
}

.cast-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cast-info {
    text-align: center;
}

.cast-member .character {
    font-size: 12px;
    color: #666;
}

/* Screenshots */
.movie-screenshots {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.screenshots-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.screenshots-slider::-webkit-scrollbar {
    height: 6px;
}

.screenshots-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.screenshots-slider::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 3px;
}

.screenshots-slider::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

.screenshot-item {
    flex: 0 0 200px;
    cursor: pointer;
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.screenshot-item img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Modal for image zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 10% auto;
    max-width: 90%;
    max-height: 80%;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ff6b00;
    text-decoration: none;
    cursor: pointer;
}

/* Right sidebar */
.movie-info-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.similar-movies {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.similar-movies h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.similar-movies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similar-movie-item {
    display: flex;
    gap: 10px;
    transition: transform 0.3s;
}

.similar-movie-item:hover {
    transform: translateX(5px);
}

.similar-movie-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.similar-movie-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.similar-movie-rating {
    font-size: 12px;
    color: #ff6b00;
}

/* Genres section */
.genres-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.genres-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

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

.genres-list li {
    margin-bottom: 8px;
}

.genres-list li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.genres-list li a:hover {
    color: #ff6b00;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    padding-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

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

/* Footer menu styles */
.footer-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-menu li a:hover {
    color: #ff6b00;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .movie-details {
        flex-direction: column;
    }
    
    .movie-poster {
        flex: none;
        max-width: 200px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .movie-card img {
        height: 270px;
    }
    
    .movie-basic-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .movie-info-wrapper {
        grid-template-columns: 1fr;
    }
    
    .movie-poster {
        flex: none;
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .video-player iframe {
        height: 300px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .cast-member .cast-image {
        width: 80px;
        height: 80px;
    }
    
    .cast-member .cast-image img {
        width: 100%;
        height: 100%;
    }
    
    .cast-name {
        font-size: 12px;
    }
    
    .character {
        font-size: 10px;
    }
    
    .screenshot-item {
        flex: 0 0 150px;
    }
    
    .screenshot-item img {
        height: 90px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .movie-card img {
        height: 180px;
    }
    
    .movie-card-content h3 {
        font-size: 14px;
    }
    
    .movie-card-content .rating {
        font-size: 12px;
    }
    
    .movie-card-content .release-date {
        font-size: 12px;
    }
    
    .movie-basic-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .movie-poster {
        flex: none;
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .movie-title-info h1 {
        font-size: 20px;
    }
    
    .movie-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .video-player iframe {
        height: 200px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .cast-member .cast-image {
        width: 60px;
        height: 60px;
    }
    
    .cast-name {
        font-size: 10px;
    }
    
    .character {
        font-size: 8px;
    }
    
    .screenshot-item {
        flex: 0 0 120px;
    }
    
    .screenshot-item img {
        height: 70px;
    }
    
    .similar-movie-item img {
        width: 50px;
        height: 75px;
    }
    
    .similar-movie-info h4 {
        font-size: 12px;
    }
    
    .similar-movie-rating {
        font-size: 10px;
    }
    
    .genre-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
}
