/*
Theme Name: IMDBPress Theme
Theme URI: https://example.com/imdbpress
Author: Antigravity
Author URI: https://example.com
Description: A multi-block article list theme inspired by IMDB.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imdbpress
*/

:root {
    --imdb-yellow: #f5c518;
    --imdb-dark: #000000;
    --imdb-gray-dark: #121212;
    --imdb-gray-panel: #1a1a1a;
    --imdb-gray-light: #ffffff;
    --imdb-gray-muted: rgba(255, 255, 255, 0.7);
    --imdb-border: rgba(255, 255, 255, 0.1);
    --imdb-blue: #5799ef;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--imdb-dark);
    color: var(--imdb-gray-light);
    line-height: 1.5;
}

a {
    color: var(--imdb-gray-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--imdb-yellow);
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: var(--imdb-gray-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.site-branding .site-title a {
    background-color: var(--imdb-yellow);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: -1px;
}

.header-search {
    flex: 1;
    display: flex;
}

.header-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.header-search button {
    background-color: #fff;
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    border-left: 1px solid #ccc;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main Content Area */
.site-main {
    padding-top: 2rem;
}

/* Hero Section (Carousel + Up Next) */
.hero-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    height: 500px;
}

.hero-carousel {
    flex: 2;
    background-color: var(--imdb-gray-panel);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-info h2 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}

.hero-up-next {
    flex: 1;
    background-color: var(--imdb-gray-panel);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.hero-up-next h3 {
    margin: 0 0 1rem;
    color: var(--imdb-yellow);
    font-size: 1.2rem;
}

.up-next-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
}

.up-next-item {
    display: flex;
    gap: 1rem;
}

.up-next-image {
    width: 80px;
    height: 120px;
    background-color: #333;
    flex-shrink: 0;
}

.up-next-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-next-details h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.up-next-details p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--imdb-gray-muted);
}

/* General Sections */
.multi-block-section {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    color: #fff;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background-color: var(--imdb-yellow);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--imdb-gray-muted);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Horizontal Scroll List (Slider alternative) */
.horizontal-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--imdb-gray-muted) var(--imdb-dark);
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--imdb-dark);
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--imdb-gray-muted);
    border-radius: 4px;
}

/* Card Styles */
.poster-card {
    flex: 0 0 180px;
    background-color: var(--imdb-gray-panel);
    border-radius: 4px;
    overflow: hidden;
}

.poster-card-image {
    aspect-ratio: 2/3;
    background-color: #333;
    position: relative;
}

.poster-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-bookmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
}

.poster-card-content {
    padding: 0.75rem;
}

.poster-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--imdb-gray-muted);
}

.poster-rating i {
    color: var(--imdb-yellow);
}

.poster-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(255,255,255,0.08);
    color: #5799ef;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.watchlist-btn:hover {
    background-color: rgba(255,255,255,0.15);
}

/* News Layout */
.news-layout {
    display: flex;
    gap: 2rem;
}

.news-main {
    flex: 2;
}

.news-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #333;
    margin-bottom: 1rem;
}

.news-main h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.news-item p {
    margin: 0;
    color: var(--imdb-gray-muted);
    font-size: 0.9rem;
}

/* Circular Avatars (Born Today) */
.avatar-card {
    flex: 0 0 150px;
    text-align: center;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #333;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

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

.avatar-name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.avatar-age {
    margin: 0;
    font-size: 0.9rem;
    color: var(--imdb-gray-muted);
}

/* Footer */
.site-footer {
    background-color: var(--imdb-gray-dark);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    .hero-carousel {
        aspect-ratio: 16/9;
    }
    .hero-up-next {
        height: 300px;
    }
    .news-layout {
        flex-direction: column;
    }
}


/* Single Post Layout (IMDB Title Page Style) */
.single-post-container {
    padding-top: 2rem;
}
.single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.single-title {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}
.single-meta-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    color: var(--imdb-gray-muted);
}
.meta-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
}
.meta-separator {
    font-size: 0.5rem;
}
.imdb-rating-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.rating-star {
    color: var(--imdb-yellow);
    font-size: 1.5rem;
}
.rating-score {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}
.rating-max {
    font-size: 0.9rem;
}

/* Media Section */
.single-media-section {
    display: flex;
    gap: 0.5rem;
    height: 400px;
    margin-bottom: 2rem;
}
.main-poster {
    flex: 0 0 280px;
    background-color: #333;
}
.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-gallery {
    flex: 1;
    display: flex;
    gap: 0.5rem;
}
.gallery-item {
    flex: 1;
    background-color: #222;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.empty-gallery-item {
    background-color: #1a1a1a;
}

/* Content Layout */
.single-content-layout {
    display: flex;
    gap: 3rem;
}
.main-content-column {
    flex: 2;
}
.sidebar-content-column {
    flex: 1;
}

.category-pill {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid var(--imdb-border);
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.category-pill:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.single-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.imdb-divider {
    border: 0;
    border-top: 1px solid var(--imdb-border);
    margin: 2rem 0;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
}
.entry-content h2, .entry-content h3 {
    color: #fff;
    margin-top: 2rem;
}
.entry-content img {
    margin: 1.5rem 0;
    border-radius: 4px;
}

.single-tags {
    margin-top: 2rem;
}
.tag-link {
    color: var(--imdb-blue);
    margin-right: 0.5rem;
}
.tag-link:hover {
    text-decoration: underline;
}

/* Sidebar Widget */
.sidebar-widget h3 {
    margin: 0 0 1rem;
    color: var(--imdb-yellow);
    border-left: 3px solid var(--imdb-yellow);
    padding-left: 0.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.related-item {
    display: block;
}
.related-item img {
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.related-title {
    font-size: 0.9rem;
    color: #fff;
}
.related-title:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .single-media-section {
        height: auto;
        flex-direction: column;
    }
    .main-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        aspect-ratio: 2/3;
    }
    .media-gallery {
        display: none; /* Hide gallery on mobile to save space */
    }
    .single-content-layout {
        flex-direction: column;
    }
}

