/* ==========================================================================   
   Svitora CZ – Base Styles
   Modern, elegant, bright, event-focused casino-style aesthetic
   ========================================================================== */

/* ==========================================================================   
   1) CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Color Palette */
  --color-background: #ffffff;
  --color-surface: #f7f7fa;
  --color-surface-alt: #f0f2f7;

  --color-text: #1b2130;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e2e4ee;

  /* Brand / Accents – gold, navy, silver */
  --color-primary: #1b2a4a; /* deep navy */
  --color-primary-soft: #22345f;
  --color-primary-contrast: #ffffff;

  --color-accent-gold: #d4af37;
  --color-accent-gold-soft: #f2e4b0;
  --color-accent-silver: #c0c6d4;

  /* Semantic */
  --color-success: #198754;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-info: #0ea5e9;

  /* Neutral grays */
  --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, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Sizes (mobile-first) */
  --text-xs: 0.75rem;  /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem;   /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem;  /* 20px */
  --text-2xl: 1.5rem;  /* 24px */
  --text-3xl: 1.875rem;/* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem;    /* 48px */

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows – soft premium look */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-gutter: 1.25rem;
}

/* Larger screens – scale up some typography */
@media (min-width: 768px) {
  :root {
    --text-2xl: 1.75rem; /* 28px */
    --text-3xl: 2.25rem; /* 36px */
    --text-4xl: 2.75rem; /* 44px */
    --text-5xl: 3.5rem;  /* 56px */
  }
}


/* ==========================================================================   
   2) 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,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

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

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

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

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

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}


/* ==========================================================================   
   3) Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings – modern display font */

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

h1 {
  font-size: var(--text-4xl);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

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

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

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

/* Links – subtle underline on hover only */

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

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-silver));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
}


/* ==========================================================================   
   4) Accessibility & Motion
   ========================================================================== */

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

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

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


/* ==========================================================================   
   5) Utilities
   ========================================================================== */

/* Layout – container */

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

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

.section--alt {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(31, 41, 55, 0.04), transparent 60%),
              var(--color-surface);
}

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

.section-kicker {
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-2);
}

/* 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-wrap {
  flex-wrap: wrap;
}

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

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

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

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

/* Spacing utilities (limited set for layout) */

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

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

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

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


/* ==========================================================================   
   6) Components
   ========================================================================== */

/* Buttons – primary, outline, subtle */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-gold), #f5d88c);
  color: #1b1b1b;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background-color: transparent;

  border-color: rgba(212, 175, 55, 0.6);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.06);
}

.btn-subtle {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--color-primary);
}

.btn-subtle:hover {
  background-color: rgba(15, 23, 42, 0.08);
}

.btn-icon {
  padding-inline: 1rem;
}

/* Form controls */

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

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

.field-description {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: 0.25rem;
}

/* Cards – for event blocks, FAQ, references, legal info */

.card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

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

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

.card-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Hero – full-width, slider-friendly base */

.hero {
  position: relative;
  color: var(--color-primary-contrast);
  background-color: var(--color-primary);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.35), transparent 60%);
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.hero-meta {
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-gold-soft);
  margin-bottom: var(--space-3);
}

/* Hero slider controls – neutral base */

.hero-slider-controls {
  position: absolute;
  inset-inline: 0;
  bottom: var(--space-6);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.hero-dot--active {
  background: linear-gradient(135deg, var(--color-accent-gold), #ffffff);
  transform: scale(1.15);
}

/* Badges – for "Zábava bez hazardu", "18+" etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-gold {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-accent-gold);
}

.badge-outline {
  border: 1px solid rgba(192, 198, 212, 0.7);
  color: var(--gray-600);
}

/* Disclaimer / Responsible entertainment block */

.disclaimer {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.disclaimer-strong {
  font-weight: 600;
  color: var(--color-danger);
}

/* Footer – general base styles aligned with brief */

.site-footer {
  background-color: #050816;
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  margin-top: var(--space-12);
}

.site-footer a {
  color: inherit;
}

.site-footer a::after {
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-silver));
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: var(--text-sm);
}

.site-footer-disclaimer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
}

/* FAQ basics */

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-4) var(--space-5);
  background-color: #ffffff;
}

.faq-question {
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: var(--space-2);
}

.faq-answer {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Chips / list style for event highlights */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 23, 42, 0.04);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Gallery base */

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}
