/* =========================================
   Variables
   ========================================= */
:root {
  /* Colors */
  --color-background: #050608; /* Deep black */
  --color-background-alt: #0b0d10; /* Charcoal */
  --color-surface: #14171c; /* Graphite card */
  --color-surface-soft: #20252d;
  --color-text: #f7f7f7; /* Main text */
  --color-text-muted: #a0a6b2;
  --color-primary: #a4ff14; /* Neon / lime accent */
  --color-primary-soft: rgba(164, 255, 20, 0.12);
  --color-primary-strong: #c5ff4d;
  --color-success: #45d483;
  --color-warning: #ffb733;
  --color-danger: #ff4b6b;
  --color-cream: #f5f0e7; /* Soft highlight */
  --color-cream-soft: #f8f3ea;
  --color-border-subtle: #252a33;
  --color-border-strong: #3b424f;

  /* Neutral grays for text, borders, UI */
  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5f5;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 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.1;
  --line-height-snug: 1.2;
  --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-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.375rem;     /* 6px */
  --radius-md: 0.75rem;      /* 12px */
  --radius-lg: 1.25rem;      /* 20px - for cards */
  --radius-xl: 1.75rem;      /* 28px */
  --radius-pill: 999px;      /* Full pill */

  /* Shadows (neon + soft) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-elevated: 0 24px 70px rgba(0, 0, 0, 0.75);
  --shadow-neon: 0 0 25px rgba(164, 255, 20, 0.65);

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

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

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

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

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

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

/* Remove default link styles reset will handle further in base */
a {
  color: inherit;
}

/* =========================================
   Base Styles
   ========================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #121826 0, #050608 60%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

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

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

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

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

strong {
  font-weight: 600;
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 10px rgba(164, 255, 20, 0.8);
}

a:active {
  opacity: 0.85;
}

/* Code & pre (for FAQ or details) */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #0a0c10;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* =========================================
   Accessibility & Focus
   ========================================= */
:focus {
  outline: none;
}

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

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

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

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Flex utilities */
.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-column {
  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);
}

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

/* Spacing utilities (margin / padding blocks) */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

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

.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-8); }
.mt-xl { margin-top: var(--space-12); }

.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-8); }
.mb-xl { margin-bottom: var(--space-12); }

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

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

/* Background helpers */
.bg-surface {
  background: radial-gradient(circle at top left, #20252d 0, #14171c 40%, #050608 90%);
}

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

.bg-overlay-lime {
  position: relative;
}

.bg-overlay-lime::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(164, 255, 20, 0.15) 0, transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(164, 255, 20, 0.1) 0, transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0, var(--color-primary-strong) 40%, #ffffff 170%);
  color: #050608 !important;
  box-shadow: var(--shadow-neon);
}

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

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 40px rgba(164, 255, 20, 0.85);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(164, 255, 20, 0.6);
}

.btn-outline:hover {
  background: rgba(164, 255, 20, 0.08);
  box-shadow: 0 0 22px rgba(164, 255, 20, 0.45);
}

.btn-ghost {
  background: rgba(20, 23, 28, 0.85);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(32, 37, 45, 0.95);
}

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

/* Form fields */
.input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(10, 12, 16, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  caret-color: var(--color-primary);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal),
    transform var(--transition-fast);
}

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(164, 255, 20, 0.75), 0 0 30px rgba(164, 255, 20, 0.4);
  background-color: #050608;
}

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

label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

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

.input-error {
  border-color: var(--color-danger);
}

.input-help {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Card component (for atmosphere / poker / events / FAQ blocks) */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(164, 255, 20, 0.06) 0, transparent 60%),
              linear-gradient(145deg, rgba(13, 17, 23, 0.96), rgba(5, 6, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(164, 255, 20, 0.12) 0, transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(164, 255, 20, 0.55);
}

.card:hover::before {
  opacity: 1;
  transform: translateY(-6%);
}

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

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

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

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-300);
  margin-bottom: var(--space-2);
}

/* Hero specific helpers for Moorvessa (cinematic, floating cards) */
.hero {
  position: relative;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  color: var(--color-text);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(0.45) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(164, 255, 20, 0.35) 0, transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(164, 255, 20, 0.18) 0, transparent 60%),
              linear-gradient(to bottom, rgba(5, 6, 8, 0.75), #050608 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-floating-card {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 900px) {
  .hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .hero-floating-card {
    max-width: 100%;
    margin-top: var(--space-6);
  }
}

/* Tag / pill (for categories like "Offline Poker", "Privát események") */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(164, 255, 20, 0.35);
  background: rgba(164, 255, 20, 0.08);
  color: var(--color-primary-strong);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FAQ basic style helper */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 16, 0.9);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.faq-question {
  font-weight: 550;
  font-size: var(--font-size-base);
}

.faq-answer {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Chips for days / times (e.g., poker evenings) */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 23, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.chip-strong {
  background: rgba(164, 255, 20, 0.12);
  border-color: rgba(164, 255, 20, 0.5);
  color: var(--color-primary-strong);
}

/* Toast / small notification (for reservation confirmations) */
.toast {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 40;
  min-width: 260px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(10, 12, 16, 0.98);
  border: 1px solid rgba(164, 255, 20, 0.65);
  color: var(--color-text);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(164, 255, 20, 0.45);
}

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

/* Table for menu or schedule */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table tbody tr:nth-child(odd) {
  background: rgba(9, 11, 15, 0.95);
}

.table tbody tr:nth-child(even) {
  background: rgba(13, 16, 21, 0.95);
}

.table tbody tr:hover {
  background: rgba(164, 255, 20, 0.08);
}

.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Badges for status (e.g., "foglalható", "betelt") */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-success {
  background: rgba(69, 212, 131, 0.15);
  color: var(--color-success);
}

.badge-warning {
  background: rgba(255, 183, 51, 0.14);
  color: var(--color-warning);
}

.badge-danger {
  background: rgba(255, 75, 107, 0.15);
  color: var(--color-danger);
}

/* Footer basics */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background: #050608;
}

.footer-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Utility: max-width text block for long Hungarian copy */
.text-limit {
  max-width: 640px;
}

/* Utility: dim section overlay to keep neon focus on content */
.section-dim {
  position: relative;
}

.section-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(0, 0, 0, 0.55) 0, transparent 60%),
              radial-gradient(circle at 90% 100%, rgba(0, 0, 0, 0.6) 0, transparent 65%);
  pointer-events: none;
}

.section-dim > * {
  position: relative;
  z-index: 1;
}

p,
a,
li,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.35;
}