/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors - Nightlife luxury palette */
  --color-bg: #05060a; /* deep near-black */
  --color-bg-elevated: #0c0f18; /* elevated surfaces */
  --color-bg-soft: #101321;

  --color-text: #f5f5f7;
  --color-text-muted: #a3a6b3;
  --color-border-subtle: #262a3a;

  --color-primary: #f5c451; /* warm gold */
  --color-primary-soft: rgba(245, 196, 81, 0.12);
  --color-primary-strong: #ffd86b;

  --color-accent-burgundy: #7b1237;
  --color-accent-navy: #141b33;

  --color-success: #3ad29f;
  --color-warning: #ffb647;
  --color-danger: #ff4f6b;

  --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: #12141c;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", 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-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: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - subtle glow for nightlife look */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.7);
  --shadow-gold-glow: 0 0 0 1px rgba(245, 196, 81, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.75);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;
}

/* Respect user color scheme if extended later */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

picture {
  display: block;
}

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

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

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

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

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

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

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

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: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

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

a {
  color: var(--color-primary);
  transition: color var(--transition-base);
}

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

strong {
  font-weight: 600;
}

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

/* Focus styles - accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Respect reduced motion */
@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;
  }
}

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

/* Layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1200px;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

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

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

.section__heading {
  margin-bottom: var(--space-6);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.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-2 {
  gap: var(--space-2);
}

.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-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

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

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

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

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

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

/* Spacing utility (commonly reused sizes) */
.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

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

.mb-6 {
  margin-bottom: var(--space-6);
}

.pt-8 {
  padding-top: var(--space-8);
}

.pb-8 {
  padding-bottom: var(--space-8);
}

/* Visually hidden but accessible */
.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 - primary CTA styled for nightlife luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn-primary {
  background: radial-gradient(circle at top left, #ffe09a 0, #f5c451 40%, #c9962a 100%);
  color: #130f05;
  box-shadow: var(--shadow-gold-glow);
}

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

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

.btn-secondary {
  background: linear-gradient(135deg, var(--color-bg-soft), var(--color-accent-navy));
  color: var(--color-text);
  border-color: rgba(245, 196, 81, 0.4);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(245, 196, 81, 0.35);
}

.btn-ghost:hover {
  background: rgba(245, 196, 81, 0.06);
}

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

/* Inputs */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(5, 6, 10, 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 {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.3);
}

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

.input--error,
.textarea--error,
.select--error {
  border-color: var(--color-danger);
}

.input--success,
.textarea--success,
.select--success {
  border-color: var(--color-success);
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

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

/* Cards - used for formats, testimonials, etc. */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(245, 196, 81, 0.04) 0,
        rgba(10, 11, 22, 0.95) 42%,
        rgba(5, 6, 10, 1) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(245, 196, 81, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(123, 18, 55, 0.22), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

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

.card--soft {
  background: linear-gradient(145deg, var(--color-bg-elevated), var(--color-bg-soft));
  border-color: rgba(255, 255, 255, 0.03);
}

/* Media wrapper for images (gallery / hero visuals) */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.media-frame:hover img {
  transform: scale(1.03);
}

/* Badges / chips for formats like "Wieczór pokerowy", "Event casino" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: rgba(10, 11, 22, 0.9);
  color: var(--color-primary-strong);
}

.badge--burgundy {
  border-color: rgba(123, 18, 55, 0.8);
  color: #ffb7cf;
  background: rgba(123, 18, 55, 0.22);
}

.badge--soft {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  background: rgba(15, 16, 27, 0.9);
}

/* Tag list for SEO-focused keywords / highlights */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Navigation baseline (can be extended per page) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
      to bottom,
      rgba(5, 6, 10, 0.9),
      rgba(5, 6, 10, 0.65),
      transparent
    );
  border-bottom: 1px solid rgba(245, 196, 81, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.navbar__link {
  position: relative;
  padding-bottom: 0.15rem;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-burgundy));
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link[aria-current="page"]::after {
  width: 100%;
}

/* Hero base style for homepage */
.hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
  background: radial-gradient(circle at top, rgba(245, 196, 81, 0.07) 0,
        rgba(5, 6, 10, 1) 55%),
    radial-gradient(circle at bottom left, rgba(123, 18, 55, 0.45) 0,
        rgba(5, 6, 10, 1) 55%);
}

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

.hero__title {
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  max-width: 40ch;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

/* Testimonials baseline component */
.testimonial {
  font-size: var(--font-size-sm);
}

.testimonial__quote {
  font-style: italic;
  color: var(--color-text-muted);
}

.testimonial__author {
  margin-top: var(--space-3);
  font-weight: 500;
  color: var(--color-text);
}

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

/* FAQ accordion baseline (structure only; behavior via JS) */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-block: var(--space-4);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
}

.faq-item__answer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Footer baseline */
.site-footer {
  border-top: 1px solid rgba(245, 196, 81, 0.12);
  background: radial-gradient(circle at top, rgba(245, 196, 81, 0.08) 0,
        rgba(5, 6, 10, 1) 50%);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}

.site-footer__meta {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}
