:root {
  /* Color System */
  --color-bg: #050608; /* deep cinematic black */
  --color-bg-elevated: #0b0d12; /* cards / sections */
  --color-bg-soft: #12141b; /* subtle panels */
  --color-surface-glass: rgba(13, 18, 26, 0.85);

  --color-text: #f5f5f5;
  --color-text-muted: #a5a8b3;
  --color-border-subtle: #232632;

  --color-primary: #1ecf7a; /* emerald accent */
  --color-primary-soft: rgba(30, 207, 122, 0.16);
  --color-primary-dark: #11a35b;

  --color-gold: #e7c994; /* champagne gold */
  --color-gold-soft: rgba(231, 201, 148, 0.18);

  --color-success: #24d08a;
  --color-warning: #ffb347;
  --color-danger: #ff4b5c;

  /* Neutral grays for UI */
  --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", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 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.15;
  --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: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* Shadows (cinematic soft glows) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.85);
  --shadow-glow-emerald: 0 0 24px rgba(30, 207, 122, 0.45);
  --shadow-glow-gold: 0 0 22px rgba(231, 201, 148, 0.4);

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

  /* Layout */
  --container-max-width: 1120px;
  --navbar-height: 4.25rem;
}

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

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

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

body,
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;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

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

img {
  height: auto;
}

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

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

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

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

/* Remove default margin from headings & paragraphs for consistent spacing */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-block: 0;
}

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

main {
  min-height: calc(100vh - var(--navbar-height));
}

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

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

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

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

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

strong {
  font-weight: 600;
  color: #ffffff;
}

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

/* Links (subtle neon / premium underline) */
a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width var(--transition-base);
}

a:hover {
  color: var(--color-gold);
}

a:hover::after {
  width: 100%;
}

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

/* 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-col {
  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(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: 1fr;
  }
}

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  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);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary {
  background: linear-gradient(130deg, var(--color-primary), var(--color-gold));
  color: #050608;
  box-shadow: var(--shadow-soft);
}

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

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-glow-emerald);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

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

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

/* Inputs & Form Elements */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: rgba(5, 8, 13, 0.9);
  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: var(--color-text-muted);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(30, 207, 122, 0.4);
}

.field-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.field-help {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
  margin-top: var(--space-1);
}

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

/* Card (glass / casino-style panels) */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01))
    ,var(--color-surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0, rgba(30, 207, 122, 0.2) 50%, transparent 100%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

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

.card--border-gold {
  border-color: rgba(231, 201, 148, 0.6);
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

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

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

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

/* Tag-like pill (for event categories e.g. Poker, Wieczory Tematyczne) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.badge--gold {
  border-color: rgba(231, 201, 148, 0.7);
  color: var(--color-gold);
  background: var(--color-gold-soft);
}

.badge--emerald {
  border-color: rgba(30, 207, 122, 0.7);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Hero overlay utilities for cinematic photography */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(30, 207, 122, 0.22), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(231, 201, 148, 0.16), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6), #000000 95%);
  mix-blend-mode: soft-light;
  z-index: -1;
}

/* Neon / casino accent line for sections */
.accent-line {
  position: relative;
  padding-top: var(--space-3);
}

.accent-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  box-shadow: 0 0 12px rgba(30, 207, 122, 0.65);
}

/* FAQ accordion basic shell (behavior handled in JS) */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-3);
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: 500;
}

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

/* ========================================
   Accessibility & Helpers
   ======================================== */

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

.max-w-wide {
  max-width: 960px;
}

/* Utility for dark sections that sit on darker background */
.section-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(30, 207, 122, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(5, 6, 10, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .section-panel {
    padding: var(--space-4);
  }
}

/* Subtle divider */
.divider {
  height: 1px;
  border: 0;
  margin-block: var(--space-4);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* Table-like layout for event details on Poker / Programy Kasynowe pages */
.info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.info-row-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.info-row-value {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

@media (max-width: 640px) {
  .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ========================================
   Navigation Shell (generic)
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--navbar-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

@media (min-width: 900px) {
  .navbar-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: var(--color-text-muted);
  padding-block: 0.25rem;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width var(--transition-base);
}

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

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

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

/* Mobile nav trigger placeholder */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 8, 0.9);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* ========================================
   Footer Shell (generic)
   ======================================== */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
  background: radial-gradient(circle at 10% -20%, rgba(30, 207, 122, 0.2), transparent 55%),
    #050608;
  font-size: var(--font-size-sm);
}

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

.footer a:hover {
  color: #ffffff;
}

.footer-meta {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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