/*
Theme Name: Ezra Republic
Theme URI: http://ezrarepublic.test/
Description: Custom theme for Ezra Republic - Genrefilm website. Built without Elementor Pro.
Author: Sammy Richter
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ezra-republic
*/

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #000000;
  --color-primary: #FFFFFF;
  --color-secondary: #FFFFFF;
  --color-text: #FFFFFF;
  --color-accent: #FF5900;
  --color-footer-text: #929292;
  --color-dropdown-bg: #0F0F0F;
  --color-header-bg: rgba(0, 0, 0, 0.85);
  --font-main: "Oswald", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-hero: "Anton", sans-serif;
  --container-max: 1140px;
  --header-height: 80px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--color-text); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); font-weight: 600; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; }
h1 { font-size: 3.6em; font-weight: 700; }
h2 { font-size: 2.4rem; font-weight: 600; letter-spacing: 0.03em; }
h3 { font-size: 1.4rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 400; letter-spacing: 0.04em; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 40px; }
.section-dark { background-color: var(--color-bg); }
.text-center { text-align: center; }

/* ===== PAGE CONTENT ===== */
.page-content p { margin-bottom: 16px; font-family: var(--font-body); font-weight: 300; }
.page-content h2 { margin: 30px 0 15px; }
.page-content h3 { margin: 25px 0 12px; text-transform: none; }
.page-content h5 { margin: 20px 0 10px; text-transform: none; }
.page-content figure { margin: 20px 0; }
.page-content ul { margin: 15px 0; padding-left: 20px; list-style: disc; }
.page-content li { margin-bottom: 8px; }
.page-content iframe { max-width: 100%; margin: 20px 0; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}
.site-logo img { width: 105px; height: auto; }
.site-logo a { display: inline-block; }

/* ===== NAVIGATION ===== */
.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav li { position: relative; }
.main-nav a {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 10px 0;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--color-accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 73vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 150px;
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.hero > * { position: relative; z-index: 99; }
.hero h1 {
  font-family: var(--font-hero);
  font-size: 5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 0.95;
}
.hero .hero-subtitle {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  max-width: 600px;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.hero .hero-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 600px;
  line-height: 1.6;
}

/* ===== MOVIE GRID ===== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  padding: 80px 40px;
  background: #000;
}
.movie-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.movie-card:hover { transform: scale(1.05); }
.movie-card a { display: block; }
.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.movie-card .movie-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  margin-top: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.movie-card a:hover .movie-title { color: var(--color-accent); }

/* ===== ABOUT SECTION (HOME) ===== */
.about-home {
  padding: 80px 40px;
  text-align: center;
  background: #000;
}
.about-home .label { color: var(--color-footer-text); font-size: 0.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-main); }
.about-home h2 { font-size: 2.4rem; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.03em; }
.about-home p { max-width: 800px; margin: 0 auto; font-size: 1.05rem; font-weight: 300; font-family: var(--font-body); }

/* ===== TRAILER CAROUSEL ===== */
.trailer-section {
  padding: 80px 40px;
  background: #000;
}
.trailer-section h2 { text-align: center; margin-bottom: 40px; letter-spacing: 0.05em; }
.trailer-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}
.trailer-slides {
  display: flex;
  transition: transform 0.5s ease;
}
.trailer-slide {
  min-width: 100%;
  position: relative;
}
.trailer-slide img {
  width: 100%;
  height: 69vh;
  object-fit: cover;
}
.trailer-slide .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 89, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.trailer-slide .play-overlay:hover { background: var(--color-accent); }
.trailer-slide .play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-content iframe {
  width: 80vw;
  height: 45vw;
  max-height: 80vh;
  border: none;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 15px;
  line-height: 1;
}
.lightbox-close:hover { color: var(--color-accent); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  transition: background 0.3s;
}
.carousel-btn:hover { background: var(--color-accent); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Thumbnail strip */
.trailer-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}
.trailer-thumbnails img {
  width: 120px;
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.trailer-thumbnails img.active,
.trailer-thumbnails img:hover { opacity: 1; }

/* ===== CONTACT SECTION (HOME) ===== */
.contact-home {
  display: flex;
  padding: 100px 300px;
  background: #000;
  gap: 60px;
}
.contact-info { flex: 1; }
.contact-info h2 { margin-bottom: 30px; }
.contact-info p { margin-bottom: 10px; font-weight: 300; font-family: var(--font-body); }
.contact-info a { color: #fff; }
.contact-info a:hover { color: var(--color-accent); }
.contact-form { flex: 1; }
.contact-form h2 { margin-bottom: 30px; }

/* ===== FORMS ===== */
.ezra-form .form-group { margin-bottom: 12px; }
.ezra-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 200;
  margin-bottom: 5px;
  color: #fff;
}
.ezra-form input,
.ezra-form textarea {
  width: 100%;
  padding: 10px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
}
.ezra-form input:focus,
.ezra-form textarea:focus { outline: none; border-color: var(--color-accent); }
.ezra-form textarea { min-height: 120px; resize: vertical; }
.ezra-form .checkbox-group { display: flex; align-items: center; gap: 10px; margin: 15px 0; }
.ezra-form .checkbox-group input { width: auto; }
.ezra-form .checkbox-group label { margin-bottom: 0; font-size: 0.85rem; }
.ezra-form .btn-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.3s;
}
.ezra-form .btn-submit:hover { opacity: 0.85; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 50px 200px;
  background: #000;
  text-align: center;
  border-top: 1px solid #222;
}
.site-footer p {
  color: var(--color-footer-text);
  font-weight: 300;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: var(--color-accent); }

/* ===== ABOUT PAGE ===== */
.page-about { padding: 120px 40px 80px; }
.about-intro {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
  align-items: flex-start;
}
.about-intro-left { flex: 1; }
.about-intro-right { flex: 1; }
.about-intro h1 { font-size: 3rem; margin-bottom: 20px; }
.about-intro h3 { font-size: 1.5rem; margin-bottom: 15px; }
.about-intro p { font-weight: 300; font-family: var(--font-body); margin-bottom: 15px; }
.about-intro .social-links { display: flex; gap: 20px; margin-top: 20px; }
.about-intro .social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  transition: all 0.3s;
}
.about-intro .social-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.team-section { max-width: 1200px; margin: 0 auto; }
.team-section h2 { text-align: center; margin-bottom: 40px; letter-spacing: 0.05em; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card { text-align: center; }
.team-card .team-role { color: var(--color-accent); font-size: 0.8rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-main); }
.team-card .team-name { font-size: 1.3rem; font-weight: 500; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.02em; }
.team-card .team-bio { font-weight: 300; font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 15px; }
.team-card .social-links { justify-content: center; }

/* ===== BLOG PAGE ===== */
.page-blog { padding: 120px 40px 80px; max-width: 900px; margin: 0 auto; }
.page-blog h2 { margin-bottom: 40px; }
.blog-list { display: flex; flex-direction: column; gap: 40px; }
.blog-item {
  padding: 30px;
  border: 1px solid #222;
  transition: border-color 0.3s;
}
.blog-item:hover { border-color: var(--color-accent); }
.blog-item h3 { font-size: 1.4rem; margin-bottom: 15px; text-transform: none; }
.blog-item p { font-weight: 300; font-family: var(--font-body); margin-bottom: 10px; }
.blog-item .blog-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-family: var(--font-main);
}

/* ===== CONTACT PAGE ===== */
.page-contact { padding: 120px 40px 80px; }
.contact-page-grid {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}
.contact-page-left { flex: 1; }
.contact-page-right { flex: 1; }
.contact-page-left h1 { font-size: 3rem; margin-bottom: 20px; }
.contact-page-left p { font-weight: 300; font-family: var(--font-body); margin-bottom: 30px; }
.contact-details h3 { margin-bottom: 10px; }
.contact-details p { margin-bottom: 8px; font-weight: 300; font-family: var(--font-body); }
.contact-hours { margin-top: 20px; }
.contact-hours .day { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #222; }

/* ===== IMPRESSUM PAGE ===== */
.page-impressum { padding: 120px 40px 80px; max-width: 800px; margin: 0 auto; }
.page-impressum h2 { margin-bottom: 30px; }
.page-impressum p { font-weight: 300; font-family: var(--font-body); margin-bottom: 15px; line-height: 1.8; }
.page-impressum h3 { margin: 30px 0 15px; font-size: 1.2rem; }

/* ===== SINGLE MOVIE PAGE ===== */
.single-movie { padding: 120px 40px 80px; }
.movie-header {
  text-align: center;
  margin-bottom: 40px;
}
.movie-header h1 { font-family: var(--font-hero); font-size: 3.5rem; text-transform: uppercase; letter-spacing: 0.01em; }
.movie-content { max-width: 900px; margin: 0 auto; }
.movie-content img { width: 100%; margin-bottom: 30px; }
.movie-content p { font-weight: 300; font-family: var(--font-body); margin-bottom: 15px; }

/* ===== MOVIE ARCHIVE ===== */
.archive-movies { padding: 120px 40px 80px; }
.archive-movies h1 { text-align: center; margin-bottom: 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { padding: 80px 50px; }
  .hero h1 { font-size: 2.8rem; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-home { padding: 50px; flex-direction: column; }
  .site-footer { padding: 30px 50px; }
  .about-intro { flex-direction: column; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page-grid { flex-direction: column; }
  .trailer-slide img { height: 40vh; }
}

@media (max-width: 767px) {
  .hero { padding: 100px 20px 50px; min-height: 36vh; }
  .hero h1 { font-size: 1.6rem; }
  .hero .hero-subtitle { font-size: 1.6rem; }
  .hero .hero-description { font-size: 15px; }
  .movie-grid { grid-template-columns: 1fr; padding: 20px; }
  .about-home { padding: 20px; }
  .about-home h2 { font-size: 1.8rem; }
  .trailer-section { padding: 20px; }
  .trailer-slide img { height: 27vh; }
  .contact-home { padding: 20px; }
  .site-footer { padding: 10px 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .page-about, .page-blog, .page-contact, .page-impressum { padding: 100px 20px 40px; }
  
  /* Mobile nav */
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--color-dropdown-bg);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 998;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 15px; }
  .main-nav a { font-size: 1.1rem; padding: 10px 0; }
}
