/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - Luxurious, Cinematic */
  --color-background: #060608;           /* near-black, cinematic base */
  --color-surface: #101118;             /* elevated surfaces */
  --color-surface-soft: #181924;        /* softer contrast surfaces */

  --color-text: #f4f3f0;                /* pearl white */
  --color-text-muted: #b0acaa;          /* muted copy */
  --color-border-subtle: #2a2b38;

  --color-primary: #c9a15e;             /* antique gold */
  --color-primary-soft: rgba(201, 161, 94, 0.16);

  --color-accent-emerald: #0b6b53;      /* deep emerald */
  --color-accent-burgundy: #5b162c;     /* velvet burgundy */

  --color-success: #4bbf81;
  --color-warning: #f2b950;
  --color-danger: #e2564a;

  --gray-50: #f7f7f7;
  --gray-100: #e5e5e5;
  --gray-200: #d4d4d4;
  --gray-300: #a3a3a3;
  --gray-400: #737373;
  --gray-500: #525252;
  --gray-600: #404040;
  --gray-700: #262626;
  --gray-800: #171717;
  --gray-900: #0a0a0a;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif; /* for editorial headings */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (desktop-first, refined for editorial look) */
  --font-size-xxs: 0.75rem;   /* 12px */
  --font-size-xs: 0.8125rem;  /* 13px */
  --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: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3.25rem;   /* 52px - for hero */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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: 16px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft edge */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-outline: 0 0 0 1px rgba(201, 161, 94, 0.24),
                    0 0 0 4px rgba(201, 161, 94, 0.3);

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

  /* Layout */
  --container-max-width: 1120px;
  --container-gutter: 1.5rem;
}

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2.15rem;
    --font-size-5xl: 2.6rem;
  }
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

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

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

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

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Remove default button styles but keep accessibility */
button {
  background: none;
  border: none;
  padding: 0;
}

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

main {
  display: block;
}

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

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

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

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

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

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

h6 {
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

strong, b {
  font-weight: 600;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.16em;
  transition: color var(--transition-normal),
              text-decoration-color var(--transition-normal),
              opacity var(--transition-fast);
}

a:hover {
  color: #e2c07b;
}

a:active {
  opacity: 0.85;
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}

/* =========================================================
   Accessibility & Motion
   ========================================================= */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: calc(var(--container-max-width) + var(--container-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

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

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

.section--full-bleed {
  padding-left: 0;
  padding-right: 0;
}

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

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

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

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

@media (max-width: 960px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

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

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

/* Spacing utilities (margin/padding) - limited core set */
.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; }

/* Aspect ratio helper for cinematic images */
.aspect-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

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

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

/* Buttons - luxurious, gold accent */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 161, 94, 0.5);
  background: linear-gradient(135deg, #c9a15e, #9b753b);
  color: #120f0a !important;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-normal),
              background var(--transition-normal),
              border-color var(--transition-normal),
              opacity var(--transition-fast);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.55);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  background: linear-gradient(135deg, #e2c07b, #b88644);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-text) !important;
  border-color: rgba(201, 161, 94, 0.65);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(201, 161, 94, 0.1);
  box-shadow: var(--shadow-subtle);
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text) !important;
}

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

/* Inputs */
.input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(12, 12, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(201, 161, 94, 0.9);
  box-shadow: 0 0 0 1px rgba(201, 161, 94, 0.7);
}

.input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Cards - for event formats, venues, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(201, 161, 94, 0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(11, 107, 83, 0.18), transparent 55%),
              var(--color-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

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

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

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

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

/* Cinematic media wrapper */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--color-surface-soft);
}

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

/* Tag / pill - for categories like "Poker", "Casino", etc. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--font-size-xxs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.pill--gold {
  border-color: rgba(201, 161, 94, 0.6);
  color: var(--color-primary);
}

/* Simple badge for status (e.g., "Nowy", "Limitowane miejsca") */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--color-accent-burgundy);
  color: #fcebed;
}

.badge--success {
  background: var(--color-accent-emerald);
  color: #e7fff7;
}

.badge--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero typography helpers for editorial Polish headings */
.hero-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.hero-kicker {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  color: var(--color-text-muted);
  max-width: 40rem;
}

/* Simple timeline base for preparation / event journeys */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201, 161, 94, 0.8), transparent);
}

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

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: 0.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, #c9a15e);
  box-shadow: 0 0 0 6px rgba(201, 161, 94, 0.18);
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  margin-bottom: 0.25rem;
}

.timeline__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
