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

:root {
  /* Core Palette - Luxurious, cinematic, poker & fine dining */
  --color-background: #050608; /* near-black, cinematic */
  --color-surface: #101318; /* cards / panels */
  --color-surface-elevated: #161a21;

  --color-text: #f5f1e9; /* warm ivory */
  --color-text-muted: #c3b8a7;
  --color-text-soft: #a29582;

  --color-primary: #0e5a3f; /* dark emerald green */
  --color-primary-soft: #147454;
  --color-primary-muted: #0a3e2a;

  --color-success: #1f8f5a;
  --color-warning: #cc9a2b; /* warm gold */
  --color-danger: #b43a3a; /* deep burgundy red */

  /* Gold & accent tones */
  --color-gold: #d4af37; /* royal gold */
  --color-gold-soft: #b8962f;
  --color-gold-muted: #8d6e25;

  /* Neutral Grays (charcoal oriented) */
  --color-gray-50: #f8f7f4;
  --color-gray-100: #e5e1d8;
  --color-gray-200: #cac3b3;
  --color-gray-300: #a89e8a;
  --color-gray-400: #857a67;
  --color-gray-500: #645b4b;
  --color-gray-600: #494034;
  --color-gray-700: #342d25;
  --color-gray-800: #211c17;
  --color-gray-900: #14100c;

  /* Status variants tied to palette */
  --color-success-soft: rgba(31, 143, 90, 0.12);
  --color-warning-soft: rgba(204, 154, 43, 0.12);
  --color-danger-soft: rgba(180, 58, 58, 0.12);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --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 */

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

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-soft-glow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 18px 60px rgba(0, 0, 0, 0.85);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: var(--space-4);

  /* Focus outline */
  --focus-ring-color: rgba(212, 175, 55, 0.7);
  --focus-ring-width: 2px;
}

@media (min-width: 768px) {
  :root {
    --container-padding-x: var(--space-6);
  }
}

/* ========================================================================
   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,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

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

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

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

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

legend {
  padding: 0;
}

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

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

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  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);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
  color: var(--color-text-soft);
}

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

strong,
b {
  font-weight: 600;
}

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

/* Elegant underline reveal for text links */
a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transition: width var(--transition-normal);
}

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

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

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

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

/* ========================================================================
   Accessibility & Motion
   ======================================================================== */

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

:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Layout helpers */

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

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

.section--dark {
  background: radial-gradient(circle at top left, rgba(14, 90, 63, 0.2), transparent 55%),
              radial-gradient(circle at bottom right, rgba(180, 58, 58, 0.22), transparent 55%),
              var(--color-background);
}

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

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

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

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

/* Grid utilities */

.grid {
  display: grid;
}

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

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

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

/* Spacing utilities (y-axis) */

.stack-sm > * + * {
  margin-top: var(--space-3);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

/* Text utilities (useful for Hungarian copy layout) */

.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-spaced {
  letter-spacing: 0.18em;
}

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

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

/* Buttons - primary for actions (e.g., "Foglalás"), subtle for ghost */

.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-soft);
  --btn-bg-active: var(--color-primary-muted);
  --btn-color: var(--color-text);
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.18), transparent 55%),
              var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-normal),
    transform var(--transition-fast),
    box-shadow var(--transition-normal),
    border-color var(--transition-fast),
    color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.22), transparent 55%),
              var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.02);
  --btn-bg-active: rgba(0, 0, 0, 0.4);
  --btn-color: var(--color-gold);
  --btn-border: rgba(212, 175, 55, 0.8);

  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.02);
  --btn-bg-active: rgba(0, 0, 0, 0.3);
  --btn-color: var(--color-text-muted);
  --btn-border: rgba(255, 255, 255, 0.08);

  box-shadow: none;
}

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

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

/* Form elements - reservations, poker events, VIP inquiries */

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(16, 19, 24, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(195, 184, 167, 0.6);
}

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

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

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

/* Cards - tournament highlights, guest stories, event promos */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background:
    radial-gradient(circle at top left, rgba(14, 90, 63, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.16), transparent 55%),
    var(--color-surface);
  box-shadow: var(--shadow-soft-glow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.card--subtle {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.card--outlined {
  background: rgba(16, 19, 24, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

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

.card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

.card__meta {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

/* Tag / pill - e.g. "VIP", "Bajnokság", "No-Limit" */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(10, 62, 42, 0.6);
}

/* Navigation basics (for global, events, poker, reservations pages) */

.navbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.88));
  backdrop-filter: blur(14px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.navbar__brand {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.navbar__link {
  position: relative;
  padding-bottom: 0.1rem;
  color: var(--color-text-soft);
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transition: width var(--transition-normal);
}

.navbar__link--active,
.navbar__link:hover {
  color: var(--color-text);
}

.navbar__link--active::after,
.navbar__link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar__inner {
    height: auto;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .navbar__menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

/* Hero overlay utility for cinematic imagery */

.hero {
  position: relative;
  color: var(--color-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(5, 6, 8, 0.98) 80%),
    radial-gradient(circle at 15% 0, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(14, 90, 63, 0.3), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* Badge for events / tournaments */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
}

.badge--success {
  border-color: rgba(31, 143, 90, 0.7);
  color: #a7f3d0;
}

.badge--danger {
  border-color: rgba(180, 58, 58, 0.7);
  color: #fecaca;
}

/* Table-like layout for tournament structures */

.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table-simple th,
.table-simple td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-simple th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.table-simple tbody tr:hover {
  background-color: rgba(16, 19, 24, 0.9);
}

/* Gallery grid helper for venue & guest experiences */

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

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.gallery-grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.9), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-grid__item:hover img {
  transform: scale(1.04);
  filter: saturate(1.15);
}

.gallery-grid__item:hover::after {
  opacity: 1;
}

/* Toast / notification for reservation feedback */

.toast {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 320px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(5, 6, 8, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  z-index: 60;
}

.toast--success {
  border-color: rgba(31, 143, 90, 0.8);
}

.toast--error {
  border-color: rgba(180, 58, 58, 0.8);
}

@media (max-width: 600px) {
  .toast {
    left: var(--space-3);
    right: var(--space-3);
  }
}
