/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors */
  --color-background: #f9fafc;
  --color-surface: #ffffff;
  --color-surface-elevated: #080c14;
  --color-text: #10121a;
  --color-text-muted: #666b7a;
  --color-text-on-dark: #f7f8fc;
  --color-border-subtle: rgba(15, 23, 42, 0.08);

  /* Brand / Accent (royal blue, gold, black accents) */
  --color-primary: #1b3b8f;          /* Royal blue */
  --color-primary-soft: rgba(27, 59, 143, 0.12);
  --color-primary-strong: #102452;
  --color-accent-gold: #cfa152;      /* Luxury gold */
  --color-accent-gold-soft: rgba(207, 161, 82, 0.16);
  --color-accent-black: #05060a;     /* Night / cinematic */

  /* Semantic */
  --color-success: #1ea672;
  --color-success-soft: rgba(30, 166, 114, 0.16);
  --color-warning: #f7b500;
  --color-warning-soft: rgba(247, 181, 0, 0.18);
  --color-danger: #d64545;
  --color-danger-soft: rgba(214, 69, 69, 0.18);

  /* Neutral grays (nightlife-friendly) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font sizes (rem) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* 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-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows (cinematic, soft) */
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 18px 60px rgba(0, 0, 0, 0.38);
  --shadow-gold-glow: 0 0 0 1px rgba(207, 161, 82, 0.2),
    0 18px 50px rgba(3, 7, 18, 0.75);

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

  /* Layout */
  --container-width: 1200px;
  --container-gutter: 16px;

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

  /* Focus */
  --focus-ring-color: rgba(207, 161, 82, 0.9);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

@media (min-width: 768px) {
  :root {
    --container-gutter: 24px;
  }
}

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

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

body {
  margin: 0;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

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

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

/* Remove default focus styles to use focus-visible later */
:focus {
  outline: none;
}

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: var(--leading-tight);
  color: var(--color-accent-black);
  text-transform: none;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }
  h2 {
    font-size: var(--text-4xl);
  }
  h3 {
    font-size: var(--text-3xl);
  }
}

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

p.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--text-xs);
}

a {
  position: relative;
  cursor: pointer;
  transition: color var(--transition-normal),
    opacity var(--transition-fast),
    text-decoration-color var(--transition-normal);
}

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

a.link-underline {
  text-decoration: underline;
  text-decoration-color: rgba(27, 59, 143, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a.link-underline:hover {
  text-decoration-color: var(--color-primary);
}

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

/* ==================================================================
   Accessibility & Motion
   ================================================================== */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

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

/* Screen-reader only utility */
.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;
}

/* ==================================================================
   Layout & Utilities
   ================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

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

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

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

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

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

/* Spacing utilities (selective, for layout tweaks) */
.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); }

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

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

.bg-dark {
  background-color: var(--color-accent-black);
  color: var(--color-text-on-dark);
}

.bg-primary-soft {
  background: radial-gradient(circle at top, rgba(27, 59, 143, 0.16), transparent),
    #05060a;
}

/* Hero / cinematic helpers */
.hero-full {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-text-on-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5, 6, 10, 0.9),
    rgba(5, 6, 10, 0.78) 40%,
    rgba(5, 6, 10, 0.4) 70%,
    rgba(5, 6, 10, 0.85)
  );
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(5, 6, 10, 0.7);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(207, 161, 82, 0.6);
}

.badge-light {
  background: var(--color-accent-gold-soft);
  color: var(--color-accent-black);
}

/* Elevated neon edge for nightlife labels */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* ==================================================================
   Forms & Inputs
   ================================================================== */
label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  color: var(--color-text);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(207, 161, 82, 0.55);
}

input[disabled],
select[disabled],
textarea[disabled] {
  cursor: not-allowed;
  background-color: var(--gray-100);
  color: var(--gray-400);
}

/* ==================================================================
   Buttons
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    border-color var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-gold), #f3cf88);
  color: #120b02;
  box-shadow: var(--shadow-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(15, 23, 42, 0.16);
}

.btn-outline:hover {
  border-color: var(--color-accent-gold);
  background-color: rgba(207, 161, 82, 0.05);
}

.btn-ghost-dark {
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text-on-dark);
  border-color: rgba(148, 163, 184, 0.55);
}

.btn-ghost-dark:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 14px 28px;
}

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

.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 3px;
}

/* ==================================================================
   Cards & Surfaces
   ================================================================== */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  overflow: hidden;
}

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

.card-title {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

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

.card-night {
  background: radial-gradient(circle at top, rgba(27, 59, 143, 0.18), transparent),
    #05060a;
  color: var(--color-text-on-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
}

.card-night::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(207, 161, 82, 0.28), transparent 40%);
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

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

/* Event tag row in cards */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
}

/* ==================================================================
   Navigation & Header Helpers
   ================================================================== */
.navbar-blur {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(5, 6, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-on-dark);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0, #f6e4b6, #cfa152 35%, #5b3b0f 70%, #05060a);
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.9);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--text-sm);
}

.nav-link {
  position: relative;
  color: rgba(249, 250, 252, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-primary));
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: #ffffff;
}

/* Mobile nav toggle placeholder */
.nav-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text-on-dark);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* ==================================================================
   Footer Helpers
   ================================================================== */
.footer {
  background: #05060a;
  color: rgba(249, 250, 252, 0.85);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-sm);
}

.footer-link {
  color: rgba(209, 213, 219, 0.9);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-notice {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(156, 163, 175, 0.95);
  max-width: 56rem;
}

/* ==================================================================
   Badges for Event Types (póker estek, koncertek, stb.)
   ================================================================== */
.badge-poker {
  background: rgba(27, 59, 143, 0.16);
  color: var(--color-primary-strong);
  border-color: rgba(27, 59, 143, 0.5);
}

.badge-concert {
  background: rgba(99, 102, 241, 0.16);
  color: #312e81;
  border-color: rgba(129, 140, 248, 0.6);
}

.badge-standup {
  background: rgba(244, 114, 182, 0.18);
  color: #831843;
  border-color: rgba(244, 114, 182, 0.7);
}

.badge-dj {
  background: rgba(56, 189, 248, 0.16);
  color: #0f172a;
  border-color: rgba(56, 189, 248, 0.7);
}

.badge-vip {
  background: rgba(207, 161, 82, 0.3);
  color: #120b02;
  border-color: rgba(248, 250, 252, 0.7);
}

/* ==================================================================
   Misc Utilities
   ================================================================== */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Subtle divider line used between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(15, 23, 42, 0.16),
      transparent);
  margin: var(--space-10) 0;
}
