/* ========================================================================== */
/*  Variables                                                                 */
/* ========================================================================== */

:root {
  /* Colors */
  --color-background: #05060a; /* deep cinematic black */
  --color-surface: #0b0f1a; /* dark surface for cards/sections */
  --color-surface-alt: #111827; /* subtle contrast surface */
  --color-text: #f9fafb; /* soft ivory/near-white for dark backgrounds */
  --color-text-muted: #9ca3af;

  --color-primary: #1f2a5a; /* royal navy blue */
  --color-primary-soft: #2b3a7a;
  --color-accent-gold: #d4af37; /* metallic gold */
  --color-accent-gold-soft: rgba(212, 175, 55, 0.16);
  --color-accent-crimson: #b91c1c; /* rich crimson red */

  --color-success: #16a34a;
  --color-warning: #facc15;
  --color-danger: #dc2626;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1.0625rem; /* 17px (slightly elevated for premium feel) */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-pill: 999px;

  /* Shadows - cinematic & soft */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-subtle-gold: 0 0 25px rgba(212, 175, 55, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================================================================== */
/*  Reset / Normalize                                                         */
/* ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  padding: 0;
  background: none;
}

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

/* ========================================================================== */
/*  Base                                                                      */
/* ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-xs);
}

a {
  color: var(--color-accent-gold);
  cursor: pointer;
  text-underline-offset: 0.18em;
  transition: color var(--transition-base), text-decoration-color var(--transition-base), opacity var(--transition-fast);
}

a:hover {
  color: #facc6b;
}

a:active {
  opacity: 0.8;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin: var(--space-8) 0;
}

/* ========================================================================== */
/*  Accessibility                                                             */
/* ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* High-contrast focus alternative for dark sections */
.dark-section :focus-visible {
  outline-color: #fbbf24;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================== */
/*  Utilities                                                                 */
/* ========================================================================== */

/* Layout */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1200px;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--tight {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Flex */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Text alignment */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Background helpers for different event moods */

.bg-dark-cinema {
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000000 100%);
  color: var(--color-text);
}

.bg-corporate-light {
  color: var(--color-gray-900);
}

.bg-warm-social {
  background: radial-gradient(circle at top left, #f97316 0, #7f1d1d 45%, #020617 100%);
  color: var(--color-text);
}

/* Elevation */

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

/* Spacing utilities (subset) */

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

/* ========================================================================== */
/*  Components                                                                */
/* ========================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast), border-color var(--transition-base), opacity var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, #facc6b 40%, var(--color-accent-gold) 100%);
  color: #111827 !important;
  box-shadow: var(--shadow-subtle-gold);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent-gold);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.08);
}

.btn-ghost {
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

/* Inputs & form controls */

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}

.input--light,
.light-section .input,
.light-section select,
.light-section textarea {
  background-color: #ffffff;
  color: var(--color-gray-900);
  border-color: var(--color-gray-300);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Cards (event cards, storytelling blocks) */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-slow);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.06), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(212, 175, 55, 0.55);
}

.card:hover::before {
  opacity: 1;
}

.card--light {

  border-color: var(--color-gray-200);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.card--light:hover {
  border-color: var(--color-accent-gold-soft);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* Tag / pill for table games, formats etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: var(--color-accent-gold);
  background: rgba(15, 23, 42, 0.85);
}

.badge--crimson {
  border-color: rgba(185, 28, 28, 0.75);
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.9);
}

/* Hero overlay for cinematic imagery */

.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.98));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* Timeline base (for storytelling sections) */

.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.7));
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: 0.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle, #facc6b 0, var(--color-accent-gold) 60%, #92400e 100%);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

/* Basic slider shell (visual only, JS handled separately) */

.slider-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: #020617;
  box-shadow: var(--shadow-soft);
}

.slider-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.slider-slide {
  min-width: 100%;
}

.slider-nav {
  position: absolute;
  inset-inline: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider-nav button {
  pointer-events: auto;
}
