/* =============================================
   Variables
   ============================================= */
:root {
  /* Color Palette - Nightlife Inspired */
  --color-bg: #05060a; /* deep almost-black */
  --color-bg-elevated: #0c0f17; /* for cards/sections */
  --color-bg-soft: #141823;

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

  --color-primary: #e2b857; /* elegant gold for CTAs */
  --color-primary-soft: rgba(226, 184, 87, 0.16);
  --color-primary-strong: #f4cd63;

  --color-accent-navy: #12243b;
  --color-accent-burgundy: #4a1124;

  --color-success: #27c46d;
  --color-warning: #ffb547;
  --color-danger: #ff4d5a;

  /* Neutral Grays (for subtle borders & text) */
  --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;

  /* Borders / Dividers */
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.42);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", 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-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px - body for desktop */
  --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.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft glow */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.8);
  --shadow-gold-glow: 0 0 0 1px rgba(226, 184, 87, 0.32), 0 0 32px rgba(226, 184, 87, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 380ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 20px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }

  *, *::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 {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

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

body {
  min-height: 100vh;
}

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

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 {
  text-decoration: none;
  color: inherit;
}

/* Remove default focus outlines, we'll restore with :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);
  color: var(--color-text);
  background: radial-gradient(circle at top, #161623 0, #05060a 52%, #000000 100%);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body {
    font-size: var(--font-size-lg);
  }
}

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

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

h2 {
  font-size: clamp(1.9rem, 3.4vw, var(--font-size-4xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

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

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

strong {
  font-weight: 600;
  color: var(--color-text);
}

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

/* Links - premium accent style */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

a:active {
  opacity: 0.8;
}

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

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

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

@media (min-width: 960px) {
  .section-padding {
    padding-top: var(--space-16);
    padding-bottom: 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-xs {
  gap: var(--space-2);
}

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

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

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

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

.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: 767px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

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

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

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

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-10); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-10); }

/* =============================================
   Components
   ============================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast), opacity var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #fff3c2 0, #e2b857 32%, #b98a28 100%);
  color: #14110b;
  box-shadow: var(--shadow-soft);
}

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

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

.btn-outline {
  background: transparent;
  border-color: rgba(226, 184, 87, 0.7);
  color: var(--color-primary-strong);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(226, 184, 87, 0.08);
}

.btn-ghost {
  background: rgba(10, 11, 18, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: var(--font-size-xs);
}

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

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

/* Inputs & form controls */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 8, 15, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.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(226, 184, 87, 0.65);
}

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

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

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

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

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

/* Card - for event formats, testimonials, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(24, 18, 34, 0.96));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top right, rgba(226, 184, 87, 0.12), transparent 60%);
  opacity: 0.75;
  pointer-events: none;
}

.card > * {
  position: relative;
}

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

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

/* Highlight strip for poker / casino tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), rgba(15, 23, 42, 0.85));
  color: var(--color-text-muted);
}

.badge-gold {
  border-color: rgba(226, 184, 87, 0.9);
  background: linear-gradient(90deg, rgba(243, 212, 129, 0.25), rgba(15, 23, 42, 0.95));
  color: var(--color-primary-strong);
}

/* Image wrappers - for gallery / hero visuals */
.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at 10% 0, #1f2933, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-strong);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(226, 184, 87, 0.2), transparent 50%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Section divider with subtle top border */
.section-divider {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Hero-specific utility (for multi-page use) */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-14);
}

@media (min-width: 960px) {
  .hero {
    padding-top: var(--space-20);
    padding-bottom: var(--space-16);
  }
}

.hero-kicker {
  font-size: var(--font-size-xs);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  max-width: 32rem;
}

/* Tags for SEO keywords (mobilne eventy, wieczór pokerowy etc.) */
.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Toast / notification (e.g., info: "rozrywka, nie hazard") */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(135deg, rgba(24, 24, 35, 0.95), rgba(10, 10, 16, 0.98));
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.notice--info {
  border-color: rgba(94, 234, 212, 0.6);
}

.notice--warning {
  border-color: rgba(250, 204, 21, 0.8);
}

/* Footer base */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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