/* ==========================================================================
   CINEMA DANIEL E A FORNALHA ARDENTE - DESIGN SYSTEM & STYLES
   Paleta: Dark Obsidian, Chamas Douradas & Bronze Cinematográfico
   ========================================================================== */

:root {
  --bg-main: #0a0b10;
  --bg-card: rgba(18, 20, 29, 0.85);
  --bg-card-hover: rgba(28, 32, 48, 0.95);
  --bg-input: #151824;
  --border-subtle: rgba(217, 119, 6, 0.2);
  --border-focus: #f59e0b;
  
  --gold-primary: #f59e0b;
  --gold-secondary: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --flame-accent: #ea580c;
  --flame-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #b91c1c 100%);
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #fbbf24;

  --success: #10b981;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-glow: 0 10px 30px -5px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmospheric Glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, rgba(185, 28, 28, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, .font-cinematic {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.text-gold {
  color: var(--gold-primary);
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-flame {
  background: var(--flame-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
.cinema-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--flame-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  padding: 2rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
}

.hero-credits {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  border-left: 3px solid var(--gold-primary);
  padding-left: 1rem;
}

/* Session Info Badges */
.session-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.info-card .card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card .card-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Destaque Importante: Chegada 30 Minutos e Crianças */
.rules-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 88, 12, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.rule-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--gold-primary);
}

.rule-highlight {
  font-weight: 700;
  color: #fef08a;
}

/* Poster Card */
.poster-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 50px -10px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: var(--transition);
  background: #000;
}

.poster-wrapper:hover {
  transform: scale(1.015);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), 0 0 60px 0 rgba(245, 158, 11, 0.4);
}

.poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.poster-price-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--flame-gradient);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Action Box (Compra Rápida) */
.buy-action-box {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.buy-action-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--flame-gradient);
}

.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-total-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-total-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-primary);
}

/* Stepper Quantity */
.stepper-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stepper-label {
  flex: 1;
}

.stepper-label h4 {
  font-size: 1rem;
  font-weight: 600;
}

.stepper-label p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.6rem;
}

.btn-stepper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-stepper:hover {
  background: var(--gold-primary);
  color: #000;
}

.stepper-value {
  min-width: 32px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Primary Button */
.btn-primary-cine {
  width: 100%;
  padding: 1.1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--flame-gradient);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn-primary-cine:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.btn-primary-cine:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Video Section (Trailer) */
.trailer-section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--gold-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.trailer-frame-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), 0 0 50px rgba(245, 158, 11, 0.15);
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}

.trailer-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Location & Details Section */
.details-section {
  padding: 4rem 0;
  background: rgba(13, 15, 23, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.detail-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.detail-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Modal Checkout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #111420;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Ticket Digital View */
.ticket-wrapper {
  max-width: 640px;
  margin: 3rem auto;
  background: #111420;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-card), 0 0 50px rgba(245, 158, 11, 0.2);
  overflow: hidden;
  position: relative;
}

.ticket-header {
  background: var(--flame-gradient);
  padding: 1.75rem 2rem;
  text-align: center;
  color: white;
  position: relative;
}

.ticket-body {
  padding: 2.25rem 2rem;
}

.ticket-qr-container {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 1.5rem auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.ticket-qr-img {
  width: 200px;
  height: 200px;
  display: block;
}

.ticket-divider {
  position: relative;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
  margin: 2rem 0;
}

.ticket-divider::before,
.ticket-divider::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 28px;
  height: 28px;
  background-color: var(--bg-main);
  border-radius: 50%;
}

.ticket-divider::before {
  left: -2.9rem;
}

.ticket-divider::after {
  right: -2.9rem;
}

/* Footer */
.cinema-footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5rem;
}
