/* ========================================================================
   Udalosti Dnes – Base Styles
   Luxury, modern, spacious, light, elegant, premium
   ======================================================================== */

/* ========================================================================
   1. CSS CUSTOM PROPERTIES (Variables)
   ======================================================================== */
:root {
  /* Color Palette -------------------------------------------------------- */
  --color-background: #f6f1ea;          /* soft beige canvas */
  --color-surface: #ffffff;             /* cards, panels */
  --color-surface-muted: #f9f5ef;       /* subtle sections */
  --color-text: #1b1b1f;                /* primary text */
  --color-text-muted: #6f6b65;          /* secondary text */

  --color-primary: #27b6b0;             /* turquoise */
  --color-primary-soft: #d4f2f0;        /* soft turquoise tint */

  --color-accent: #ff9f66;              /* soft orange accent */
  --color-accent-soft: #ffe0cc;         /* soft orange tint */

  --color-success: #32b487;
  --color-warning: #ffb347;
  --color-danger: #e25a5a;

  --color-gray-50: #faf7f3;
  --color-gray-100: #f0ebe4;
  --color-gray-200: #e2dbd1;
  --color-gray-300: #cfc5b7;
  --color-gray-400: #b3a693;
  --color-gray-500: #8d816f;
  --color-gray-600: #6e6456;
  --color-gray-700: #544b3f;
  --color-gray-800: #383126;
  --color-gray-900: #231e17;

  /* Typography ----------------------------------------------------------- */
  --font-sans: "Poppins", 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-md: 1.0625rem; /* 17px */
  --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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (px) --------------------------------------------------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 72px;
  --space-15: 80px;
  --space-16: 96px;

  /* Radius --------------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows – soft & premium ------------------------------------------- */
  --shadow-soft: 0 8px 24px rgba(15, 16, 20, 0.04);
  --shadow-medium: 0 18px 45px rgba(15, 16, 20, 0.08);
  --shadow-strong: 0 28px 80px rgba(15, 16, 20, 0.16);

  /* Transitions & Motion ------------------------------------------------- */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 360ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Layout --------------------------------------------------------------- */
  --container-max-width: 1120px;
  --container-padding-x: 20px;
}

@media (min-width: 1024px) {
  :root {
    --font-size-3xl: 2.125rem; /* 34px */
    --font-size-4xl: 2.5rem;   /* 40px */
    --font-size-5xl: 3.25rem;  /* 52px */
  }
}

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

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

body {
  margin: 0;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

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

img {
  height: auto;
}

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

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

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

legend {
  padding: 0;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body,
html {
  min-height: 100%;
}

/* ========================================================================
   3. BASE TYPOGRAPHY & GLOBAL STYLES
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: 0.02em;
}

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

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

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

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

h6 {
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
}

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

strong,
b {
  font-weight: 600;
}

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

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

a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-base);
}

a:not(.btn):hover::after {
  width: 100%;
}

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

code,
pre {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

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

/* ========================================================================
   4. LAYOUT UTILITIES
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-14);
    padding-bottom: var(--space-14);
  }
}

/* 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-col {
  display: flex;
  flex-direction: column;
}

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

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

.justify-center {
  justify-content: center;
}

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

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

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

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

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

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

/* Spacing Utilities ----------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

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

/* ========================================================================
   5. COMPONENTS
   ======================================================================== */

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  background-color: var(--color-surface);
  color: var(--color-text);
  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(120deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background-color: rgba(39, 182, 176, 0.04);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: var(--font-size-md);
}

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

/* Form Elements --------------------------------------------------------- */
.input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

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

.input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(39, 182, 176, 0.32);
  background-color: #fff;
}

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

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-800);
}

.form-group {
  margin-bottom: var(--space-5);
}

/* Card ------------------------------------------------------------------ */
.card {
  position: relative;
  background: radial-gradient(circle at top left, #ffffff 0, #f7f1e8 40%, #ffffff 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(39, 182, 176, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 159, 102, 0.16), transparent 55%);
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.card > * {
  position: relative;
}

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

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

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

/* Hero / Slider Helpers (structure only, no JS) ------------------------ */
.hero {
  position: relative;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  /* overlay for readability over slider images */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.32) 35%,
      rgba(0, 0, 0, 0.25) 65%,
      rgba(0, 0, 0, 0.58) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  max-width: 24rem;
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: var(--space-6);
}

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

/* Slider wrapper – images controlled separately in page CSS ------------- */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

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

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

/* Header Layout – centered logo, nav split on both sides ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(246, 241, 234, 0.92),
    rgba(246, 241, 234, 0.86)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
      justify-items: center;
}

.site-brand {
  justify-self: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--font-size-lg);

  text-transform: uppercase;
}

.site-nav {
  font-size: var(--font-size-sm);
}

.site-nav-left,
.site-nav-right {
  display: none;
}

@media (min-width: 960px) {
  .site-nav-left,
  .site-nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }

  .site-header-inner {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
}

.site-nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-700);
  padding-bottom: 2px;
}

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

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

/* Gallery helpers ------------------------------------------------------- */
.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;
  transform: scale(1.02);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

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

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.15);
}

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

/* Tag / Pill for themed entertainment (poker, roulette, kasino, etc.) -- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.78);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-700);
}

.badge-soft-turquoise {
  background-color: var(--color-primary-soft);
  border-color: rgba(39, 182, 176, 0.3);
}

.badge-soft-orange {
  background-color: var(--color-accent-soft);
  border-color: rgba(255, 159, 102, 0.35);
}

/* ========================================================================
   6. ACCESSIBILITY & REDUCED MOTION
   ======================================================================== */

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
  border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible,
.input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
}

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

/* ========================================================================
   7. MISC UTILITIES FOR PREMIUM FEEL
   ======================================================================== */

.bg-surface {
  background-color: var(--color-surface);
}

.bg-surface-muted {
  background-color: var(--color-surface-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.luxury-divider {
  position: relative;
  width: 84px;
  height: 1px;
  margin: var(--space-5) 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.32), transparent);
}

.luxury-divider::before,
.luxury-divider::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
}

.luxury-divider::before {
  left: -2px;
}

.luxury-divider::after {
  right: -2px;
}
