/*
Theme Name: Streaming
Theme URI:
Author:
Author URI:
Description: A Netflix-style WordPress theme
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: streaming
*/

/* CSS Reset and Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Netflix Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e5e5;
    background-color: #141414;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b3b3b3;
}

p {
    margin: 0 0 1rem;
}

/* Header */
.site-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.4s ease;
}

.site-header.scrolled {
    background-color: #141414;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e50914;
}

.site-title a {
    color: #e50914;
    text-decoration: none;
    letter-spacing: -1px;
}

.site-title a:hover {
    color: #f40612;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation a {
    color: #e5e5e5;
    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #b3b3b3;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.search-toggle:hover {
    color: #b3b3b3;
}

/* Main Content */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 4% 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, #000 0%, #000 40%, transparent 50%),
        linear-gradient(to top, #141414 0%, transparent 50%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 40%;
    min-width: 300px;
    padding: 0 4%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-meta .match {
    color: #46d369;
    font-weight: 600;
}

.hero-meta .year,
.hero-meta .duration {
    color: #a3a3a3;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #d2d2d2;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-buttons .btn-play {
    background-color: #fff;
    color: #000;
}

.hero-buttons .btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.hero-buttons .btn-more {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.hero-buttons .btn-more:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Content Rows */
.content-row {
    margin-bottom: 3rem;
}

.content-row-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

/* Content Slider */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.content-slider {
    display: flex;
    gap: 8px;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.content-slider::-webkit-scrollbar {
    display: none;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: rgba(20, 20, 20, 0.7);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 20;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(20, 20, 20, 0.9);
}

.slider-arrow.slider-prev {
    left: 0;
}

.slider-arrow.slider-next {
    right: 0;
}

.slider-arrow:disabled,
.slider-arrow[style*="opacity: 0"] {
    pointer-events: none;
}

/* Article Card */
article.post {
    flex: 0 0 auto;
    width: 240px;
    min-width: 240px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    cursor: pointer;
}

article.post:hover {
    transform: scale(1.4);
    z-index: 10;
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article.post:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

article.post:hover .post-overlay {
    opacity: 1;
}

.post-overlay .entry-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #fff;
}

.post-overlay .entry-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #a3a3a3;
}

.post-overlay .match-score {
    color: #46d369;
    font-weight: 600;
}

/* Entry Header */
.entry-header {
    margin-bottom: 0.75rem;
}

.entry-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.entry-title a {
    color: #e5e5e5;
    text-decoration: none;
}

.entry-title a:hover {
    color: #fff;
}

/* Meta Info */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #a3a3a3;
    margin-bottom: 0.75rem;
}

.entry-meta a {
    color: #e5e5e5;
}

.entry-meta a:hover {
    color: #fff;
}

/* Categories */
.cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cat-links a {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e50914;
    text-decoration: none;
}

.cat-links a:hover {
    color: #f40612;
}

/* Entry Content */
.entry-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a3a3a3;
    margin-bottom: 1rem;
}

.entry-content p {
    margin: 0 0 0.75rem;
}

/* Continue Reading */
.continue-reading {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e50914;
    text-decoration: none;
}

.continue-reading:hover {
    color: #f40612;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background-color: #333;
    border-color: #555;
}

.page-numbers.current {
    background-color: #e50914;
    border-color: #e50914;
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: #141414;
    color: #808080;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-info {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #808080;
    font-size: 0.875rem;
    text-decoration: none;
}

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

/* Sidebar */
.widget-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e5e5;
}

/* Responsive */
@media (max-width: 1200px) {
    article.post {
        width: 20%;
    }
}

@media (max-width: 992px) {
    article.post {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .main-navigation ul {
        gap: 1rem;
    }

    .main-navigation a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    article.post {
        width: 33.333%;
        min-width: 150px;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    article.post {
        width: 50%;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border: 2px solid #e50914;
    color: #000;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}