/*
Theme Name: CineVerse
Theme URI: https://example.com/cineverse
Author: Your Studio
Author URI: https://example.com
Description: A cinematic dark WordPress theme for movie & TV series showcase sites. Built with a custom "Movie" post type, genre taxonomy, poster grid, and film-strip design motif. Design only — no streaming, embed, or piracy functionality included.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cineverse
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root{
  --color-bg: #0B0D10;
  --color-bg-alt: #111319;
  --color-surface: #171A20;
  --color-surface-hover: #1E222A;
  --color-border: #262b34;
  --color-accent: #C8102E;
  --color-accent-hover: #E01B3D;
  --color-gold: #D4AF37;
  --color-text: #EDEDED;
  --color-text-muted: #9096A2;
  --color-text-faint: #5B6170;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container-width: 1280px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-2);
  line-height: 1.15;
}
:focus-visible{
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.container{
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,16,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo{
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
}
.site-logo span{ color: var(--color-accent); }

.primary-nav ul{ display: flex; gap: var(--space-3); align-items: center; }
.primary-nav a{
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color .2s ease;
}
.primary-nav a:hover{ color: var(--color-text); }

.header-search{
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
}
.header-search input{
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  width: 160px;
}
.header-search input::placeholder{ color: var(--color-text-faint); }
.header-search button{
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
}

.mobile-nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

/* ============================================
   HERO / FEATURED
   ============================================ */
.hero{
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(11,13,16,0.15) 0%, rgba(11,13,16,0.6) 55%, var(--color-bg) 100%), var(--hero-bg-image, url('assets/images/hero-default-backdrop.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(200,16,46,0.18), transparent 60%);
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: var(--space-5) 0 var(--space-5);
  max-width: 640px;
}
.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}
.hero-title{ font-size: 56px; margin-bottom: var(--space-2); }
.hero-meta{
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.hero-meta .badge{
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-meta .badge-highlight{
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
.hero-desc{
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  max-width: 520px;
}
.hero-actions{ display: flex; gap: var(--space-2); }
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary{ background: var(--color-accent); color: #fff; }
.btn-primary:hover{ background: var(--color-accent-hover); }
.btn-ghost{ border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover{ border-color: var(--color-text-muted); }

/* ============================================
   SPROCKET / FILM-STRIP DIVIDER (signature element)
   ============================================ */
.film-divider{
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-3);
}
.film-divider .holes{
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.film-divider .holes span{
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.film-divider .label{
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  white-space: nowrap;
}
.film-divider .rule{
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 6px, transparent 6px 12px);
}

/* ============================================
   SECTION / GRID
   ============================================ */
.section{ padding: var(--space-4) 0; }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.section-title{ font-size: 26px; margin: 0; }
.section-title.heading-badge{
  display: inline-block;
  color: #fff;
  background: #1E5FDB;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}
.section-link{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.movie-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3);
}

.movie-card{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform .25s ease, border-color .25s ease;
}
.movie-card:hover{
  transform: translateY(-6px);
  border-color: var(--color-accent);
}
.movie-card .poster-wrap{
  position: relative;
  aspect-ratio: 2/3;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.movie-card .poster-wrap img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.movie-card:hover .poster-wrap img{ transform: scale(1.06); }
.movie-card .rating-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11,13,16,0.85);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.movie-card .card-body{ padding: var(--space-2); }
.movie-card .card-title{
  font-size: 15px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card .card-meta{
  font-size: 12px;
  color: var(--color-text-faint);
  display: flex;
  gap: 8px;
}

/* ============================================
   GENRE FILTER PILLS
   ============================================ */
.genre-filter{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.genre-filter a{
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all .2s ease;
}
.genre-filter a:hover, .genre-filter a.active{
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================
   SINGLE MOVIE PAGE
   ============================================ */
.movie-single-hero{
  position: relative;
  padding: var(--space-5) 0;
  background-image: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.88) 70%, var(--color-bg-alt) 100%), var(--movie-hero-bg, url('assets/images/movie-hero-default-backdrop.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
}
.movie-single-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4);
  align-items: start;
}
.movie-single-poster{
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 2/3;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.movie-single-poster img{ width: 100%; height: 100%; object-fit: cover; }
.movie-single-info .badge-row{ display:flex; gap:8px; margin-bottom: var(--space-2); flex-wrap: wrap;}
.movie-single-info .badge-row .badge{
  border:1px solid var(--color-border); padding: 4px 12px; border-radius: var(--radius-sm);
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted);
}
.movie-single-info .rating-row{ display:flex; align-items:center; gap:10px; margin-bottom: var(--space-3);}
.movie-single-info .rating-row .stars{ color: var(--color-gold); font-size: 20px; letter-spacing: 2px; }
.movie-single-info .synopsis{ color: var(--color-text-muted); max-width: 640px; margin-bottom: var(--space-3); }
.cast-list{ display:flex; flex-wrap: wrap; gap: 10px; }
.cast-list span{
  background: var(--color-surface); border:1px solid var(--color-border);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--color-text-muted);
}

.player-placeholder{
  margin-top: var(--space-4);
  aspect-ratio: 16/9;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 14px;
  text-align: center;
  padding: var(--space-3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-5);
}

.footer-top{
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.footer-brand{
  flex: 1 1 280px;
  max-width: 360px;
}
.footer-brand img{
  max-width: 160px;
  height: auto;
  margin-bottom: var(--space-2);
}
.footer-brand p{
  color: var(--color-text-faint);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.footer-columns{
  display: flex;
  gap: var(--space-5);
  flex: 2 1 480px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-col{
  min-width: 130px;
}
.footer-col-title{
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{
  color: var(--color-text-faint);
  font-size: 13px;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--color-gold); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
}
.footer-note{ color: var(--color-text-faint); font-size: 13px; margin: 0; }
.footer-links{ display:flex; gap: var(--space-3); }
.footer-links a{ color: var(--color-text-muted); font-size: 13px; }
.footer-links a:hover{ color: var(--color-text); }

@media (max-width: 768px){
  .footer-top{ flex-direction: column; }
  .footer-columns{ justify-content: flex-start; gap: var(--space-4); }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px){
  .movie-single-layout{ grid-template-columns: 1fr; }
  .movie-single-poster{ max-width: 240px; order: -1; }
}
@media (max-width: 768px){
  .primary-nav, .header-search{ display: none; }
  .mobile-nav-toggle{ display: block; }
  .hero-title{ font-size: 36px; }
  .hero{ min-height: 480px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
