/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color palette - luxurious nightlife */
  --color-bg: #05060b; /* deep night */
  --color-bg-elevated: #0b0d16;
  --color-bg-soft: #151826;

  --color-text: #f7f5ff;
  --color-text-muted: #a2a4b8;
  --color-text-soft: #c9cbe0;

  --color-primary: #f2c94c; /* warm gold */
  --color-primary-soft: rgba(242, 201, 76, 0.18);
  --color-primary-dark: #b38b1f;

  --color-accent-burgundy: #7a1430;
  --color-accent-navy: #121a3a;

  --color-success: #3dd68c;
  --color-warning: #ffb347;
  --color-danger: #ff4b6a;

  /* Neutral grays (for borders, subtle 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, overlays */
  --color-border-subtle: rgba(148, 163, 184, 0.2);
  --color-border-strong: rgba(148, 163, 184, 0.35);
  --color-overlay: rgba(2, 6, 23, 0.75);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, 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: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* 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;  /* 4px */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-full: 999px;

  /* Shadows - glossy nightlife depth */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 25px rgba(242, 201, 76, 0.42);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: 1.5rem;
}

@media (min-width: 1024px) {
  :root {
    --container-padding-x: 2rem;
  }
}


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

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

body {
  margin: 0;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

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

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

img {
  height: auto;
}

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

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

input,
button,
textarea,
select {
  font-family: inherit;
}

textarea {
  resize: vertical;
}

/* Remove list styles by default. Re-enable as needed. */
ul[role="list"],
ol[role="list"],
ul,
ol {
  list-style: none;
}

/* Smooth fonts on dark background */
body, input, textarea, button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   Base
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

main {
  display: block;
}

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

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

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

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

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

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

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

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
  h3 { font-size: var(--font-size-3xl); }
}

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

p:first-child {
  margin-top: 0;
}

strong {
  font-weight: 600;
}

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

a {
  cursor: pointer;
  transition: color var(--transition-base),
              opacity var(--transition-base),
              text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 16px rgba(242, 201, 76, 0.55);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

::selection {
  background-color: rgba(242, 201, 76, 0.28);
  color: var(--color-text);
}


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

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

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


/* =========================================================
   Utilities
   ========================================================= */
.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-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    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-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); }
.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));
  }
}

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Visibility: screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* Z-index helpers for layered hero / overlays */
.z-base { z-index: 1; }
.z-overlay { z-index: 10; }
.z-max { z-index: 999; }


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

/* Buttons - premium CTA style (e.g. "Zarezerwuj wieczór pokerowy") */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: #08070c;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--btn-border);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: radial-gradient(circle at 10% 0, rgba(255,255,255,0.28), transparent 55%),
              var(--btn-bg);
  color: var(--btn-color);
  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),
    opacity var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong), var(--shadow-glow-gold);
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.38), transparent 60%),
              linear-gradient(135deg, #ffe197, var(--color-primary-dark));
}

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

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: rgba(148, 163, 184, 0.5);

  background: radial-gradient(circle at 0 0, rgba(242, 201, 76, 0.08), transparent 65%),
              rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  --btn-border: var(--color-primary);
}

.btn--danger {
  --btn-bg: linear-gradient(135deg, #ff4b6a, #7a1430);
  --btn-color: #ffffff;
}


/* Inputs - forms & booking section */
.input,
textarea.input,
select.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

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

.input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.4), 0 18px 50px rgba(0, 0, 0, 0.65);
  background-color: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

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

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .form-row--inline {
    flex-direction: row;
  }
}


/* Card - used for event formats, casino attractions, testimonials */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(242, 201, 76, 0.10), transparent 55%),
    radial-gradient(circle at bottom right, rgba(122, 20, 48, 0.25), transparent 60%),
    var(--color-bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.1), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.card--soft {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

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

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

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


/* Hero overlay helpers (for dark, cinematic first screen) */
.hero {
  position: relative;
  color: var(--color-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.45) 0, transparent 60%),
              radial-gradient(circle at bottom, rgba(0,0,0,0.85) 0, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}


/* Tag / pill (e.g. "wieczór pokerowy", "ruletka eventowa", "blackjack na event") */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
}

.badge--gold {
  background: rgba(242, 201, 76, 0.12);
  border-color: rgba(242, 201, 76, 0.7);
  color: var(--color-primary);
}

.badge--burgundy {
  background: rgba(122, 20, 48, 0.35);
  border-color: rgba(255, 75, 106, 0.6);
  color: #ffdde5;
}


/* Media frame - for gallery & casino table shots */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-strong);
  background-color: #000;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow),
              opacity var(--transition-slow);
}

.media-frame:hover img {
  transform: scale(1.06);
  opacity: 0.96;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.12), transparent 45%, rgba(0, 0, 0, 0.7));
  mix-blend-mode: soft-light;
  pointer-events: none;
}


/* Toast / status (success for confirmed booking, etc.) */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--success {
  border-color: rgba(61, 214, 140, 0.7);
}

.alert--danger {
  border-color: rgba(255, 75, 106, 0.7);
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}


/* Navigation skeleton helpers (no layout opinions) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 11, 0.95), rgba(5, 6, 11, 0.78));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-base),
              background-color var(--transition-base),
              text-shadow var(--transition-base);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
  background-color: rgba(15, 23, 42, 0.85);
  text-shadow: 0 0 14px rgba(242, 201, 76, 0.6);
}


/* Footer skeleton */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, rgba(122, 20, 48, 0.25), transparent 55%),
              #020617;
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
}

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

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


/* Helper: subtle section divider for long pages (FAQ, testimonials) */
.section-border-top {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.section-border-bottom {
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
