/* =========================================
   Variables
   ========================================= */
:root {
  /* Colors - Luxurious nightlife palette */
  --color-background: #05060a;
  --color-background-elevated: #0b0d14;
  --color-background-soft: #101320;

  --color-text: #f5f5f7;
  --color-text-muted: #a0a3b5;

  --color-primary: #f0b947; /* gold */
  --color-primary-soft: rgba(240, 185, 71, 0.12);
  --color-primary-dark: #c89835;

  --color-success: #24c68a;
  --color-warning: #ffc561;
  --color-danger: #ff4560;

  --color-surface-border: rgba(255, 255, 255, 0.08);

  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5f5;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --gray-900: #020617;

  --accent-navy: #0d1730;
  --accent-burgundy: #3b0b1d;
  --accent-emerald: #0b3b2a;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", 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-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: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - subtle cinematic glow */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.65);
  --shadow-gold-glow: 0 0 0 1px rgba(240, 185, 71, 0.26), 0 0 30px rgba(240, 185, 71, 0.35);

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

  /* Layout */
  --container-max-width: 1200px;
  --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;
  padding: 0;
  margin: 0;
}

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

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

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

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

/* Remove default focus outlines (we re-add for focus-visible) */
:focus {
  outline: none;
}

/* =========================================
   Base Styles
   ========================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: radial-gradient(circle at top, #141827 0, #05060a 55%, #000000 100%);
  background-color: #05060a;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

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

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

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

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

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

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

strong {
  font-weight: 600;
}

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

::selection {
  background-color: rgba(240, 185, 71, 0.22);
  color: #ffffff;
}

/* Polish-language emphasis (useful for SEO copy blocks) */
.emphasis-pl {
  font-weight: 600;
  color: var(--color-primary);
}

/* =========================================
   Accessibility & Motion
   ========================================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

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

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

.section--hero {
  padding-block: var(--space-16);
}

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

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

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

/* Spacing utilities (common) */
.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-8 { padding-top: var(--space-8) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }

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

.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* =========================================
   Components - Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.6rem;
  padding-block: 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  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);
  will-change: transform, box-shadow;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #fff3cf 0, #f0b947 18%, #c89835 40%, #7f5a1a 100%);
  color: #1a1205;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-glow);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.btn-outline {
  background: linear-gradient(135deg, rgba(240, 185, 71, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(240, 185, 71, 0.5);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(240, 185, 71, 0.24), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px rgba(240, 185, 71, 0.4);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

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

.btn-sm {
  padding-block: 0.55rem;
  padding-inline: 1.2rem;
  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:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid rgba(240, 185, 71, 0.6);
  outline-offset: 3px;
}

/* =========================================
   Components - Form Inputs
   ========================================= */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.field-label {
  font-size: var(--font-size-sm);
  color: var(--gray-100);
}

.field-helper {
  font-size: var(--font-size-xs);
  color: var(--gray-300);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding-inline: var(--space-3);
  padding-block: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: rgba(15, 23, 42, 0.96);
  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);
}

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

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(240, 185, 71, 0.7);
  box-shadow: 0 0 0 1px rgba(240, 185, 71, 0.4);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(255, 69, 96, 0.8);
}

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

/* =========================================
   Components - Cards & Surfaces
   ========================================= */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(240, 185, 71, 0.12), rgba(10, 15, 30, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 55%);
  opacity: 0.75;
}

.card--soft {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 10, 20, 0.98));
}

.card--outlined {
  background: rgba(15, 23, 42, 0.92);
  border-style: dashed;
}

.card-header {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-3);
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Accent badges for event formats (e.g., wieczór pokerowy, ruletka eventowa) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.6rem;
  padding-block: 0.22rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--gray-100);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.9));
}

.badge--gold {
  border-color: rgba(240, 185, 71, 0.8);
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(240, 185, 71, 0.18), rgba(15, 23, 42, 0.9));
}

.badge--casino {
  border-color: rgba(180, 83, 9, 0.9);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), rgba(127, 29, 29, 0.88));
}

/* Image wrapper for gallery / event photos */
.media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background-color: #000;
}

.media-frame img,
.media-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 35%);
  pointer-events: none;
}

/* =========================================
   Components - Hero & Navigation Helpers
   (structure only, to be refined in page CSS)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.navbar-menu {
  display: none;
}

@media (min-width: 900px) {
  .navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
}

.nav-link {
  position: relative;
  padding-block: 0.15rem;
  color: var(--gray-200);
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0b947, #ff6b6b);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Hero text helpers (for bold Polish headlines) */
.hero-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.hero-kicker {
  font-size: var(--font-size-lg);
  color: var(--gray-100);
  max-width: 30rem;
}

/* CTA area */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* =========================================
   Status & Feedback
   ========================================= */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
}

.alert-success {
  border-color: rgba(36, 198, 138, 0.6);
  background: rgba(6, 78, 59, 0.5);
  color: #bbf7d0;
}

.alert-danger {
  border-color: rgba(255, 69, 96, 0.6);
  background: rgba(127, 29, 29, 0.65);
  color: #fecaca;
}

/* =========================================
   SEO-Oriented Keyword Utility Classes
   (for subtle highlighting within copy)
   ========================================= */
.keyword-eventy,
.keyword-wieczor-pokerowy,
.keyword-ruletka-eventowa,
.keyword-blackjack-event,
.keyword-imprezy-tematyczne,
.keyword-organizacja-eventow,
.keyword-rozrywka-dla-firm,
.keyword-event-casino {
  font-weight: 600;
  color: var(--color-primary);
}

/* =========================================
   Helper: Overlay gradient for nightlife visuals
   ========================================= */
.overlay-gradient {
  position: relative;
}

.overlay-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(240, 185, 71, 0.18), transparent 45%),
              radial-gradient(circle at bottom, rgba(148, 27, 45, 0.4), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

/* =========================================
   End of base.css
   ========================================= */
