/* =========================================
   Variables
   ========================================= */
:root {
  /* Color Palette - Nightlife Premium */
  --color-bg-body: #050509;
  --color-bg-elevated: #0e0b16;
  --color-bg-soft: #151122;

  --color-text-main: #f7f5ff;
  --color-text-muted: #b0a9c4;
  --color-text-soft: #8a829e;

  --color-primary: #f5c146; /* gold */
  --color-primary-soft: rgba(245, 193, 70, 0.16);
  --color-primary-strong: #ffda6b;

  --color-accent-navy: #101b3a;
  --color-accent-burgundy: #4a1022;
  --color-accent-emerald: #00c58a;

  --color-success: #28c76f;
  --color-warning: #ff9f43;
  --color-danger: #ea5455;

  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(245, 193, 70, 0.7);

  --color-overlay-soft: rgba(0, 0, 0, 0.5);
  --color-overlay-strong: rgba(0, 0, 0, 0.88);

  /* Neutral Grays (for UI elements) */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --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.25;
  --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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows (cinematic / glow) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.75);
  --shadow-glow-gold: 0 0 0 1px rgba(245, 193, 70, 0.35),
    0 0 25px rgba(245, 193, 70, 0.22);
  --shadow-inner-soft: inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --header-height: 72px;
}

/* =========================================
   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[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

img {
  height: auto;
}

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

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

a {
  color: inherit;
}

/* Remove default padding from lists inside nav */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

main {
  min-height: calc(100vh - var(--header-height));
}

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

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

h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: var(--space-3);
}

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

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

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

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(245, 193, 70, 0.45);
}

a:active {
  opacity: 0.8;
}

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

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

/* Layout: Container */
.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);
}

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

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

.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) */
.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-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-8 { padding-top: var(--space-8) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-muted { color: var(--color-text-muted) !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;
}

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

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

.btn--primary {
  background: radial-gradient(circle at 20% 0%, #fff1b8 0, var(--color-primary) 38%, #e2ac32 70%, #b37a12 100%);
  color: #120b02;
  box-shadow: var(--shadow-glow-gold);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(245, 193, 70, 0.45);
}

.btn--outline {
  background: rgba(5, 5, 9, 0.7);
  border-color: rgba(245, 193, 70, 0.7);
  color: var(--color-primary-strong);
  box-shadow: var(--shadow-inner-soft);
}

.btn--outline:hover {
  background: linear-gradient(135deg, rgba(16, 27, 58, 0.9), rgba(74, 16, 34, 0.9));
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-text-main);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

/* Input Fields */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(6, 6, 14, 0.92);
  color: var(--color-text-main);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  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: var(--color-text-soft);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 1px rgba(245, 193, 70, 0.6), 0 0 0 12px rgba(245, 193, 70, 0.08);
  background-color: rgba(10, 10, 22, 0.98);
}

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

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

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

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

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

/* Cards (for event formats, testimonials, etc.) */
.card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(245, 193, 70, 0.08), rgba(5, 5, 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: radial-gradient(circle at 0% 0%, rgba(245, 193, 70, 0.18) 0, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 197, 138, 0.12) 0, transparent 50%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

.card--soft {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

/* Tag / Pill (for labels like "mobilne eventy", "wieczór pokerowy") */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 193, 70, 0.55);
  background: rgba(5, 5, 9, 0.85);
  color: var(--color-primary-strong);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero-like overlay (used for sections with background images) */
.surface--overlay {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at 10% 0%, rgba(245, 193, 70, 0.15), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(0, 197, 138, 0.18), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(74, 16, 34, 0.8), rgba(5, 5, 9, 1));
}

.surface--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.surface--overlay > * {
  position: relative;
  z-index: 1;
}

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

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

/* Remove default outline on non-keyboard focus in supporting browsers */
:focus:not(:focus-visible) {
  outline: none;
}

/* Accessible skip link */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: #000;
  color: var(--color-text-main);
  font-size: var(--font-size-sm);
  transform: translateY(-150%);
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0;
  z-index: 1000;
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================
   Motion Preferences
   ========================================= */

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

/* =========================================
   Responsive Helpers
   ========================================= */

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

  h1 {
    font-size: clamp(2.1rem, 7vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.7rem, 5.5vw, 2.1rem);
  }
}

/* =========================================
   Navigation Shell (minimal base for header/footer)
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-height);
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.96), rgba(5, 5, 9, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header__inner {
  height: 100%;
}

.nav-list a {
  font-size: var(--font-size-sm);
  text-transform: uppercase;

  color: var(--color-text-soft);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary-strong);
}

.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top, rgba(245, 193, 70, 0.08), transparent 65%),
    #050509;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.site-footer a:hover {
  color: var(--color-primary-strong);
}
