/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors */
  --color-bg: #05060a; /* deep cinematic dark */
  --color-bg-alt: #0b0c12;
  --color-surface: #111320;
  --color-surface-alt: #181a28;
  --color-text: #f5f5f7;
  --color-text-muted: #b3b7c4;
  --color-primary: #f5c54b; /* elegant gold */
  --color-primary-soft: rgba(245, 197, 75, 0.18);
  --color-primary-strong: #ffd666;
  --color-accent-navy: #111c3d;
  --color-accent-burgundy: #5a1430;
  --color-success: #25b179;
  --color-warning: #ffb648;
  --color-danger: #ff4b5c;

  --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", "Roboto", "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Montserrat", sans-serif;

  --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 (px-based, exposed as rem for consistency) */
  --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 */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows - tuned for dark, nightlife aesthetic */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 0 1px rgba(245, 197, 75, 0.3), 0 0 25px rgba(245, 197, 75, 0.45);

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

  /* Layout */
  --layout-max-width: 1120px;
  --layout-max-width-wide: 1280px;
}

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

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

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

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

body {
  margin: 0;
}

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

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

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

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

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

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

/* Make sure body fills full viewport height */
body,
html {
  min-height: 100%;
}

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  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);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

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

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

h2 {
  font-size: clamp(1.8rem, 2.2vw + 1.2rem, 2.5rem);
  margin-bottom: var(--space-3);
}

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

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

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

strong {
  font-weight: 600;
}

code,
 pre {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Links - subtle but premium */
a {
  position: relative;
  transition: color var(--transition-base);
}

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

/* subtle underline on focus/hover - accent for nightlife aesthetic */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-burgundy));
  transition: width var(--transition-base);
}

a:hover::after,
 a:focus-visible::after {
  width: 100%;
}

/* Lists */
ul,
 ol {
  padding-left: 1.2rem;
}

/* Sections */
section {
  padding-block: var(--space-10);
}

@media (min-width: 768px) {
  section {
    padding-block: var(--space-16);
  }
}

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

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

.container-wide {
  width: 100%;
  max-width: var(--layout-max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section-header {
  margin-bottom: var(--space-6);
}

.section-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(1.8rem, 2.2vw + 1.2rem, 2.4rem);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  max-width: 40rem;
  color: var(--color-text-muted);
}

/* Flex utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

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

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

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

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

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

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

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

/* Spacing utilities (most-used for layout) */
.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; }

.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.px-4 { padding-inline: var(--space-4) !important; }
.py-4 { padding-block: var(--space-4) !important; }

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

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

/* Buttons - primary nightlife CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
  padding-block: 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, rgba(245, 197, 75, 0.35), transparent 55%),
              linear-gradient(135deg, #f5c54b, #f59e0b);
  color: #130f02;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

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

.btn-secondary {
  background: linear-gradient(135deg, #111827, #020617);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(245, 197, 75, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--color-primary);
}

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

.btn-lg {
  padding-block: 0.95rem;
  padding-inline: 1.9rem;
  font-size: var(--font-size-md);
}

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

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

/* Inputs & form controls */
.input,
 textarea,
 select {
  width: 100%;
  padding-inline: 0.9rem;
  padding-block: 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  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);
}

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

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

textarea {
  min-height: 130px;
  resize: vertical;
}

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

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

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

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

/* Cards - for event formats, testimonials, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: radial-gradient(circle at top left, rgba(245, 197, 75, 0.06), transparent 60%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card--accent-casino {
  background:
    radial-gradient(circle at top left, rgba(245, 197, 75, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(90, 20, 48, 0.32), transparent 65%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
}

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

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

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

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

/* Hero overlay / nightlife gradient utility for key sections */
.bg-nightlife {
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 197, 75, 0.16), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 255, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(90, 20, 48, 0.4), transparent 55%),
    linear-gradient(145deg, #020617, #020617 45%, #020617 80%);
}

.overlay-gradient-bottom {
  position: relative;
}

.overlay-gradient-bottom::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

/* Tag / label chips for event formats */
.tag {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.7rem;
  padding-block: 0.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-muted);
}

.tag--casino {
  background: rgba(5, 6, 10, 0.95);
  border-color: rgba(245, 197, 75, 0.6);
  color: var(--color-primary-strong);
}

.tag--success {
  border-color: rgba(37, 177, 121, 0.7);
  color: var(--color-success);
}

/* Badges for statuses like "Polska", "Offline" etc. */
.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.5rem;
  padding-block: 0.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
}

.badge--offline {
  border: 1px solid rgba(37, 177, 121, 0.8);
  color: var(--color-success);
}

/* ==================================================================
   Media & Imagery
   ================================================================== */

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-border {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.img-glow-gold {
  box-shadow: 0 0 35px rgba(245, 197, 75, 0.35);
}

/* Aspect ratio helper for gallery & hero visuals */
.aspect-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.aspect-video > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==================================================================
   Animations (motion-safe)
   ================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in-up 480ms var(--transition-base) forwards;
  }

  @keyframes fade-in-up {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hover-float {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  }

  .hover-float:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
  }
}

/* ==================================================================
   Helper classes specific to this site
   ================================================================== */

/* Dark gradient band for sections like "mobilne eventy", "wieczór pokerowy" */
.section-band {
  background: linear-gradient(135deg, #020617, #020617 60%, #020617 80%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Trust indicators / logos strip */
.trust-strip {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  padding: var(--space-4);
}

/* FAQ accordion basics (structure only; behavior via JS) */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  padding: var(--space-4);
}

.faq-question {
  font-size: var(--font-size-md);
  font-weight: 500;
  cursor: pointer;
}

.faq-answer {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Testimonials basic styling */
.testimonial-quote {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.testimonial-author {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Contact highlight strip */
.contact-highlight {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background:
    radial-gradient(circle at top left, rgba(245, 197, 75, 0.18), transparent 55%),
    linear-gradient(135deg, #020617, #020617 65%, #020617);
  border: 1px solid rgba(245, 197, 75, 0.45);
  box-shadow: var(--shadow-glow-gold);
}

/* Navigation skeleton styling (no layout decisions) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.site-nav-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-block: 0.9rem;
  color: var(--gray-200);
}

.site-nav-link--active {
  color: var(--color-primary-strong);
}

.site-nav-link--active::after {
  width: 100%;
}

/* Footer basics */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  padding-block: var(--space-8);
}

.site-footer small {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}
