/* ========================================================================== 
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-background: #050516; /* deep nightlife backdrop for sections */
  --color-surface: #ffffff;
  --color-surface-elevated: #0b0b21;
  --color-text: #0f1124;
  --color-text-muted: #7b80a6;
  --color-primary: #2f6bff; /* electric blue */
  --color-primary-soft: rgba(47, 107, 255, 0.12);
  --color-primary-strong: #1a46c5;
  --color-accent-purple: #9b5eff;
  --color-accent-pink: #ff3b8d;
  --color-accent-gold: #ffce4b;

  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #ef4444;

  --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: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", 
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", 
    "Segoe UI", Roboto, 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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px converted to rem assuming 16px root) */
  --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-xs: 0.125rem; /* 2px */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-pill: 999px;

  /* Shadows (nightlife, glowy) */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 30px rgba(5, 5, 22, 0.6);
  --shadow-lg: 0 20px 45px rgba(5, 5, 22, 0.75);
  --shadow-glow-blue: 0 0 25px rgba(47, 107, 255, 0.7);
  --shadow-glow-pink: 0 0 25px rgba(255, 59, 141, 0.7);

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

  /* Layout */
  --container-max-width: 1200px;
}

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

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

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

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

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;
  padding: 0;
  margin: 0;
}

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

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

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

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

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

/* ========================================================================== 
   Base
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: #f5f6ff; /* subtle cool background for overall site */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #06071a;
}

h1 {
  font-size: clamp(2.2rem, 4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.8rem, 3vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  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-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

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

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

a {
  color: var(--color-primary);
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-accent-pink);
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}

/* ========================================================================== 
   Accessibility & Focus
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  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;
}

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

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

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

.section--dark {
  background: radial-gradient(circle at top left, rgba(47, 107, 255, 0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 59, 141, 0.18), transparent 55%),
              var(--color-background);
  color: #f9fafb;
}

.section--alt {
  background-color: #ffffff;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 17, 36, 0.82);
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
}

.badge--offline {
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-pink));
  color: #111827;
}

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

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

.btn-primary {
  color: #f9fafb;
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(47, 107, 255, 0.55);
  background-image: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(155, 94, 255, 0.08));
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow-blue);
}

.btn-ghost {
  background-color: rgba(15, 17, 36, 0.75);
  color: #f9fafb;
  border-color: rgba(249, 250, 251, 0.12);
}

.btn-ghost:hover {
  background-color: rgba(15, 17, 36, 0.95);
  box-shadow: var(--shadow-sm);
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Inputs & forms */
.form-group {
  margin-bottom: var(--space-4);
}

.label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.25);
}

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

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

.form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 17, 36, 0.04);
  position: relative;
  overflow: hidden;
}

.card--night {
  background: radial-gradient(circle at top, rgba(47, 107, 255, 0.18), transparent 55%),
              radial-gradient(circle at bottom, rgba(255, 59, 141, 0.18), transparent 55%),
              var(--color-surface-elevated);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #f9fafb;
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  margin-bottom: 0.3rem;
}

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

.card-footer {
  margin-top: var(--space-4);
}

/* Hero section helpers (for large visual hero + slider) */
.hero {
  position: relative;
  color: #f9fafb;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--color-background);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5, 5, 22, 0.9) 0%, rgba(5, 5, 22, 0.55) 40%, rgba(5, 5, 22, 0.9) 100%),
    radial-gradient(circle at top left, rgba(47, 107, 255, 0.5), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255, 59, 141, 0.45), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.hero-kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
  color: #fff;
}

.hero-subtitle {
  max-width: 32rem;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(249, 250, 251, 0.78);
  margin-bottom: var(--space-5);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: rgba(209, 213, 219, 0.9);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta-label {
  opacity: 0.7;
}

.hero-meta-value {
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Event tags (koncertek, stand-up estek, DJ partyk, póker estek, stb.) */
.event-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-tag--concert {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.event-tag--standup {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.event-tag--dj {
  border-color: rgba(147, 51, 234, 0.7);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.event-tag--poker {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Offline-only notice block (for legal clarity on offline események) */
.notice-offline {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 179, 8, 0.4);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.96));
  color: #fefce8;
  font-size: var(--font-size-sm);
}

.notice-offline strong {
  color: #facc15;
}

/* Footer disclaimer text */
.footer-disclaimer {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

/* Calendar / schedule helper */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.calendar-legend-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
}

.calendar-legend-dot--concert { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.calendar-legend-dot--standup { background: linear-gradient(135deg, #f97316, #eab308); }
.calendar-legend-dot--dj { background: linear-gradient(135deg, #a855f7, #ec4899); }
.calendar-legend-dot--poker { background: linear-gradient(135deg, #22c55e, #16a34a); }
.calendar-legend-dot--other { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* Chips for event categories (koncertek, stand-up, DJ partyk, póker estek, stb.) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--gray-800);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.chip--active {
  border-color: transparent;
  color: #f9fafb;
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
}

/* Tagline / section-intro */
.section-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

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

.section-description {
  max-width: 36rem;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

/* Simple tag for SEO keywords highlight (koncert programok, póker estek, stb.) */
.keyword-highlight {
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.14), rgba(255, 59, 141, 0.14));
  border-radius: var(--radius-xs);
  padding: 0.1rem 0.25rem;
}
