/* ==================================================================
   Variables: Luxury Zlatna Casino Theme
   ================================================================== */

:root {
  /* Color Palette */
  --color-bg: #050508; /* deep near-black */
  --color-surface: #0d0d12;
  --color-surface-soft: #15151f;
  --color-text: #f5f1e8; /* ivory */
  --color-text-muted: #c9c3b5;

  --color-primary: #d8b066; /* warm gold */
  --color-primary-soft: rgba(216, 176, 102, 0.14);
  --color-primary-strong: #f2c96b;

  --color-success: #4caf50;
  --color-warning: #ffb300;
  --color-danger: #e53935;

  /* Neutral grays */
  --gray-50: #f8f6f3;
  --gray-100: #e4dfd6;
  --gray-200: #cfc7b8;
  --gray-300: #b5aa97;
  --gray-400: #8f8574;
  --gray-500: #6b6256;
  --gray-600: #4a443b;
  --gray-700: #333029;
  --gray-800: #1f1c17;
  --gray-900: #0f0d0a;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 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 */
  --font-size-6xl: 3.75rem;  /* 60px */

  --line-height-tight: 1.1;
  --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.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-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows (soft cinematic) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.75);
  --shadow-gold-glow: 0 0 0 1px rgba(216, 176, 102, 0.5), 0 0 30px rgba(216, 176, 102, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 72px;
}

@media (min-width: 1024px) {
  :root {
    --font-size-base: 1.0625rem; /* slight upscale */
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.25rem;
  }
}

/* ==================================================================
   Reset / Normalize
   ================================================================== */

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

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

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

body {
  min-height: 100vh;
}

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

picture {
  display: block;
}

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

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

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

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

/* Remove default focus outlines (replaced 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-relaxed);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
.h1 {
  font-family: var(--font-serif);
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

h2,
.h2 {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

h3,
.h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

h4,
.h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: #ffffff;
}

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

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

/* ==================================================================
   Accessibility
   ================================================================== */

: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.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* ==================================================================
   Layout & Utilities
   ================================================================== */

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

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Spacing utilities (margin bottom) */

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }

.pt-header {
  padding-top: var(--header-height);
}

/* Flex helpers */

.flex {
  display: flex;
}

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

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

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

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

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

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

/* Luxury section wrapper utility */
.section-dark {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.08), transparent 55%), var(--color-bg);
}

.section-soft {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  background-color: var(--color-surface);
}

/* Luxury gradient underline for headings */
.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-1);
}

.heading-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ==================================================================
   Components: Buttons, Inputs, Cards, Popup
   ================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 176, 102, 0.65);
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.32), rgba(13, 13, 18, 0.98));
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  color: #121214;
  border-color: transparent;
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-1px);
}

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

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

.btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(216, 176, 102, 0.45);
}

.btn--danger {
  border-color: var(--color-danger);
  background: rgba(229, 57, 53, 0.18);
}

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

/* Form elements */

.input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(10, 10, 15, 0.96);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(201, 195, 181, 0.7);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(216, 176, 102, 0.4);
  outline: none;
}

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

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

/* Card */

.card {
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.06), rgba(13, 13, 18, 0.98));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--soft {
  background: rgba(10, 10, 15, 0.96);
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Age Verification Popup (18+ Potvrda Dobne Granice) */

.age-gate-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.16), rgba(0, 0, 0, 0.94));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-gate-modal {
  width: 100%;
  max-width: 520px;
  margin: 0 var(--space-4);
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.16), rgba(10, 10, 15, 0.98));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(216, 176, 102, 0.5);
  box-shadow: var(--shadow-strong);
  padding: var(--space-6);
  text-align: center;
}

.age-gate-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-4);
}

.age-gate-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .age-gate-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.age-gate-btn-confirm {
  flex: 1 1 auto;
}

.age-gate-btn-exit {
  flex: 1 1 auto;
}

/* Hero Slider Shell (cinematic) */

.hero-slider {
  position: relative;
  min-height: 80vh;
  color: var(--color-text);
  background-color: #000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Navigation Shell */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.96), rgba(5, 5, 8, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .navbar-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
  position: relative;
}

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

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Footer Shell */

.site-footer {
  background: radial-gradient(circle at top, rgba(216, 176, 102, 0.08), #050508);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

/* Utility: subtle divider for sections with casino content */

.casino-accent-border {
  border-left: 2px solid rgba(216, 176, 102, 0.6);
  padding-left: var(--space-4);
}
