/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #050509; /* deep night */
  --color-surface: #0f1016;
  --color-surface-elevated: #171824;
  --color-text: #f5f5f7;
  --color-text-muted: #a0a3b1;
  --color-primary: #f4c15c; /* modern gold */
  --color-primary-soft: rgba(244, 193, 92, 0.16);
  --color-accent-navy: #101b3f;
  --color-accent-burgundy: #3c0f22;

  --color-success: #41c98b;
  --color-warning: #ffb547;
  --color-danger: #ff4b5c;

  /* Neutral grays (cool, for borders & 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, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --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-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: 2.75rem; /* 44px */

  --line-height-tight: 1.15;
  --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.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.375rem; /* 6px */
  --space-4: 0.5rem;   /* 8px */
  --space-6: 0.75rem;  /* 12px */
  --space-8: 1rem;     /* 16px */
  --space-10: 1.25rem; /* 20px */
  --space-12: 1.5rem;  /* 24px */
  --space-16: 2rem;    /* 32px */
  --space-20: 2.5rem;  /* 40px */
  --space-24: 3rem;    /* 48px */
  --space-28: 3.5rem;  /* 56px */
  --space-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows (subtle glossy / cinematic) */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.75);

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

  /* Layout */
  --layout-max-width: 1200px;
  --layout-max-width-wide: 1360px;
}

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

/* ========================================================================== 
   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[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

textarea {
  resize: vertical;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #121528 0, #050509 50%, #000 100%);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.3rem, 5vw, var(--font-size-5xl));
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, var(--font-size-4xl));
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 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);
}

p {
  margin-top: var(--space-8);
  margin-bottom: 0;
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-medium),
    opacity var(--transition-fast),
    text-shadow var(--transition-medium);
}

a:hover {
  color: #ffe39b;
  text-shadow: 0 0 14px rgba(244, 193, 92, 0.4);
}

a:active {
  opacity: 0.85;
}

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

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

::selection {
  background: rgba(244, 193, 92, 0.3);
  color: var(--color-text);
}

/* ========================================================================== 
   Accessibility & Focus Styles
   ========================================================================== */

:focus {
  outline: none;
}

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

@supports not selector(:focus-visible) {
  :focus {
    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;
}

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

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

/* Layout containers */

.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.container-wide {
  width: 100%;
  max-width: var(--layout-max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.section {
  padding-top: clamp(var(--space-24), 7vw, var(--space-40));
  padding-bottom: clamp(var(--space-24), 7vw, var(--space-40));
}

.section--alt {
  background: radial-gradient(circle at top right, rgba(244, 193, 92, 0.05), transparent 55%),
    radial-gradient(circle at bottom left, rgba(163, 39, 78, 0.25), transparent 55%),
    var(--color-surface);
}

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

.justify-end {
  justify-content: flex-end;
}

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

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

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

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

.gap-xl {
  gap: var(--space-24);
}

/* Grid helpers */

.grid {
  display: grid;
}

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

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

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-16);
}

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

/* Alignment & text */

.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 (common ones) */

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-4); }
.mt-sm { margin-top: var(--space-8); }
.mt-md { margin-top: var(--space-12); }
.mt-lg { margin-top: var(--space-16); }
.mt-xl { margin-top: var(--space-24); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-4); }
.mb-sm { margin-bottom: var(--space-8); }
.mb-md { margin-bottom: var(--space-12); }
.mb-lg { margin-bottom: var(--space-16); }
.mb-xl { margin-bottom: var(--space-24); }

.py-section {
  padding-top: clamp(var(--space-24), 7vw, var(--space-40));
  padding-bottom: clamp(var(--space-24), 7vw, var(--space-40));
}

/* Width helpers */

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

.hidden { display: none !important; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:block { display: block; }
}

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

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-medium),
    border-color var(--transition-medium),
    color var(--transition-fast),
    box-shadow var(--transition-medium),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #fff9e4 0, #f4c15c 40%, #c3891f 100%);
  color: #1c1205;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.85);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: linear-gradient(135deg, rgba(15, 16, 22, 0.98), rgba(23, 24, 36, 0.98));
  color: var(--color-text);
  border-color: rgba(244, 193, 92, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.btn-outline:hover {
  background: linear-gradient(145deg, #171824, #101b3f);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

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

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

.btn-icon {
  border-radius: 999px;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

/* Inputs & form controls */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.field label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 45%),
    rgba(7, 7, 12, 0.98);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-medium),
    box-shadow var(--transition-medium),
    background var(--transition-medium),
    transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(160, 163, 177, 0.7);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(244, 193, 92, 0.65),
    0 18px 40px rgba(0, 0, 0, 0.85);
  outline: none;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

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

/* Cards */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(244, 193, 92, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(163, 39, 78, 0.45), transparent 60%),
    linear-gradient(140deg, #0e0f17, #141522);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 65%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--soft {
  background: linear-gradient(145deg, #0d0e15, #171824);
  box-shadow: var(--shadow-soft);
}

/* Accent pill / label for event tags (e.g. "Wieczór pokerowy", "Event casino") */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 193, 92, 0.6);
  background: rgba(3, 5, 18, 0.9);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero-specific utility (optional, commonly used) */

.hero {
  position: relative;
  padding-top: clamp(5rem, 14vh, 7.5rem);
  padding-bottom: clamp(3.5rem, 12vh, 6rem);
}

.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(244, 193, 92, 0.16), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(24, 93, 207, 0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(163, 39, 78, 0.38), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Tagline / overline used across sections (e.g. "Mobilne eventy", "Rozrywka dla firm") */

.overline {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Badges for highlights like "Entertainment only" notice (no gambling) */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.badge--safe {
  border-color: rgba(65, 201, 139, 0.9);
  color: var(--color-success);
}

/* Media object (for testimonials, event formats etc.) */

.media {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}

.media__figure {
  flex-shrink: 0;
}

.media__body {
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .media {
    align-items: center;
  }
}

/* ========================================================================== 
   Motion Preferences
   ========================================================================== */

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