/*
Theme Name: Simple Movie Site
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple and clean 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: simple-movie-site
Tags: movie, tv, entertainment, responsive, simple, minimal
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #fff;
    border-bottom: 2px solid #ddd;
    padding: 20px 0;
    margin-bottom: 30px;
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

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

nav a:hover {
    color: #3498db;
}

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

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}

.page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 24px;
}

.page-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 20px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: #3498db;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

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

.section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

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

.movie-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.image-placeholder {
    width: 100%;
    height: 270px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

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

.movie-card-content h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    color: #f39c12;
    font-size: 14px;
    margin-bottom: 5px;
}

.release-date {
    color: #7f8c8d;
    font-size: 12px;
}

.media-type {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 8px;
}

.text-center {
    text-align: center;
    margin: 30px 0;
}

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

.btn:hover {
    background-color: #2980b9;
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.movie-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.movie-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.movie-detail-poster {
    flex: 0 0 300px;
}

.movie-detail-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.movie-detail-info {
    flex: 1;
}

.movie-detail-info h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.movie-detail-meta {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

.movie-detail-overview {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.movie-detail-section {
    margin-top: 30px;
}

.movie-detail-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

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

.cast-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.cast-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.cast-item-character {
    font-size: 12px;
    color: #7f8c8d;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .movie-card img {
        height: 210px;
    }
    
    .image-placeholder {
        height: 210px;
    }
    
    .movie-detail-header {
        flex-direction: column;
    }
    
    .movie-detail-poster {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }
}