/* =========================================
   Variables
   ========================================== */
:root {
  /* Color Palette - Luxury + Gaming */
  --color-bg: #05060a;
  --color-bg-elevated: #0d1018;
  --color-bg-soft: #151925;

  --color-text: #f5f5f7;
  --color-text-muted: #a0a4b8;
  --color-text-soft: #7a7f93;

  --color-primary: #d4af37; /* Gold */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-primary-strong: #f5d469;

  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  --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;

  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", 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 - slightly elevated */
  --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.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-11: 2.75rem; /* 44px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --radius-card: 18px;

  /* Shadows - subtle, cinematic */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 1px rgba(212, 175, 55, 0.6), 0 0 0 4px rgba(212, 175, 55, 0.25);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.25rem;

  /* Z-index scale */
  --z-nav: 20;
  --z-overlay: 40;
  --z-modal: 60;
  --z-toast: 80;
}

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

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

body {
  margin: 0;
}

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

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

li {
  list-style: none;
}

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

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

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

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

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

legend {
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 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-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(2.5rem, 3vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
}

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

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

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

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

a:focus-visible {
  outline: none;
}

/* Underline style for key links (e.g. HU content) */
.link-underline {
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.7), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

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

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

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

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

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

/* Layout 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 {
  display: flex;
  flex-direction: column;
}

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

.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 {
  display: grid;
  gap: var(--space-6);
}

.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: minmax(0, 1fr);
  }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }

.w-full { width: 100%; }

.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.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-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

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

/* Badges & Pills (for HU tournament labels, promotions) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(21, 25, 37, 0.96), rgba(4, 7, 16, 0.96));
}

.badge--gold {
  border-color: rgba(212, 175, 55, 0.75);
  color: var(--color-primary-strong);
}

.badge--success {
  border-color: rgba(46, 204, 113, 0.7);
  color: var(--color-success);
}

/* =========================================
   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.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left, #f5d469, #d4af37 40%, #966f16 100%);
  color: #1a1a1f;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
  color: var(--color-text-muted);
}

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

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

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

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

/* Inputs & Forms */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 12, 20, 0.92);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-soft);
}

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

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: var(--space-4);
}

.form-helper {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

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

/* Card */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), rgba(7, 9, 18, 0.96));
  border-radius: var(--radius-card);
  padding: var(--space-6);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card--soft {
  background: linear-gradient(145deg, rgba(10, 12, 20, 0.96), rgba(9, 10, 18, 0.98));
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-xl);
  margin: 0;
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

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

/* Elevated strip for featured items (VIP poker, fine dining highlights) */
.ribbon {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #f5d469, #d4af37, #966f16);
  color: #171717;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

button:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

@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;
  }
}

/* =========================================
   Thematic Helpers (Restaurant & Poker)
   ========================================== */

/* Subtle gradient separators for menus / tournament schedules */
.divider-gradient {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  margin-block: var(--space-4);
}

/* Overlay gradient for hero sections (immersive feel) */
.hero-overlay {
  position: relative;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(5, 6, 10, 0.98) 70%, rgba(5, 6, 10, 1) 100%);
  pointer-events: none;
}

/* Accent for key stats (blind levels, buy-in, etc.) */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

.stat-value {
  font-size: var(--font-size-xl);
  font-family: var(--font-display);
}

/* Luxurious subtle highlight for interactive rows (e.g. tournament list, menu items) */
.row-hover {
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.row-hover:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

/* Map container (location in Hungary) */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}
