/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors */
  --color-bg: #050608; /* near black, cinematic backdrop */
  --color-surface: #101217; /* elevated surface for cards, sections */
  --color-surface-soft: #181b21;

  --color-text: #f5f1e8; /* warm ivory */
  --color-text-muted: #b3aba0;

  --color-primary: #0e3b32; /* deep emerald green */
  --color-primary-soft: rgba(14, 59, 50, 0.85);
  --color-primary-contrast: #f7f3e8;

  --color-success: #1f7c4d;
  --color-warning: #c89a3c; /* champagne gold tone */
  --color-danger: #b02b3b; /* burgundy red */

  --color-border-subtle: #292d36;
  --color-border-strong: #3b414d;

  --color-gold: #d5b47a;
  --color-gold-soft: rgba(213, 180, 122, 0.35);
  --color-ivory: #f5f1e8;
  --color-charcoal: #20232b;

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

  --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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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.5rem;   /* 40px */
  --space-10: 3rem;    /* 48px */
  --space-11: 3.5rem;  /* 56px */
  --space-12: 4rem;    /* 64px */
  --space-14: 4.5rem;  /* 72px */
  --space-16: 5rem;    /* 80px */
  --space-18: 5.5rem;  /* 88px */
  --space-20: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows (soft, cinematic, layered) */
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.7);
  --shadow-gold-glow: 0 0 0 1px rgba(213, 180, 122, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.75);

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

  /* Layout */
  --max-width-container: 1120px;
  --max-width-wide: 1360px;
}

/* Motion reduction support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

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

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

img {
  height: auto;
}

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

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

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

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

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

/* Remove animations/transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-ivory);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(var(--font-size-xl), 2.4vw, var(--font-size-3xl));
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  position: relative;
  transition: color var(--transition-normal),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

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

a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  transition: width var(--transition-normal);
  opacity: 0.7;
}

a:not(.btn):hover::after {
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

::selection {
  background: rgba(213, 180, 122, 0.25);
  color: var(--color-text);
}

/* ========================================================================
   Accessibility & Focus
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

:focus {
  outline: none;
}

/* 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 containers */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

.section {
  padding-top: clamp(var(--space-10), 6vw, var(--space-16));
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}

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

.section--divider {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 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-xs {
  gap: var(--space-2);
}

.gap-sm {
  gap: var(--space-3);
}

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

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

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

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

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

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

/* Alignment & text */
.text-center {
  text-align: center;
}

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

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

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

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

.letter-spread {
  letter-spacing: 0.18em;
}

/* Spacing utilities (margin / padding) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--space-3); }
.pt-md { padding-top: var(--space-4); }
.pt-lg { padding-top: var(--space-6); }
.pt-xl { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-3); }
.pb-md { padding-bottom: var(--space-4); }
.pb-lg { padding-bottom: var(--space-6); }
.pb-xl { padding-bottom: var(--space-8); }

/* Width / max-width */
.w-100 {
  width: 100%;
}

/* Overlay & cinematic helpers */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(213, 180, 122, 0.12), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(176, 43, 59, 0.24), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.overlay-dark > * {
  position: relative;
}

/* ========================================================================
   Components
   ======================================================================== */
/* Buttons */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: #14483f;
  --btn-color: var(--color-primary-contrast);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(213, 180, 122, 0.45);
  background: radial-gradient(circle at 10% 0, rgba(213, 180, 122, 0.3), transparent 55%),
    linear-gradient(135deg, var(--btn-bg), #050b0a);
  color: var(--btn-color);
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-slow),
    transform var(--transition-fast),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background: radial-gradient(circle at 0 0, rgba(213, 180, 122, 0.42), transparent 60%),
    linear-gradient(135deg, var(--btn-bg-hover), #050b0a);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-glow);
}

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

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

.btn-outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(14, 59, 50, 0.6);
  --btn-color: var(--color-gold);

  background: transparent;
  border-color: rgba(213, 180, 122, 0.6);
  color: var(--btn-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(14, 59, 50, 0.7), rgba(5, 6, 8, 0.9));
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-color: var(--color-text);

  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--btn-color);
  box-shadow: none;
}

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

.btn-sm {
  padding: 0.65em 1.4em;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 1em 2.4em;
  font-size: var(--font-size-md);
}

/* Inputs & forms */
.input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(16, 18, 23, 0.92);
  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-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(179, 171, 160, 0.7);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(213, 180, 122, 0.6);
}

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

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

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(213, 180, 122, 0.08), transparent 55%),
    linear-gradient(145deg, rgba(16, 18, 23, 0.98), rgba(5, 6, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(213, 180, 122, 0.12);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.card--soft {
  background: linear-gradient(135deg, rgba(16, 18, 23, 0.95), rgba(13, 20, 19, 0.95));
  box-shadow: none;
}

.card--highlight {
  background: radial-gradient(circle at 0 0, rgba(213, 180, 122, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(16, 18, 23, 0.98), rgba(5, 6, 8, 0.98));
  box-shadow: var(--shadow-gold-glow);
}

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

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

.card-subtitle {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Hero-specific helpers (editorial Hungarian luxury tone) */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
}

.hero-fullscreen__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

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

.hero-title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}

.hero-meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Badges / chips (for events, VIP labels, etc.) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(213, 180, 122, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(5, 6, 8, 0.85);
}

.badge--soft {
  border-color: rgba(213, 180, 122, 0.28);
  background: rgba(213, 180, 122, 0.08);
}

/* Chips for poker evenings / categories */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background: rgba(32, 35, 43, 0.9);
  color: var(--color-text-muted);
}

.chip--accent {
  background: rgba(176, 43, 59, 0.32);
  color: #ffd9e0;
}

/* Simple tag list for meta information */
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

/* ========================================================================
   End of base.css
   ======================================================================== */
