/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Luxury Casino */
  --color-background: #050609; /* Deep cinematic black */
  --color-surface: #0b0e13;
  --color-surface-elevated: #11151d;
  --color-text: #f5f2e9; /* Ivory */
  --color-text-muted: #b0a89a;
  --color-border-subtle: #262a31;

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

  --color-success: #1f7a4d; /* Emerald green */
  --color-success-soft: rgba(31, 122, 77, 0.15);

  --color-warning: #e3a441; /* Warm gold/amber */
  --color-warning-soft: rgba(227, 164, 65, 0.15);

  --color-danger: #8b1e2d; /* Burgundy red */
  --color-danger-soft: rgba(139, 30, 45, 0.18);

  --color-gray-100: #faf7f0;
  --color-gray-200: #e2ddd2;
  --color-gray-300: #c5bfb0;
  --color-gray-400: #9f9684;
  --color-gray-500: #777069;
  --color-gray-600: #504a46;
  --color-gray-700: #373331;
  --color-gray-800: #211f1e;
  --color-gray-900: #111010;

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

  /* Base font sizing (desktop-first, adjust with media queries) */
  --font-size-root: 16px;

  --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.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows - cinematic, directional */
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.75);
  --shadow-glow-gold: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 0 24px rgba(212, 175, 55, 0.4);

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

/* Adjust font sizing & rhythm for smaller screens */
@media (max-width: 768px) {
  :root {
    --font-size-root: 15px;
  }
}

html {
  font-size: var(--font-size-root);
}

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

* {
  margin: 0;
}

html,
body {
  padding: 0;
}

body {
  min-height: 100vh;
}

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

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

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

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.5rem;
}

blockquote,
figure {
  margin: 0;
}

/* Remove default focus outlines; will re-add with :focus-visible */
:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

/* Respect reduced motion preference */
@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;
  }
}

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

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.75rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
}

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

h3 {
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  margin-bottom: var(--space-3);
}

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

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

strong {
  font-weight: 600;
}

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

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

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

/* Subtle editorial underline for inline links */
a[href]:not(.btn, .button, .nav-link) {
  text-decoration: none;
}

a[href]:not(.btn, .button, .nav-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0));
  opacity: 0;
  transform: scaleX(0.8);
  transform-origin: center;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

a[href]:not(.btn, .button, .nav-link):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

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

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

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

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

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

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

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

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

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

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

.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: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-0 { padding-top: 0; }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

.hidden {
  display: none !important;
}

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

/* Hero-specific utility for full-screen immersive sections */
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  color: var(--color-text);
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(212, 175, 55, 0.25), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.9) 80%);
  pointer-events: none;
}

.hero-fullscreen > * {
  position: relative;
  z-index: 1;
}

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

/* Buttons - primary CTA, secondary, ghost */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, #f6e7b3, #d4af37);
  color: #111010 !important;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-normal),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

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

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

.btn--outline {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--color-text) !important;
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.btn--ghost {
  background: rgba(5, 6, 9, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-text) !important;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(17, 21, 29, 0.9);
  border-color: rgba(212, 175, 55, 0.6);
}

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

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

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

/* Inputs & form controls */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(5, 6, 9, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-gray-500);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
  background: rgba(5, 6, 9, 1);
}

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

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

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

/* Card - for VIP, game zones, events, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), rgba(5, 6, 9, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.card--surface {
  background: linear-gradient(145deg, #0b0e13, #151a22);
}

.card--outlined {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-1);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

/* Image frame - for gallery & panoramic shots */
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 40%);
  pointer-events: none;
}

/* Tag / Pill - e.g. for "VIP", "Élő zene" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(5, 6, 9, 0.85);
}

.tag--success {
  border-color: rgba(31, 122, 77, 0.7);
  background: var(--color-success-soft);
}

.tag--danger {
  border-color: rgba(139, 30, 45, 0.7);
  background: var(--color-danger-soft);
}

/* FAQ accordion base styles (structure only, behavior via JS) */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-4) 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--font-size-md);
}

.faq-answer {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ========================================================================
   Accessibility & Focus States
   ======================================================================== */

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

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

/* High contrast for forced colors (Windows high contrast mode) */
@media (forced-colors: active) {
  :root {
    --color-background: Canvas;
    --color-text: CanvasText;
  }

  body {
    background: var(--color-background);
    color: var(--color-text);
  }

  .btn,
  .button,
  .input,
  select,
  textarea,
  .card {
    border: 1px solid ButtonText;
  }
}

/* ========================================================================
   Editorial Accents (headings, section labels)
   ======================================================================== */

.section-label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  max-width: 40rem;
  color: var(--color-text-muted);
}

/* Light vertical divider for timeline / storytelling */
.storyline {
  position: relative;
  padding-left: var(--space-6);
}

.storyline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.55));
}

.storyline-step {
  position: relative;
  padding-bottom: var(--space-6);
}

.storyline-step::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.9);
  background: #050609;
}

/* ========================================================================
   End of base.css
   ======================================================================== */
