/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Neon Nightlife */
  --color-bg: #05030a; /* Deep black violet */
  --color-bg-elevated: #0b0615;
  --color-bg-alt: #0f1024;

  --color-text: #f5f5ff;
  --color-text-muted: #a5a3c7;

  --color-primary: #a033ff; /* Neon purple */
  --color-primary-soft: rgba(160, 51, 255, 0.12);

  --color-accent-blue: #1fd3ff; /* Electric blue */
  --color-accent-red: #ff2e63; /* Vivid red */
  --color-accent-silver: #c7ccd9; /* Metallic silver */

  --color-success: #38e58f;
  --color-warning: #ffb347;
  --color-danger: #ff3366;

  /* Neutral grays for subtle UI elements */
  --gray-50: #0b0b11;
  --gray-100: #14141f;
  --gray-200: #1e1f2b;
  --gray-300: #2a2b3a;
  --gray-400: #3a3b4e;
  --gray-500: #4b4c63;
  --gray-600: #6d6e8d;
  --gray-700: #8e8fb0;
  --gray-800: #b5b6d3;
  --gray-900: #e2e3ff;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-display: "Oswald", "Impact", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", 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-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.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: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Neon Shadows & Depth */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.85);
  --shadow-neon-purple: 0 0 18px rgba(160, 51, 255, 0.7);
  --shadow-neon-blue: 0 0 18px rgba(31, 211, 255, 0.7);

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

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

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-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, picture, video {
  height: auto;
}

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

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

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

/* Improve text rendering for neon-on-dark UI */
body, input, button, textarea, select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

/* Headings: bold, modern, nightlife vibe */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

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

h2 {
  font-size: clamp(2rem, 3.5vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

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

h5 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-1);
}

h6 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-1);
}

p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  }

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

strong {
  font-weight: 600;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* Links: subtle until interactive, then neon */
a {
  position: relative;
  transition: color var(--transition-normal),
    text-shadow var(--transition-normal);
}

a:hover {
  color: var(--color-accent-blue);
  text-shadow: 0 0 10px rgba(31, 211, 255, 0.6);
}

a:active {
  color: var(--color-accent-red);
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

/* ========================================================================
   Accessibility & Motion
   ======================================================================== */
:focus {
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !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;
}

/* ========================================================================
   Utilities
   ======================================================================== */
/* Container */
.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);
}

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

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

/* Alignment & spacing utilities */
.text-center {
  text-align: center;
}

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

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.w-full { width: 100%; }

/* Utility for subtle neon border / divider */
.neon-border {
  border: 1px solid rgba(160, 51, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(31, 211, 255, 0.12);
}

/* ========================================================================
   Form Elements
   ======================================================================== */
input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: rgba(10, 6, 24, 0.96);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(12, 10, 32, 0.9);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon-purple);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* ========================================================================
   Components
   ======================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-red));
  color: #05030a;
  box-shadow: var(--shadow-neon-purple);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
}

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

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

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

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(160, 51, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(31, 211, 255, 0.35);
}

.btn--outline:hover {
  background: radial-gradient(circle at top left,
      rgba(160, 51, 255, 0.18),
      rgba(10, 6, 24, 0.98));
}

.btn--ghost {
  background-color: rgba(15, 16, 36, 0.6);
  color: var(--color-text);
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background-color: rgba(15, 16, 36, 0.95);
  box-shadow: 0 0 14px rgba(31, 211, 255, 0.6);
}

/* Cards: used for events, promos, booking highlights */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: radial-gradient(circle at top left,
      rgba(160, 51, 255, 0.16),
      rgba(5, 3, 10, 0.98));
  border: 1px solid rgba(199, 204, 217, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 0,
      rgba(31, 211, 255, 0.23),
      transparent 60%);
  opacity: 0.6;
}

.card > * {
  position: relative;
}

.card--interactive {
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.card--interactive:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 51, 255, 0.6);
  box-shadow: var(--shadow-strong), var(--shadow-neon-purple);
}

/* Simple tag / pill (e.g., "Turniej", "Rezerwacja") */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(199, 204, 217, 0.4);
  background-color: rgba(5, 3, 10, 0.8);
  color: var(--color-accent-silver);
}

.pill--hot {
  border-color: rgba(255, 46, 99, 0.7);
  color: var(--color-accent-red);
}

/* ========================================================================
   Focus-visible utility for JS-managed focus states
   ======================================================================== */
.focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

/* ========================================================================
   Media helpers
   ======================================================================== */
.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
