/* =============================================
   Variables
   ============================================= */
:root {
  /* Color Palette */
  --color-bg: #04050a; /* deep midnight */
  --color-bg-alt: #050816;
  --color-surface: #0b1020;
  --color-surface-elevated: #10172b;

  --color-text: #f9f6f0; /* champagne ivory */
  --color-text-muted: #a3a8c2;
  --color-text-soft: #d1d5e5;

  --color-primary: #d4af37; /* metallic gold */
  --color-primary-soft: rgba(212, 175, 55, 0.12);
  --color-primary-strong: #f2c94c;

  --color-accent: #b91c1c; /* deep crimson */
  --color-accent-soft: rgba(185, 28, 28, 0.18);

  --color-info: #3b82f6; /* royal navy accent */
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  /* Neutral Grays / Blues */
  --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, "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */

  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.75;

  /* 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: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft glows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.7);
  --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 0 35px rgba(212, 175, 55, 0.35);
  --shadow-neon-crimson: 0 0 0 1px rgba(248, 113, 113, 0.2), 0 0 40px rgba(248, 113, 113, 0.5);

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

  /* Layout */
  --container-width: 1120px;
  --container-wide-width: 1320px;
  --container-padding-x: var(--space-4);

  /* Z-index scale */
  --z-base: 1;
  --z-header: 50;
  --z-overlay: 100;
  --z-modal: 1000;
}

@media (min-width: 768px) {
  :root {
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --container-padding-x: var(--space-6);
  }
}

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

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

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

body {
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* Remove default link styling */
a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   Base Styles
   ============================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: radial-gradient(circle at 0% 0%, #111827 0, #020617 42%, #02010a 100%);
}

main {
  min-height: 100vh;
}

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

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

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

h1 {
  font-size: clamp(2.4rem, 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, var(--text-4xl));
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, var(--text-3xl));
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

strong,
b {
  font-weight: 600;
}

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

a {
  position: relative;
  transition: color var(--transition-base);
}

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

/* Subtle underline for inline links */
a.inline-link {
  padding-bottom: 2px;
}

a.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

a.inline-link:hover::after {
  transform: scaleX(1);
}

hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  margin: var(--space-6) 0;
}

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

: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;
  }
}

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

/* Layout: Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.container--wide {
  max-width: var(--container-wide-width);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.grid-2 {
  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 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

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

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

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

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

/* Spacing utilities (commonly used ones) */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

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

/* Cinematic overlays */
.vignette {
  position: relative;
}

.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0, transparent 48%, rgba(0, 0, 0, 0.7) 100%);
}

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

/* Buttons */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #050816;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.16), transparent 55%), var(--btn-bg);
  color: var(--btn-color) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn:hover {
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.22), transparent 60%), var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-glow);
}

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

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

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(15, 23, 42, 0.9);
  --btn-color: var(--color-text);
  --btn-border: rgba(212, 175, 55, 0.6);
  background: transparent;
  box-shadow: none;
}

.btn--outline:hover {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6);
}

.btn--ghost {
  --btn-bg: rgba(15, 23, 42, 0.75);
  --btn-bg-hover: rgba(15, 23, 42, 1);
  --btn-color: var(--color-text);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: none;
}

.btn--danger {
  --btn-bg: var(--color-danger);
  --btn-bg-hover: #f97373;
  --btn-color: #0b0b0f;
}

/* Inputs */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-fast);
}

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
  background: rgba(15, 23, 42, 0.98);
}

.input--invalid {
  border-color: var(--color-danger);
}

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

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

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

/* Cards - for event formats, casino nights, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.04), transparent 50%), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(212, 175, 55, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card--nightlife {
  background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.16), transparent 55%), radial-gradient(circle at 90% 100%, rgba(248, 113, 113, 0.14), transparent 55%), linear-gradient(145deg, #020617, #020617);
  border-color: rgba(59, 130, 246, 0.35);
}

.card--nightlife:hover {
  box-shadow: var(--shadow-neon-crimson);
}

.card--corporate {
  background: linear-gradient(145deg, #020617, #020617);
  border-color: rgba(148, 163, 184, 0.45);
}

.card--warm {
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.06), transparent 60%), linear-gradient(135deg, #111827, #020617);
  border-color: rgba(250, 204, 171, 0.4);
}

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

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Media Frame - immersive photography */
.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-strong);
  background: #020617;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition:
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.12), transparent 55%), radial-gradient(circle at 100% 100%, rgba(220, 38, 38, 0.32), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
}

.media-frame:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

/* Tag Pills for categories like "Wieczór kasynowy" */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tag-pill--gold {
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--color-primary-strong);
}

.tag-pill--crimson {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

/* Timeline (for storytelling from concept to execution) */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), rgba(148, 163, 184, 0.4));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-4);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__bullet {
  position: absolute;
  left: -0.1rem;
  top: 0.25rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #fefce8, #facc15);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45), 0 0 25px rgba(212, 175, 55, 0.9);
}

.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: 0.15rem;
}

.timeline__step {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

/* Hero Overlay helpers for fullscreen sections */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 7, 23, 0.92), rgba(15, 23, 42, 0.7), rgba(0, 0, 0, 0.95));
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
}

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