/* ================================================================
   style.css  –  CinemaXXI Dark Theme
   Palette: Hitam (#0a0a0a, #141414, #1e1e1e) | Merah (#e63946)
            Emas (#c9a84c) | Putih (#f0f0f0) | Abu (#888)
   ================================================================ */

/* ---- Google Fonts import ---- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables / Token ---- */
:root {
  --black:   #0a0a0a;
  --dark:    #141414;
  --card:    #1e1e1e;
  --border:  #2a2a2a;
  --red:     #e63946;
  --red-dim: #b02d38;
  --gold:    #c9a84c;
  --white:   #f0f0f0;
  --muted:   #888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:  10px;
  --shadow:  0 8px 32px rgba(0,0,0,.6);
  --transition: .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

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

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 60px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
}
.section-title span { color: var(--red); }
.section-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 36px;
}
.divider {
  width: 50px;
  height: 3px;
  background: var(--red);
  margin: 10px 0 32px;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--white);
}
.navbar-brand span { color: var(--red); }

.navbar-links { display: flex; gap: 28px; }
.navbar-links a {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--white); }

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Banner ---- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%);
  overflow: hidden;
  padding: 60px 5%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff08'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-content { position: relative; max-width: 600px; }
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--gold); }
.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: .5px;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dim);
  border-color: var(--red-dim);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Film Cards ---- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.film-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.film-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.film-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--border);
}

/* Placeholder poster (SVG-based) */
.film-poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1e1e1e, #111);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  padding: 20px;
}
.film-poster-placeholder .icon { font-size: 2.8rem; }
.film-poster-placeholder .poster-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.2;
}

.film-info { padding: 16px; }
.film-genre {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.film-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.film-meta span { display: flex; align-items: center; gap: 4px; }
.badge-rating {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- Detail Page ---- */
.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 5%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.detail-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.detail-poster .film-poster-placeholder { aspect-ratio: 2/3; }

.detail-info { padding-top: 8px; }
.detail-genre {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.detail-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.detail-meta-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-meta-value { font-size: 1rem; color: var(--white); font-weight: 500; }
.detail-desc {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 540px;
}

/* ---- Jadwal Table ---- */
.jadwal-wrapper { overflow-x: auto; border-radius: var(--radius); }
.jadwal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.jadwal-table thead { background: var(--border); }
.jadwal-table th {
  padding: 14px 18px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.jadwal-table td {
  padding: 14px 18px;
  color: #ccc;
  font-size: .9rem;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: middle;
}
.jadwal-table tr:last-child td { border-bottom: none; }
.jadwal-table tr:hover td { background: rgba(255,255,255,.03); }
.time-chip {
  display: inline-block;
  background: rgba(230,57,70,.15);
  color: var(--red);
  border: 1px solid rgba(230,57,70,.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .85rem;
}
.price-chip {
  color: var(--gold);
  font-weight: 700;
}

/* ---- Film Selector (Jadwal Page) ---- */
.film-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.film-select-btn {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
}
.film-select-btn:hover,
.film-select-btn.active {
  border-color: var(--red);
  color: var(--white);
  background: rgba(230,57,70,.1);
}
.film-select-btn .fs-genre {
  font-size: .68rem;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- Booking Form ---- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--red); }
.form-control option { background: var(--dark); }

/* ---- Seat Map ---- */
.seat-map-wrap {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.screen-bar {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  height: 4px;
  border-radius: 2px;
  margin-bottom: 8px;
  opacity: .7;
}
.screen-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.seat-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: .78rem;
  color: var(--muted);
}
.seat-legend span { display: flex; align-items: center; gap: 6px; }
.seat-legend .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.dot-free     { background: var(--dark); border: 1px solid var(--border); }
.dot-taken    { background: #333; border: 1px solid #333; }
.dot-selected { background: var(--red); border: 1px solid var(--red); }

.seat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.row-label {
  width: 20px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.seats { display: flex; flex-wrap: wrap; gap: 6px; }
.seat {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.seat:hover { border-color: var(--red); color: var(--white); }
.seat.taken {
  background: #1a1a1a;
  color: #333;
  cursor: not-allowed;
  border-color: #222;
}
.seat.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---- Order Summary Sidebar ---- */
.summary-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .88rem;
  color: #aaa;
  border-bottom: 1px solid #1a1a1a;
}
.summary-row:last-of-type { border: none; }
.summary-row .val { color: var(--white); font-weight: 600; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.summary-total .label { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.summary-total .amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); letter-spacing: 1px; }

/* ---- Konfirmasi Page ---- */
.konfirmasi-wrap {
  max-width: 620px;
  margin: 60px auto;
  padding: 0 5%;
}
.konfirmasi-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.konfirmasi-header {
  background: linear-gradient(135deg, var(--red), var(--red-dim));
  padding: 32px;
  text-align: center;
}
.konfirmasi-header .check-icon { font-size: 3rem; margin-bottom: 12px; }
.konfirmasi-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: #fff;
}
.konfirmasi-header p { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 6px; }
.konfirmasi-body { padding: 32px; }
.kode-booking {
  background: var(--dark);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.kode-booking .kode-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.kode-booking .kode-num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--gold);
}
.detail-rows { margin-bottom: 24px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: #aaa;
}
.detail-row:last-child { border: none; }
.detail-row .dr-val { color: var(--white); font-weight: 600; text-align: right; }
.konfirmasi-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Alert / Flash ---- */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error { background: rgba(230,57,70,.15); border: 1px solid var(--red); color: #ff8087; }
.alert-success { background: rgba(40,167,69,.15); border: 1px solid #28a745; color: #6ddb7e; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }

/* ---- Footer ---- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--white);
}
.footer-brand span { color: var(--red); }
.footer-copy { font-size: .8rem; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 200px 1fr; gap: 24px; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 680px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,10,10,.98); padding: 20px 5%; gap: 16px; border-bottom: 1px solid var(--border); }
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-poster { max-width: 220px; }
  .film-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .booking-layout { padding: 24px 4%; }
  .form-card { padding: 20px; }
}
