/* ========================================================================
   City Vibe Lounge Club - Base Styles
   Urban neon / nightlife / glassmorphism foundation
   ======================================================================== */

/* ========================================================================
   1. CSS VARIABLES
   ======================================================================== */
:root {
  /* Colors - brand core */
  --color-bg: #05060b; /* deep night */
  --color-bg-elevated: #0d101a; /* graphite */
  --color-bg-glass: rgba(12, 15, 30, 0.7);

  --color-text: #f9fafb; /* clean white */
  --color-text-muted: #9ca3af; /* soft gray */

  --color-primary: #00f5ff; /* neon teal */
  --color-primary-soft: rgba(0, 245, 255, 0.16);

  --color-accent: #8b5cf6; /* electric purple */
  --color-accent-soft: rgba(139, 92, 246, 0.18);

  --color-pink: #ff4fa3; /* soft neon pink */
  --color-pink-soft: rgba(255, 79, 163, 0.18);

  /* Semantic colors */
  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #f97373;

  /* Neutral grays */
  --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, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --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 (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-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;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  /* Shadows (neon / glassy) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.8);
  --shadow-neon-teal: 0 0 25px rgba(0, 245, 255, 0.4);
  --shadow-neon-purple: 0 0 25px rgba(139, 92, 246, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.25rem;
}

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

/* ========================================================================
   2. 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,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

picture {
  display: block;
}

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

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

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

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================================
   3. BASE STYLES
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Glassy, subtle gradient background for pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 79, 163, 0.1), transparent 60%),
    linear-gradient(135deg, #020617 0%, #020617 40%, #020617 100%);
}

body::after {
  /* subtle film grain over everything */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  mix-blend-mode: soft-light;
}

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

h1 {
  font-size: clamp(2.4rem, 3vw + 1.6rem, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 2vw + 1.2rem, var(--font-size-4xl));
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, var(--font-size-3xl));
  margin-bottom: var(--space-3);
}

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

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

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

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

strong,
b {
  font-weight: 600;
}

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

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

a:hover {
  color: var(--color-pink);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

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

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: var(--space-6) 0;
}

/* ========================================================================
   4. ACCESSIBILITY & FOCUS
   ======================================================================== */
:focus:not(:focus-visible) {
  outline: none;
}

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

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

/* ========================================================================
   5. LAYOUT UTILITIES
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

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

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

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

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

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

/* Grid helpers */
.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);
  }
}

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

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

/* Width utilities */
.w-full {
  width: 100%;
}

/* Margin helpers (common use) */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }

/* ========================================================================
   6. COMPONENTS
   ======================================================================== */

/* 6.1 Buttons - primary CTAs for foglalás / kapcsolat */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-fast),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 245, 255, 0.35), rgba(139, 92, 246, 0.35));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn > span {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, rgba(0, 245, 255, 0.45), transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.4), transparent 55%),
              linear-gradient(135deg, #0ea5e9, #6366f1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #0b1120;
  box-shadow: var(--shadow-soft), var(--shadow-neon-teal);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-strong), var(--shadow-neon-teal), var(--shadow-neon-purple);
}

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

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text);
  backdrop-filter: blur(14px);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.5), var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

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

.btn-lg {
  padding: 0.9rem 1.7rem;
  font-size: var(--font-size-base);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

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

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

/* 6.2 Form controls - inputs & selects for foglalás / kapcsolat */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(0, 245, 255, 0.04), transparent 65%),
              radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.03), transparent 65%),
              rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.7), 0 18px 45px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.textarea {
  min-height: 7rem;
}

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

.field-description {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

/* 6.3 Cards - for program blocks, poker info, események, ajánlások */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.04), rgba(139, 92, 246, 0.02)),
    var(--color-bg-glass);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.card::before {
  /* glossy highlight in top corner */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(255, 79, 163, 0.10), transparent 60%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--accent {
  border-image: linear-gradient(120deg, rgba(0, 245, 255, 0.8), rgba(139, 92, 246, 0.8)) 1;
  box-shadow: var(--shadow-neon-teal), var(--shadow-soft);
}

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

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

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

/* Poker / neon chip-style pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at 0 0, rgba(0, 245, 255, 0.25), transparent 55%),
              radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.25), transparent 55%),
              rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* 6.4 Tag & badge for dress code / status labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text-muted);
}

.badge--success {
  color: var(--color-success);
}

.badge--warning {
  color: var(--color-warning);
}

.badge--danger {
  color: var(--color-danger);
}

/* ========================================================================
   7. SPECIAL VISUAL HELPERS (NEON / NIGHTLIFE)
   ======================================================================== */

/* Neon border for highlight sections (CTAs, poker nights) */
.neon-border {
  position: relative;
  border-radius: var(--radius-lg);
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(0, 245, 255, 0.8),
    rgba(139, 92, 246, 0.9),
    rgba(255, 79, 163, 0.9),
    rgba(0, 245, 255, 0.8)
  );
  opacity: 0.75;
  filter: blur(8px);
  pointer-events: none;
}

.neon-border__inner {
  position: relative;
  border-radius: inherit;
}

/* Overlay gradient for hero / city-night photos */
.image-overlay-gradient {
  position: relative;
  overflow: hidden;
}

.image-overlay-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 40%),
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.3), transparent 60%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.3), transparent 60%);
  mix-blend-mode: soft-light;
}

/* Dimmed, filmic look for gallery thumbnails */
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.thumb img {
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0, rgba(15, 23, 42, 0.5) 75%);
  mix-blend-mode: multiply;
}

.thumb:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

/* ========================================================================
   8. MOTION PREFERENCES
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
