/* =========================================================
   Zlatovia Base Styles
   Sections: Variables, Reset, Base, Layout, Utilities, Components
   ============================================================ */

/* =========================
   Variables
   ========================= */
:root {
  /* Color palette */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #1b1b2f;
  --color-text-muted: #6b6b8a;

  /* Vibrant brand accents (playful, multi-color) */
  --color-primary: #ff3b8d;      /* hlavní akcent – růžovo-magenta */
  --color-primary-soft: #ffe3f0;
  --color-secondary: #3b82ff;    /* modrý akcent */
  --color-accent-yellow: #ffcc33;
  --color-accent-teal: #00c9a7;
  --color-accent-purple: #7b5cff;

  /* Status colors */
  --color-success: #12b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* 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, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-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 */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Shadows (soft, premium) */
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.14);

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

  /* Layout */
  --container-width: 1120px;
  --container-padding-x: 1.25rem; /* 20px */
  --header-height: 72px;
}

/* =========================
   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 {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

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

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

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

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

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

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

/* =========================
   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);
  -webkit-font-smoothing: antialiased;
}

/* Headings – modern, playful, Czech content friendly */

h1,
.h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-16);
}

h2,
.h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-12);
}

h3,
.h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

h4,
.h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

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

strong {
  font-weight: 600;
}

/* Links – colorful hover underline */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

/* =========================
   Layout & Structure
   ========================= */

.main-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

/* Container utility with comfortable max-width for events imagery */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

/* Header specific helpers – center logo, nav around logo */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Nav items equally distributed left / right of logo
   (exact behavior implemented in layout, these helpers keep visuals consistent) */
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 4px 2px;
}

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

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

.nav-link[aria-current="page"] {
  color: var(--color-primary);
}

/* Hero section basics – full width, slider-friendly */
.hero {
  position: relative;
  min-height: min(720px, 100vh);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 59, 141, 0.55), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.65), transparent 60%),
              linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
}

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

.hero-kicker {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-24);
}

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

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

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

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-24 { gap: var(--space-24); }

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

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

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

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

/* Spacing utilities (margin / padding y only for brevity) */
.section {
  padding-top: var(--space-56);
  padding-bottom: var(--space-56);
}

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

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-40 { margin-top: var(--space-40); }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-40 { margin-bottom: var(--space-40); }

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

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

/* =========================
   Components
   ========================= */

/* Buttons – primary & secondary CTAs for hero (Rezervovat / Objevit) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  outline: none;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
}

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

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

.btn:focus-visible {
  outline: 3px solid var(--color-accent-yellow);
  outline-offset: 3px;
}

/* Form inputs – contact & event request */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  font-size: 0.95rem;
  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,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 59, 141, 0.35);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.textarea {
  min-height: 140px;
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--gray-700);
}

.form-help {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 4px;
}

/* Card – used across Home, Events, Experiences, Gallery, About */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 204, 51, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

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

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 4px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Gallery items */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-16);
}

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 59, 141, 0.14), rgba(59, 130, 246, 0.14));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

/* Map container for interactive map */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 260px;
}

/* Pill badges for advantages / tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--gray-100);
  color: var(--gray-700);
}

/* =========================
   Accessibility & Motion
   ========================= */

:focus-visible {
  outline: 3px solid var(--color-secondary);
  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;
  }
}

/* =========================
   Responsive Typography Tweaks
   ========================= */

@media (max-width: 768px) {
  h1,
  .h1 {
    font-size: 1.9rem;
  }

  h2,
  .h2 {
    font-size: 1.6rem;
  }

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

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

  .hero-inner {
    padding-top: var(--space-56);
    padding-bottom: var(--space-56);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================
   Thematic accent helpers
   ========================= */

.theme-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 59, 141, 0.12), rgba(59, 130, 246, 0.12));
  color: var(--color-text);
}

.accent-border {
  border-top: 3px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(90deg, var(--color-primary), var(--color-accent-yellow), var(--color-secondary));
}
