/* ======================================================================
   Ceska Vibe – Base Styles
   Modern, cheerful, spacious, premium & welcoming
   ====================================================================== */

/* ======================================================================
   1. CSS Variables (Design Tokens)
   ====================================================================== */
:root {
  /* Color Palette */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fafb;

  --color-text: #111827; /* dark slate */
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;

  --color-primary: #fbbf24; /* warm cheerful yellow */
  --color-primary-soft: #fef3c7;
  --color-primary-strong: #f59e0b;

  --color-accent-blue: #38bdf8; /* sky blue */
  --color-accent-green: #4ade80; /* light green */
  --color-accent-coral: #fb7185; /* soft coral */

  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  --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",
    "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-display: "Poppins", "SF Pro Display", system-ui, -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

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

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  /* Spacing Scale (px converted to rem assuming 16px base) */
  --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: 0.375rem; /* 6px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1.5rem;   /* 24px, softer cards/sections */
  --radius-full: 999px;

  /* Shadows – soft & premium */
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

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

  /* Layout */
  --container-max: 1120px;
  --header-height: 4.25rem;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

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

body {
  margin: 0;
}

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

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

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

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

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

/* Remove default link styles to apply custom base styles later */
a {
  text-decoration: none;
  color: inherit;
}

/* ======================================================================
   3. Base Styles
   ====================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Typography */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

h1,
.h1 {
  font-size: clamp(2.4rem, 5vw, var(--fs-5xl));
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

h2,
.h2 {
  font-size: clamp(2rem, 3.8vw, var(--fs-4xl));
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
}

h3,
.h3 {
  font-size: clamp(1.6rem, 3vw, var(--fs-3xl));
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
}

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

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

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

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

strong {
  font-weight: 600;
}

/* Links – cheerful accent hover */
a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-base),
    opacity var(--transition-fast),
    text-decoration-color var(--transition-base);
}

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

a:active {
  opacity: 0.8;
}

/* Lists */
ul,
ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-3);
}

/* ======================================================================
   4. Accessibility & Focus Styles
   ====================================================================== */
:focus {
  outline: none;
}

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

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

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

/* ======================================================================
   5. Layout Utilities
   ====================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

.section {
  padding-block: var(--space-10);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

/* Flex Utilities */
.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-xs {
  gap: var(--space-1);
}

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

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

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

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

/* Spacing Utilities (margin-bottom for vertical rhythm) */
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-1) !important; }
.mb-sm { margin-bottom: var(--space-2) !important; }
.mb-md { margin-bottom: var(--space-4) !important; }
.mb-lg { margin-bottom: var(--space-6) !important; }
.mb-xl { margin-bottom: var(--space-10) !important; }

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

/* ======================================================================
   6. Base Components – Modern, Cheerful, Premium
   ====================================================================== */

/* Header Layout Helper (supports centered logo & nav on both sides) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
}

.site-header-nav-left,
.site-header-nav-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header a {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition-base);
}

.site-header a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  transform-origin: center;
  transform: scaleX(0);
  background: linear-gradient(90deg,
      var(--color-accent-blue),
      var(--color-primary),
      var(--color-accent-coral));
  transition: transform var(--transition-base);
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  color: var(--color-text);
}

.site-header a:hover::after,
.site-header a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 959.98px) {
  .site-header-inner {
    grid-template-columns: 1fr auto 1fr;
    column-gap: var(--space-2);
  }

  .site-header-nav-left,
  .site-header-nav-right {
    display: none; /* will be replaced with mobile menu trigger in page CSS */
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-inline: 1.5rem;
  padding-block: 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  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-primary),
      var(--color-accent-coral));
  color: #111827;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--gray-50);
}

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

/* Inputs & Form Elements */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.4;
  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,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

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

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

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

.form-help {
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

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

/* Cards – for experiences, events, highlights */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left,
        rgba(250, 250, 255, 0.96),
        rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(248, 181, 77, 0.7);
}

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

.card-title {
  font-size: var(--fs-xl);
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

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

.card-body {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

/* Hero Section – base layout & overlay for slider */
.hero {
  position: relative;
  min-height: min(90vh, 760px);
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 800ms ease-out;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.82));
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(248, 250, 252, 0.2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  max-width: 34rem;
  font-size: var(--fs-lg);
  color: rgba(249, 250, 251, 0.9);
  margin-bottom: var(--space-6);
}

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

.hero-actions .btn-primary {
  background: linear-gradient(135deg,
      var(--color-primary),
      var(--color-accent-green));
}

.hero-actions .btn-secondary {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: rgba(248, 250, 252, 0.25);
  color: #f9fafb;
}

@media (max-width: 767.98px) {
  .hero-inner {
    padding-block: var(--space-12);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }
}

/* Chips / Tags – for events, experiences, filters */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.tag--accent-yellow {
  border-color: rgba(251, 191, 36, 0.6);
  background-color: rgba(254, 243, 199, 0.9);
}

.tag--accent-blue {
  border-color: rgba(56, 189, 248, 0.6);
  background-color: rgba(219, 234, 254, 0.9);
}

/* Badges for availability / statuses */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.badge--success {
  background-color: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.badge--warning {
  background-color: rgba(250, 204, 21, 0.1);
  color: #92400e;
}

/* ======================================================================
   7. Footer Base Styles
   ====================================================================== */
.site-footer {
  padding-block: var(--space-8);
  background: #050816;
  color: #e5e7eb;
}

.site-footer a {
  color: #e5e7eb;
  font-size: var(--fs-xs);
}

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

.site-footer-meta {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: #9ca3af;
}

/* ======================================================================
   8. Helper Classes for Thematic Sections
   ====================================================================== */
.section-light {
  background-color: var(--color-bg);
}

.section-soft {
  background: radial-gradient(circle at top left,
        rgba(251, 191, 36, 0.06), transparent 55%),
    radial-gradient(circle at bottom right,
        rgba(56, 189, 248, 0.06), transparent 60%),
    #ffffff;
}

.section-contrast {
  background: radial-gradient(circle at top right,
        rgba(251, 113, 133, 0.12), transparent 55%),
    #020617;
  color: #e5e7eb;
}

.section-contrast h2,
.section-contrast p {
  color: inherit;
}

/* Overlays for gallery or casino-inspired imagery */
.overlay-soft {
  position: relative;
}

.overlay-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(251, 191, 36, 0.16),
      rgba(56, 189, 248, 0.12));
  pointer-events: none;
}
