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

:root {
  /* Colors */
  --color-bg: #050810; /* deep cinematic navy/black */
  --color-bg-elevated: #0d111b;
  --color-bg-soft: #151926;
  --color-surface: #11141f;
  --color-text: #f6f1e8; /* warm ivory */
  --color-text-muted: #a7a296;
  --color-primary: #d9b06a; /* champagne gold */
  --color-primary-soft: rgba(217, 176, 106, 0.16);
  --color-primary-strong: #f0c878;
  --color-accent: #0e7b5f; /* emerald accent */
  --color-success: #29b36b;
  --color-warning: #f6b46b;
  --color-danger: #f26d6d;

  --gray-50: #f7f6f4;
  --gray-100: #e5e1d8;
  --gray-200: #c9c3b6;
  --gray-300: #a7a296;
  --gray-400: #858077;
  --gray-500: #635f58;
  --gray-600: #44423e;
  --gray-700: #302e2b;
  --gray-800: #1e1c1a;
  --gray-900: #12110f;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xxs: 0.75rem;  /* 12px */
  --font-size-xs: 0.8125rem; /* 13px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --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 */
  --font-size-6xl: 3.75rem;  /* 60px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --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-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - subtle cinematic layering */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-outline: 0 0 0 1px rgba(217, 176, 106, 0.6), 0 0 0 4px rgba(217, 176, 106, 0.18);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-med: 220ms ease-out;
  --transition-slow: 360ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-med: 0ms;
    --transition-slow: 0ms;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

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

button:disabled,
[disabled] {
  cursor: not-allowed;
}

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

/* Remove tap highlight on mobile for a more polished feel */

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

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

::selection {
  background-color: rgba(217, 176, 106, 0.22);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

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

h2 {
  font-size: clamp(var(--font-size-3xl), 3.4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(var(--font-size-2xl), 2.6vw, var(--font-size-4xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

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

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

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

strong,
b {
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

a {
  position: relative;
  transition: color var(--transition-med);
}

a:hover {
  color: var(--color-primary);
}

/* Editorial underlines for inline links */

p a,
li a {
  text-decoration: none;
}

p a::after,
li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 176, 106, 0.0), rgba(217, 176, 106, 0.9));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

p a:hover::after,
li a:hover::after {
  transform: scaleX(1);
}

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

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Accessibility & Focus Styles
   ========================================================================== */

:focus-visible {
  outline: none;
}

*:focus-visible {
  box-shadow: var(--shadow-outline);
  border-radius: var(--radius-sm);
}

/* 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;
}

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

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

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

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

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

.section--hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Flex helpers */

.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 {
  flex-direction: column;
}

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

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

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

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

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

/* Grid helpers */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Width utilities */

.w-full {
  width: 100%;
}

/* Spacing utilities (margin/padding) */

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

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

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

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

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

/* Background helpers */

.bg-soft {
  background: var(--color-bg-soft);
}

.bg-elevated {
  background: var(--color-bg-elevated);
}

.bg-surface {
  background: var(--color-surface);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-5);
  padding-block: calc(var(--space-3) + 1px);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f0c878, #b08a4b);
  color: #1a1308 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.btn-outline {
  background: rgba(5, 8, 16, 0.7);
  border-color: rgba(217, 176, 106, 0.6);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(217, 176, 106, 0.13);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

.btn-icon {
  padding-inline: var(--space-3);
  padding-block: var(--space-3);
}

/* Inputs */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-100);
}

.input,
.textarea,
.select {
  width: 100%;
  padding-inline: var(--space-4);
  padding-block: var(--space-3);
  font-size: var(--font-size-md);
  color: var(--color-text);
  background: rgba(10, 12, 20, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  outline: none;
  transition:
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    background-color var(--transition-med);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: rgba(217, 176, 106, 0.9);
  box-shadow: 0 0 0 1px rgba(217, 176, 106, 0.9), 0 18px 45px rgba(0, 0, 0, 0.6);
}

.textarea {
  min-height: 7rem;
}

.input--error,
.textarea--error,
.select--error {
  border-color: rgba(242, 109, 109, 0.9);
}

.field-hint {
  font-size: var(--font-size-xs);
  color: var(--gray-300);
}

.field-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card */

.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(217, 176, 106, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(14, 123, 95, 0.16), transparent 60%),
              var(--color-surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.card--soft {
  background: rgba(10, 12, 20, 0.88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.card-body {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
}

/* Hero / cinematic overlays (optional helpers) */

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(5, 8, 16, 0.9) 55%, rgba(5, 8, 16, 1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Tagline / small uppercase label */

.kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Utility text colors */

.text-muted {
  color: var(--color-text-muted);
}

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

.text-emerald {
  color: var(--color-accent);
}

/* Badges for subtle casino-night labels, VIP, etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-3);
  padding-block: calc(var(--space-1) + 1px);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(217, 176, 106, 0.5);
  color: var(--gray-100);
  background: rgba(5, 8, 16, 0.8);
}

.badge--emerald {
  border-color: rgba(14, 123, 95, 0.7);
  color: #d8fff1;
}

/* Footer subtle border */

.footer-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}

/* End of base.css */
