/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Color Palette - Dark Luxury Restaurant & Poker Lounge */
  --color-bg: #080707; /* base background - near black */
  --color-bg-elevated: #121012; /* cards, panels */
  --color-bg-glass: rgba(10, 9, 10, 0.78);
  --color-surface-soft: #1c1716; /* softer elevated surfaces */

  --color-text: #f5f2ec;
  --color-text-muted: #b9b1a6;
  --color-text-soft: #91877a;
  --color-border-subtle: rgba(228, 210, 184, 0.18);

  --color-primary: #c89b3c; /* antique gold */
  --color-primary-soft: rgba(200, 155, 60, 0.12);
  --color-primary-dark: #8e6c2b;

  --color-accent-forest: #1f3a2d; /* forest green accents */
  --color-accent-espresso: #2a1b15; /* deep espresso brown */

  --color-success: #4caf50;
  --color-warning: #ffb74d;
  --color-danger: #e57373;

  /* Neutral grays for subtle UI elements */
  --gray-50: #faf7f3;
  --gray-100: #e4ddd2;
  --gray-200: #cfc6b8;
  --gray-300: #b3a897;
  --gray-400: #968974;
  --gray-500: #7a6b56;
  --gray-600: #5f4f3b;
  --gray-700: #43362a;
  --gray-800: #251c16;
  --gray-900: #120e0b;

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

  /* Base font sizes (mobile-first, clamp for fluid scaling) */
  --font-size-xs: 0.78rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: clamp(1.35rem, 1.1rem + 0.6vw, 1.6rem);
  --font-size-2xl: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem);
  --font-size-3xl: clamp(2.1rem, 1.5rem + 1.8vw, 3rem);
  --font-size-4xl: clamp(2.6rem, 1.9rem + 2.4vw, 3.6rem);
  --font-size-display: clamp(3.1rem, 2.2rem + 3.2vw, 4.6rem);

  /* Line heights */
  --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: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-16: 32px;
  --space-20: 40px;
  --space-24: 48px;
  --space-28: 56px;
  --space-32: 64px;
  --space-40: 80px;
  --space-48: 96px;
  --space-56: 112px;
  --space-64: 128px;

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

  /* Shadows - soft, cinematic, layered */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-border-glow: 0 0 0 1px rgba(200, 155, 60, 0.3);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 420ms ease;

  /* Layout helpers */
  --container-max-width: 1200px;
  --container-wide-max-width: 1440px;
  --container-padding-x: 20px;

  /* Z-index scale */
  --z-header: 40;
  --z-overlay: 50;
  --z-modal: 60;
}

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
li,
pre,
fieldset,
legend,
textarea,
input,
button {
  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%;
}

img {
  height: auto;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

:focus {
  outline: none;
}

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

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  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;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: 60vh;
}

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

p + p {
  margin-top: var(--space-4);
}

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

h1 {
  font-size: var(--font-size-display);
  margin-bottom: var(--space-8);
}

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

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

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

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

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

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal),
              opacity var(--transition-fast),
              text-shadow var(--transition-normal);
}

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

a:focus-visible {
  text-shadow: 0 0 0.6em rgba(200, 155, 60, 0.9);
}

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

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

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

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

.container--wide {
  max-width: var(--container-wide-max-width);
}

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

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

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

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

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

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

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Visibility helpers */
.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:focus,
.sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Spacing utilities (margin / padding bottom & top) */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-4); }
.mb-sm { margin-bottom: var(--space-6); }
.mb-md { margin-bottom: var(--space-10); }
.mb-lg { margin-bottom: var(--space-16); }
.mb-xl { margin-bottom: var(--space-24); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-4); }
.mt-sm { margin-top: var(--space-6); }
.mt-md { margin-top: var(--space-10); }
.mt-lg { margin-top: var(--space-16); }
.mt-xl { margin-top: var(--space-24); }

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

/* Subtle glassmorphism backdrop utility for header & overlays */
.glass-dark {
  background: var(--color-bg-glass);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Buttons - primary, ghost, subtle for CTAs (foglalás, póker esték, privát események) */
.btn {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: rgba(228, 210, 184, 0.3);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

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

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

.btn-primary {
  --btn-bg: linear-gradient(135deg, #c89b3c, #8e6c2b);
  --btn-color: #120e0b;
  --btn-border: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  --btn-bg: linear-gradient(135deg, #d6aa4b, #9b7832);
}

.btn-ghost {
  --btn-bg: rgba(12, 10, 8, 0.6);
  --btn-color: var(--color-text);
  --btn-border: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  --btn-bg: rgba(23, 19, 15, 0.95);
}

.btn-subtle {
  --btn-bg: var(--color-primary-soft);
  --btn-color: var(--color-text);
  --btn-border: rgba(200, 155, 60, 0.2);
}

.btn-small {
  padding: 7px 18px;
  font-size: var(--font-size-xs);
}

.btn-large {
  padding: 13px 30px;
  font-size: var(--font-size-md);
}

/* Icon alignment in buttons */
.btn i,
.btn svg {
  width: 1em;
  height: 1em;
}

/* Form inputs - for foglalás, kapcsolat, esemény űrlapok */
.input,
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(8, 7, 7, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-border-glow);
  background-color: rgba(15, 12, 10, 0.98);
}

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

label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

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

/* Card component - for történet, menü-szekciók, póker estek, blog kártyák */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(200, 155, 60, 0.06), transparent 60%),
              linear-gradient(145deg, rgba(20, 16, 13, 0.98), rgba(8, 7, 7, 0.98));
  padding: var(--space-16);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(200, 155, 60, 0.08), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover::before {
  opacity: 1;
}

.card--soft {
  background: linear-gradient(145deg, rgba(27, 21, 19, 0.96), rgba(10, 8, 7, 0.96));
}

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

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

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

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

/* Focus styles for interactive card wrappers */
.card[tabindex]:focus-visible,
.card a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Tag / chip - for tournament labels, status, categories */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.4);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tag--success {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.5);
}

.tag--danger {
  background: rgba(229, 115, 115, 0.08);
  border-color: rgba(229, 115, 115, 0.5);
}

/* Luxury divider - for footer, szekciók elválasztása */
.divider-lux {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-16) 0;
}

.divider-lux::before,
.divider-lux::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 155, 60, 0.55));
}

.divider-lux::after {
  background: linear-gradient(to left, transparent, rgba(200, 155, 60, 0.55));
}

.divider-lux span {
  font-family: var(--font-serif);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Status dot - for upcoming tournaments, foglalható esték */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.9);
}

.status-dot--warning {
  background-color: var(--color-warning);
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.9);
}

.status-dot--danger {
  background-color: var(--color-danger);
  box-shadow: 0 0 12px rgba(229, 115, 115, 0.9);
}

/* Helper for cinematic overlay on hero/gallery images */
.overlay-gradient-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(5, 4, 4, 0.95), transparent);
  pointer-events: none;
}

/* Smooth page sections for sticky header offset (optional helper) */
.page-anchor {
  scroll-margin-top: 96px;
}
