:root {
  /* ======================= */
  /*        VARIABLES        */
  /* ======================= */

  /* Color Palette - Luxurious Casino Theme */
  --color-bg: #07040a;            /* Deep midnight black */
  --color-bg-elevated: #120915;   /* Slightly lighter for sections */
  --color-surface: #1b0f1f;       /* Card & panel background */
  --color-surface-soft: #24122a;  

  --color-text: #f7f3ff;          /* Primary text */
  --color-text-muted: #b8a9c4;    /* Secondary text */
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  --color-primary: #d62839;       /* Vibrant deep red */
  --color-primary-soft: rgba(214, 40, 57, 0.12);
  --color-primary-dark: #9b1c2b;

  --color-accent-gold: #f5c146;   /* Gold accents */
  --color-accent-gold-soft: rgba(245, 193, 70, 0.16);

  --color-success: #37b26c;
  --color-success-soft: rgba(55, 178, 108, 0.14);
  --color-warning: #ffb347;
  --color-warning-soft: rgba(255, 179, 71, 0.16);
  --color-danger: #ff4b5c;
  --color-danger-soft: rgba(255, 75, 92, 0.16);

  /* Neutral Grays (for borders/secondary 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", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 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-snug: 1.3;
  --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 */

  /* Radii */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1.25rem;   /* 20px */
  --radius-full: 999rem;

  /* Shadows - soft, luxurious */
  --shadow-sm: 0 6px 12px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);

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

/* ======================= */
/*          RESET          */
/* ======================= */

*, *::before, *::after {
  box-sizing: border-box;
}

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

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

body {
  min-height: 100vh;
}

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

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

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

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

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

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

/* Remove default link underlines; will re-style in base */
a {
  text-decoration: none;
  color: inherit;
}

/* ======================= */
/*          BASE           */
/* ======================= */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #1b0f1f 0, #07040a 55%, #030108 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: var(--space-2);
}

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

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

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

strong,
b {
  font-weight: 600;
}

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

/* Polish language specific tweaks (if needed later) */
:lang(pl) {
  hyphens: auto;
}

/* Links - elegant accent with subtle glow */
a {
  color: var(--color-accent-gold);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-normal),
    text-shadow var(--transition-normal);
}

a:hover {
  color: #ffe29b;
  text-shadow: 0 0 12px rgba(245, 193, 70, 0.6);
}

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

/* Smooth section spacing */
section {
  padding-block: var(--space-16);
}

/* ======================= */
/*      ACCESSIBILITY      */
/* ======================= */

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

:focus:not(:focus-visible) {
  outline: none;
}

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

@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 */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-6);
  }
}

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

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

/* Simple spacing utilities (only a few to keep base light) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.py-8 {
  padding-block: var(--space-8);
}
.py-16 {
  padding-block: var(--space-16);
}

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

/* ======================= */
/*       COMPONENTS        */
/* ======================= */

/* Buttons - primary casino CTAs */
.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-dark);
  --btn-color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 50%),
    var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(214, 40, 57, 0.4);
  transition: background var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    color var(--transition-normal);
}

.button--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(214, 40, 57, 0.15);
  --btn-color: var(--color-accent-gold);
  border-color: rgba(245, 193, 70, 0.5);
  box-shadow: 0 0 0 1px rgba(245, 193, 70, 0.25);
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 55%),
    var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.button:disabled,
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.button:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Inputs & Form Controls */
.input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(9, 4, 15, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(184, 169, 196, 0.7);
}

.input:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(245, 193, 70, 0.6), 0 18px 36px rgba(0, 0, 0, 0.6);
  background-color: #120915;
}

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

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

/* Cards - event & testimonial blocks */
.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 45%),
    var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 193, 70, 0.15), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card--soft {
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-sm);
}

/* Simple badge for highlights (e.g. "Premium", "VIP") */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 193, 70, 0.55);
  background: radial-gradient(circle at top left, rgba(245, 193, 70, 0.28), transparent 55%),
    rgba(7, 4, 10, 0.85);
  color: #fff7dc;
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Helper for subtle section dividers */
.divider {
  width: 60px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
  margin-block: var(--space-4);
}

/* Hero overlay utility for immersive imagery */
.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(7, 4, 10, 0.95));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-overlay > * {
  position: relative;
}

/* End of base.css */
