/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors */
  --color-background: #0b0b0d; /* deep cinematic backdrop */
  --color-surface: #151518; /* elevated surfaces */
  --color-surface-soft: #1d1d21;
  --color-text: #f5f1e9; /* ivory white */
  --color-text-muted: #b3aca0;
  --color-primary: #85651c; /* antique gold */
  --color-primary-soft: rgba(182, 139, 42, 0.14);
  --color-accent-burgundy: #6f1c2f; /* rich burgundy */
  --color-accent-forest: #123526; /* deep forest green */
  --color-espresso: #3a2b22; /* espresso brown */
  --color-graphite: #222327; /* graphite black */
  --color-border-subtle: rgba(245, 241, 233, 0.08);

  --color-success: #46b58b;
  --color-warning: #f0b24b;
  --color-danger: #e85b4a;

  --gray-50: #f6f4f0;
  --gray-100: #e4ded2;
  --gray-200: #cfc7b6;
  --gray-300: #b3aa97;
  --gray-400: #98907f;
  --gray-500: #7a7466;
  --gray-600: #5f594d;
  --gray-700: #454136;
  --gray-800: #2f2b23;
  --gray-900: #1c1914;

  /* 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.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */
  --font-size-4xl: 3.25rem;  /* 52px - hero */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* 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: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (subtle, cinematic) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 22px 60px rgba(0, 0, 0, 0.55);
  --shadow-border-glow: 0 0 0 1px rgba(182, 139, 42, 0.35);

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

  /* Layout */
  --layout-max-width: 1200px;
  --layout-max-width-wide: 1440px;
}

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

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

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

body {
  margin: 0;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

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

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::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-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
}

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: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 2vw + 1rem, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

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

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

h6 {
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-1);
  color: var(--color-text-muted);
}

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

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

/* Cinematic underline variant (for nav, key links) */
.a-underline-gold {
  text-decoration: none;
}

.a-underline-gold::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 139, 42, 0), rgba(182, 139, 42, 0.9));
  transition: width var(--transition-slow);
}

.a-underline-gold:hover::after {
  width: 100%;
}

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

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

/* ==================================================================
   Accessibility
   ================================================================== */

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

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

/* Remove noisy default focus */
:focus {
  outline: none;
}

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

/* Layout container for narrow storytelling pages */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Wider container for immersive galleries / hero */
.container-wide {
  width: 100%;
  max-width: var(--layout-max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Section rhythm for alternating restaurant / poker / events blocks */
.section {
  padding: var(--space-16) 0;
}

.section--tight {
  padding: var(--space-10) 0;
}

.section--divider {
  border-top: 1px solid var(--color-border-subtle);
}

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

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

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

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

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

/* Grid helpers for alternating image/story blocks */
.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: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Width helpers for hero copy vs imagery */
.w-50 {
  width: 50%;
}

.w-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .w-50 {
    width: 100%;
  }
}

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

/* Spacing utilities (only a curated subset) */
.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); }
.mt-10 { margin-top: var(--space-10); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.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; }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

/* Elevated background treatments for contrasts between restaurant / poker zones */
.bg-surface {
  background-color: var(--color-surface);
}

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

.bg-espresso {
  background: radial-gradient(circle at top, rgba(245, 241, 233, 0.08), transparent 55%), var(--color-espresso);
}

.bg-forest {
  background: radial-gradient(circle at center, rgba(182, 139, 42, 0.18), transparent 60%), var(--color-accent-forest);
}

.bg-burgundy {
  background: radial-gradient(circle at top, rgba(245, 241, 233, 0.08), transparent 50%), var(--color-accent-burgundy);
}

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

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

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

/* Subtle all-caps label (for VIP, Klub, Foglalás tags) */
.label-caps {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

/* Buttons: for booking journey, VIP club ctas, event inquiries */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: #d4a53b;
  --btn-color: #0b0b0d;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background-color: var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

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

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

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(182, 139, 42, 0.14);
  --btn-color: var(--color-text);
  --btn-border: rgba(182, 139, 42, 0.7);
}

.btn--ghost {
  --btn-bg: rgba(12, 12, 12, 0.4);
  --btn-bg-hover: rgba(12, 12, 12, 0.7);
  --btn-color: var(--color-text);
  --btn-border: rgba(245, 241, 233, 0.18);
  backdrop-filter: blur(18px);
}

.btn--danger {
  --btn-bg: var(--color-danger);
  --btn-bg-hover: #ff6b5b;
  --btn-color: #0b0b0d;
}

/* Icon spacing */
.btn svg,
.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* Inputs: booking forms, membership applications, contact */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 8, 10, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-md);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(179, 172, 160, 0.6);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(182, 139, 42, 0.7);
  background-color: rgba(8, 8, 10, 0.95);
}

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

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  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);
}

/* Cards: for VIP club, guest stories, event journal entries */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(245, 241, 233, 0.06), transparent 55%), var(--color-surface);
  border: 1px solid rgba(245, 241, 233, 0.06);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(182, 139, 42, 0.16), transparent 60%);
  opacity: 0.7;
}

.card > * {
  position: relative;
}

.card--subtle {
  background: rgba(12, 12, 13, 0.82);
  box-shadow: none;
}

.card--divider {
  border-top: 1px solid var(--color-border-subtle);
}

/* Hero overlay card for centered minimalist hero */
.hero-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 241, 233, 0.18);
  background: radial-gradient(circle at top, rgba(245, 241, 233, 0.09), transparent 65%), rgba(10, 9, 9, 0.85);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-elevated);
}

/* Tag / pill: for "Privát pókerklub", "Degusztációs menü", etc. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 241, 233, 0.16);
  background: rgba(8, 8, 9, 0.9);
  color: var(--color-text-muted);
}

.badge--gold {
  border-color: rgba(182, 139, 42, 0.75);
  color: var(--color-primary);
}

.badge--burgundy {
  border-color: rgba(111, 28, 47, 0.7);
  color: var(--color-accent-burgundy);
}

/* Media: immersive photo frames for poker tables, dishes, interiors */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(245, 241, 233, 0.1);
  box-shadow: var(--shadow-elevated);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 45%);
  opacity: 1;
  transition: opacity var(--transition-normal);
}

.photo-frame:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.02);
}

.photo-frame:hover::after {
  opacity: 0.8;
}

/* Timeline base for event journal / history of the restaurant */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(182, 139, 42, 0.4), rgba(182, 139, 42, 0));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #f5f1e9 0, var(--color-primary) 45%, rgba(11, 11, 13, 0) 70%);
}

/* Minimal table styling for poker game info / membership tiers */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.table th {
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.table tbody tr:hover {
  background-color: rgba(245, 241, 233, 0.02);
}

/* Simple chips/stack style for subtle poker visual cues */
.chip-stack {
  display: inline-flex;
  align-items: center;
}

.chip-stack span {
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  margin-right: 2px;
}

.chip-stack span:nth-child(1) { background: var(--color-accent-burgundy); }
.chip-stack span:nth-child(2) { background: var(--color-accent-forest); }
.chip-stack span:nth-child(3) { background: var(--color-primary); }

/* ==================================================================
   Hero & Global Layout Helpers (for luxury cinematic feel)
   ================================================================== */

.hero-fullscreen {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.hero-fullscreen::before {
  /* top vignette for cinematic look */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(245, 241, 233, 0.12), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 30%, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-8) var(--space-4);
}

/* Sticky booking bar (for elegant booking journey) */
.booking-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(245, 241, 233, 0.16);
  background: linear-gradient(to top, rgba(11, 11, 13, 0.96), rgba(11, 11, 13, 0.86));
  backdrop-filter: blur(24px);
}

.booking-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .booking-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
