/* ═══════════════════════════════════════════════════════════════════
   PEOPLE FOR THE PEOPLE (P4P) — BOLLYWOOD FOOD TIMES ORDERING PLATFORM
   Design System & Master Styling Tokens
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Core Brand Colors ── */
  --p4p-black: #040907;
  --p4p-near-black: #060e0b;
  --p4p-surface: #0a1612;
  --p4p-surface-elevated: #0f211b;
  --p4p-surface-card: rgba(14, 28, 23, 0.85);

  --p4p-forest-deep: #040907;
  --p4p-emerald-deep: #061c14;
  --p4p-emerald-mid: #0a3d2e;
  --p4p-emerald-light: #145c47;
  --p4p-emerald-bright: #1b7a5e;

  --p4p-gold: #c9a84c;
  --p4p-gold-light: #e2c47a;
  --p4p-gold-pale: #f7eed8;
  --p4p-gold-muted: rgba(201, 168, 76, 0.25);
  --p4p-gold-glow: rgba(201, 168, 76, 0.4);

  --p4p-cream: #f8f4ed;
  --p4p-cream-muted: #c8bda2;
  --p4p-cream-faint: #8e8673;

  /* ── Functional Semantics ── */
  --p4p-veg: #10b981;
  --p4p-veg-bg: rgba(16, 185, 129, 0.12);
  --p4p-nonveg: #ef4444;
  --p4p-nonveg-bg: rgba(239, 68, 68, 0.12);
  --p4p-warning: #f59e0b;
  --p4p-danger: #dc2626;
  --p4p-success: #10b981;

  /* ── Typography Stacks ── */
  --font-cinema: 'Cinzel', serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ── Borders & Radii ── */
  --border-gold-subtle: 1px solid rgba(201, 168, 76, 0.22);
  --border-gold-prominent: 1.5px solid rgba(201, 168, 76, 0.55);
  --border-surface: 1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ── Shadows & Blur ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.22);
  --glass-bg: rgba(8, 18, 14, 0.88);
  --glass-blur: blur(14px);

  /* ── Spacing ── */
  --container-max: 1280px;
  --header-height: 74px;
  --topbar-height: 38px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--p4p-black);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(10, 61, 46, 0.28) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--p4p-cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography Defaults ── */
h1, h2, h3, h4, .cinema-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--p4p-cream);
  line-height: 1.2;
}

.headline-serif {
  font-family: var(--font-cinema);
  letter-spacing: 0.04em;
}

p {
  color: var(--p4p-cream-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all 0.2s ease;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--p4p-cream);
  background: rgba(14, 28, 23, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--p4p-gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

/* ── Gold Dividers & Filmstrip Accents ── */
.filmstrip-border {
  border-top: 2px dashed rgba(201, 168, 76, 0.35);
  position: relative;
}

.filmstrip-border::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 10px;
  background: var(--p4p-gold);
  border-radius: 2px;
  opacity: 0.8;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid var(--p4p-gold);
  color: var(--p4p-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.ticket-cutout-left, .ticket-cutout-right {
  position: relative;
}

/* ── Buttons ── */
.btn-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #a6842f 100%);
  color: #050c09;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e2c47a 0%, #c9a84c 100%);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  border: 1.5px solid var(--p4p-gold);
  color: var(--p4p-gold-light);
  background: rgba(201, 168, 76, 0.06);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background: rgba(201, 168, 76, 0.16);
  color: var(--p4p-cream);
  border-color: var(--p4p-gold-light);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--p4p-emerald-mid) 0%, var(--p4p-emerald-deep) 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--p4p-cream);
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-emerald:hover {
  background: var(--p4p-emerald-light);
  border-color: var(--p4p-gold);
}

/* ── Dietary Indicators ── */
.diet-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  flex-shrink: 0;
}

.diet-indicator.veg {
  border: 1.5px solid var(--p4p-veg);
  background: rgba(16, 185, 129, 0.05);
}

.diet-indicator.veg::after {
  content: '';
  width: 7px;
  height: 7px;
  background-color: var(--p4p-veg);
  border-radius: 50%;
}

.diet-indicator.nonveg {
  border: 1.5px solid var(--p4p-nonveg);
  background: rgba(239, 68, 68, 0.05);
}

.diet-indicator.nonveg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-bottom: 7.5px solid var(--p4p-nonveg);
}

/* ── Container ── */
.p4p-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .p4p-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ── Toast Micro-Interaction ── */
.p4p-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.p4p-toast {
  pointer-events: auto;
  background: rgba(6, 20, 14, 0.95);
  border: 1px solid var(--p4p-gold);
  color: var(--p4p-cream);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(201, 168, 76, 0.3);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideToastUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.p4p-toast button {
  color: var(--p4p-gold);
  font-weight: 700;
  text-decoration: underline;
  padding: 0 0.2rem;
}

@keyframes slideToastUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
