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

:root {
  /* Colors */
  --color-background: #05060a; /* near-black, cinematic base */
  --color-surface: #0c0f18; /* layered panels */
  --color-surface-elevated: #131727;
  --color-text: #f6f2e9; /* soft ivory */
  --color-text-muted: #b9b3a5;
  --color-primary: #d4af37; /* gold */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-success: #1fa27a; /* emerald green */
  --color-warning: #f7b85c;
  --color-danger: #d33f49; /* deep red */

  --color-navy: #050b1a; /* dark navy */
  --color-burgundy: #5c1224; /* deep burgundy */
  --color-table-green: #0c5c3c; /* poker table green */

  --gray-50: #f7f7f9;
  --gray-100: #e3e4ea;
  --gray-200: #c5c7d3;
  --gray-300: #a4a7b6;
  --gray-400: #82859a;
  --gray-500: #61647a;
  --gray-600: #494c5f;
  --gray-700: #34374a;
  --gray-800: #1f2232;
  --gray-900: #111320;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, 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 */
  --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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* 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-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, layered) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.7);
  --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 0 40px rgba(212, 175, 55, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 340ms ease;
}

/* Respect users that prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 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,
body,
div,
span,
applet,
object,
iframe,
 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p,
 blockquote,
 pre,
 a,
 abbr,
 acronym,
 address,
 big,
 cite,
 code,
 del,
 dfn,
 em,
 img,
 ins,
 kbd,
 q,
 s,
 samp,
 small,
 strike,
 strong,
 sub,
 sup,
 tt,
 var,
 b,
 u,
 i,
 center,
 dl,
 dt,
 dd,
 ol,
 ul,
 li,
 fieldset,
 form,
 label,
 legend,
 table,
 caption,
 tbody,
 tfoot,
 thead,
 tr,
 th,
 td,
 article,
 aside,
 canvas,
 details,
 embed,
 figure,
 figcaption,
 footer,
 header,
 hgroup,
 menu,
 nav,
 output,
 ruby,
 section,
 summary,
 time,
 mark,
 audio,
 video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
footer,
header,
nav,
section,
main,
figure,
figcaption {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

img,
video {
  height: auto;
}

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

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

input,
textarea,
select {
  outline: none;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--color-text);
  background-color: var(--color-background);
  background-image:
    radial-gradient(circle at top left, rgba(92, 18, 36, 0.6), transparent 55%),
    radial-gradient(circle at bottom right, rgba(12, 92, 60, 0.5), transparent 55%);
}

body::before {
  /* subtle vignette for cinematic feel */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8));
  mix-blend-mode: multiply;
  z-index: -1;
}

main {
  display: block;
}

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

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-transform: uppercase;
}

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

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

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

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

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

h6 {
  font-size: var(--font-size-lg);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  h2 {
    font-size: var(--font-size-3xl);
  }
  h3 {
    font-size: var(--font-size-2xl);
  }
}

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

a {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #f3d77c;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), rgba(243, 215, 124, 0.7));
  transition: width var(--transition-normal);
}

a:hover::after {
  width: 100%;
}

strong,
b {
  font-weight: 600;
}

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

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

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

:focus {
  outline: none;
}

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

@supports selector(:focus-visible) {
  :focus:not(:focus-visible) {
    outline: none;
  }
}

[tabindex="-1"]:focus {
  outline: none !important;
}

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

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

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

/* Layout containers */

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

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

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

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

/* Flex utilities */

.flex {
  display: flex;
}

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

.flex-row {
  flex-direction: row;
}

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

.justify-end {
  justify-content: flex-end;
}

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

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

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

/* Grid utilities */

.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: 960px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Text utilities */

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

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

.text-uppercase {
  text-transform: uppercase;
}

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

/* Spacing utilities (minimal baseline) */

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-0 {
  margin-bottom: 0;
}

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

.mb-8 {
  margin-bottom: var(--space-8);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Width helpers */

.w-full {
  width: 100%;
}

/* Visual utility helpers */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(5, 11, 26, 0.8));
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge--ghost {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn--primary {
  color: #100b02 !important;
  background: radial-gradient(circle at 10% 0%, #f3dd8b, #d4af37);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at 0% 0%, #fff4c0, #f3d77c);
  box-shadow: var(--shadow-gold-glow);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.btn--ghost {
  color: var(--color-text);
  background: rgba(5, 6, 10, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: rgba(9, 14, 26, 0.9);
  border-color: rgba(212, 175, 55, 0.5);
}

.btn--outline {
  color: var(--color-primary);
  background: transparent;
  border-color: rgba(212, 175, 55, 0.6);
}

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

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: var(--font-size-md);
}

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

.btn:focus-visible {
  box-shadow: 0 0 0 2px #05060a, 0 0 0 4px var(--color-primary);
}

/* Inputs & form controls */

.field {
  margin-bottom: var(--space-5);
}

.field-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.field-helper {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), rgba(6, 8, 15, 0.95));
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal),
    transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(185, 179, 165, 0.6);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 1px rgba(16, 11, 2, 0.7), 0 0 0 3px rgba(212, 175, 55, 0.7);
  outline: none;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

select.select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(212, 175, 55, 0.9) 50%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

/* Card component: for events, packages, gallery items */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), rgba(5, 6, 10, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-slow);
}

.card::before {
  /* subtle spotlight sweep */
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 0;
  transform: translate3d(-30%, -20%, 0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.card--light {
  background: linear-gradient(135deg, rgba(5, 6, 10, 0.9), rgba(12, 92, 60, 0.35));
}

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

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

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.card-footer {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Tagline / micro-heading for sections */

.kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* Simple overlay for hero media */

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.3), rgba(5, 6, 10, 0.95));
  pointer-events: none;
}

/* Pill label for event types (Poker, Roulette, etc.) */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(5, 6, 10, 0.9);
}

.pill--accent {
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--color-primary);
}

/* Toast / status message (success, warning, danger) */

.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid transparent;
}

.alert--success {
  background: rgba(31, 162, 122, 0.12);
  border-color: rgba(31, 162, 122, 0.5);
  color: #c8f5e2;
}

.alert--warning {
  background: rgba(247, 184, 92, 0.12);
  border-color: rgba(247, 184, 92, 0.5);
  color: #ffe6b8;
}

.alert--danger {
  background: rgba(211, 63, 73, 0.12);
  border-color: rgba(211, 63, 73, 0.5);
  color: #ffd0d4;
}

/* Simple badge row for meta info (players, stakes, duration) */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--font-size-xs);
  color: var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-label {
  opacity: 0.7;
}

.meta-value {
  font-weight: 500;
  color: var(--color-text);
}
