/* ============ YOLO Parties – design tokens ============ */
:root {
  /* farby z loga */
  --bg: #070608;
  --surface: #121014;
  --surface-2: #1b181d;
  --line: rgba(246, 241, 231, 0.12);
  --text: #f6f1e7;          /* krémová z loga */
  --muted: #b9b2a8;
  --red: #e32a1f;           /* červená silueta z loga */
  --red-strong: #c41d15;    /* tlačidlá – kontrast s krémovou 5:1 */
  --red-hover: #a9170f;
  /* farby z plagátov */
  --blue: #2a55ff;
  --blue-light: #6fb4ff;
  --pink: #ff3d8b;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font: 700 0.98rem/1 var(--font-body);
  text-decoration: none; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-strong); color: var(--text); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { background: rgba(246, 241, 231, 0.06); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(246, 241, 231, 0.4); background: rgba(246, 241, 231, 0.1); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(7, 6, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.05rem/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.01em; }
.brand img { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: lighten; border-radius: 50%; }
.brand b { color: var(--red); font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  padding: 10px 14px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-sm);
  transition: color 160ms var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="true"] { color: var(--text); }
.main-nav .btn { margin-left: 10px; }

.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; color: var(--text); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform 200ms var(--ease), opacity 200ms;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px);
  display: grid; place-items: center;
  padding: 96px 0 120px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(1.1) brightness(0.45); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,8,0.55) 0%, rgba(7,6,8,0.2) 40%, rgba(7,6,8,0.9) 85%, var(--bg) 100%);
}
/* "slnko" z loga – kruh za nápisom */
.hero-sun {
  position: absolute; z-index: -1;
  width: min(78vw, 620px); aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 46%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 38%, rgba(246,241,231,0.9) 0%, rgba(246,241,231,0.5) 30%, rgba(227,42,31,0.55) 62%, rgba(227,42,31,0) 74%);
  filter: blur(2px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-kicker { color: var(--text); font-weight: 600; font-size: 0.95rem; margin-bottom: 20px; opacity: 0.85; }
.hero-title { display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); font-weight: 900; line-height: 0.86; letter-spacing: -0.02em; }
.t-yolo {
  font-size: clamp(4.6rem, 19vw, 13rem); font-stretch: 125%; color: var(--text);
  text-shadow: 0 6px 40px rgba(0,0,0,0.45);
}
.t-parties {
  font-size: clamp(2.6rem, 10.5vw, 7.2rem); font-stretch: 125%;
  background: linear-gradient(95deg, var(--blue) 10%, var(--blue-light) 55%, var(--blue) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 0.06em;
}
.hero-lead { margin-top: 28px; max-width: 34ch; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* hero intro – jediný orchestrovaný moment animácie */
@media (prefers-reduced-motion: no-preference) {
  .t-yolo, .t-parties, .hero-kicker, .hero-lead, .hero-cta { animation: rise 900ms var(--ease) both; }
  .hero-kicker { animation-delay: 0ms; }
  .t-yolo { animation-delay: 80ms; }
  .t-parties { animation-delay: 200ms; }
  .hero-lead { animation-delay: 360ms; }
  .hero-cta { animation-delay: 460ms; }
  .hero-sun { animation: sun 1600ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sun { from { opacity: 0; transform: translate(-50%, -38%) scale(0.9); } to { opacity: 0.55; transform: translate(-50%, -50%); } }

/* ============ Strip ============ */
.strip { position: relative; margin-top: -64px; z-index: 2; }
.strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.strip-item { padding: 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-label { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.strip-value { font: 900 clamp(1.7rem, 3.6vw, 2.5rem)/1 var(--font-display); font-stretch: 118%; display: inline-flex; align-items: baseline; gap: 4px; }
.strip-value small { font: 700 0.95rem/1 var(--font-body); color: var(--muted); margin-right: 8px; }
.strip-item:first-child .strip-value { color: var(--red); }
.countdown span { font-variant-numeric: tabular-nums; }

/* ============ Sections ============ */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; max-width: 640px; }
.h-display {
  font-family: var(--font-display); font-weight: 900; font-stretch: 122%;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.015em;
  text-transform: uppercase;
}
.h-display::before {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--red); margin-bottom: 24px;
}
.grad {
  background: linear-gradient(95deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* ============ Next party ============ */
.next-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.next-poster {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(255, 61, 139, 0.45), 0 20px 60px -40px rgba(42, 85, 255, 0.6);
}
.next-poster img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.next-info .lead { margin-top: 24px; }
.details { margin: 32px 0 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.details dd { margin: 0; font-weight: 600; }
.next-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.partners { margin-top: 24px; color: var(--muted); font-size: 0.92rem; }
.partners strong { color: var(--text); font-weight: 600; }

/* ============ Calendar ============ */
.calendar { background: linear-gradient(180deg, var(--bg) 0%, #0d0b10 100%); border-top: 1px solid var(--line); }
.events { display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: 96px 1fr auto auto; align-items: center; gap: 24px;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.event.is-upcoming { border-color: rgba(227, 42, 31, 0.55); background: linear-gradient(90deg, rgba(227,42,31,0.12), var(--surface) 55%); }
.event-date { display: flex; flex-direction: column; color: var(--muted); font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.event-date span { font: 900 2.4rem/1 var(--font-display); font-stretch: 118%; color: var(--text); }
.event.is-upcoming .event-date span { color: var(--red); }
.event-main h3 { font: 800 1.2rem/1.25 var(--font-display); font-stretch: 108%; }
.event-main p { color: var(--muted); margin-top: 4px; }
.badge { font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge-live { color: var(--text); border-color: rgba(111, 180, 255, 0.5); background: rgba(42, 85, 255, 0.18); }

.past { margin-top: 32px; border-top: 1px solid var(--line); }
.past summary {
  cursor: pointer; padding: 20px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px;
}
.past summary::-webkit-details-marker { display: none; }
.past summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform 200ms var(--ease); }
.past[open] summary::after { transform: rotate(45deg); }
.past summary span { color: var(--muted); font-weight: 500; }
.past-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; padding-bottom: 8px; }
.past-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.past-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.past-list span { font-weight: 600; text-align: right; }

/* ============ Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 16px; }
.g-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; border-radius: var(--radius); }
.g-img { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.g-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms var(--ease), filter 300ms; }
.g-card:hover .g-img img { transform: scale(1.04); filter: brightness(1.08); }
.g-card:hover .g-img { border-color: rgba(246, 241, 231, 0.35); }
.g-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.g-meta { color: var(--muted); font-size: 0.88rem; }

/* ============ Stránka párty ============ */
.party-page { padding: 40px 0 clamp(80px, 10vw, 120px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 20px; height: 20px; }
.party-head { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin: 24px 0 clamp(48px, 7vw, 80px); }
.party-poster { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 61, 139, 0.4), 0 20px 60px -40px rgba(42, 85, 255, 0.55); }
.party-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.party-head .h-display { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
.party-head .lead { margin-top: 20px; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photos-grid .g-item img { aspect-ratio: 1; }
.photos-empty {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: 56px 24px; border: 1px dashed rgba(246, 241, 231, 0.2); border-radius: var(--radius); color: var(--muted);
}
.photos-empty svg { width: 40px; height: 40px; color: var(--red); }
.empty { display: grid; gap: 20px; justify-items: start; padding: 48px 0; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
}
.lb-nav svg { width: 24px; height: 24px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav[hidden] { display: none; }
.g-item {
  display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); cursor: zoom-in; position: relative;
}
.g-item img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms var(--ease), filter 300ms; }
.g-item:hover img { transform: scale(1.04); filter: brightness(1.08); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; color: var(--text);
}
.lightbox::backdrop { background: rgba(4, 3, 5, 0.9); backdrop-filter: blur(6px); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lb-caption { text-align: center; margin-top: 12px; color: var(--muted); }
.lb-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
}
.lb-close svg { width: 22px; height: 22px; }

/* ============ Contact ============ */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.contact-intro .lead { margin-top: 24px; }
.contact-list { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.contact-list a { text-decoration: none; font-weight: 600; padding: 10px 0; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px;
  padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
}
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8a837a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(246, 241, 231, 0.3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #ff6b61; }
.error { color: #ff8a80; font-size: 0.9rem; }
.form-actions { display: grid; gap: 12px; margin-top: 4px; }
.form-note { color: var(--muted); font-size: 0.92rem; min-height: 1.4em; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer-logo { width: 104px; height: 104px; object-fit: cover; mix-blend-mode: lighten; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; }
.footer-nav a { text-decoration: none; color: var(--muted); padding: 10px; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.partners-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.partners-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.partners-list { display: flex; flex-wrap: wrap; gap: 12px; }
.partners-list li {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font: 800 1rem/1 var(--font-display); font-stretch: 110%; color: var(--text);
}
.partners-list img { height: 32px; width: auto; }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 24px; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .next-grid, .contact-grid { grid-template-columns: 1fr; }
  .next-poster { max-width: 460px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 6, 8, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .main-nav a:not(.btn) { padding: 14px 4px; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .btn { margin: 16px 0 0; }
}

@media (max-width: 680px) {
  .strip { margin-top: -40px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { flex-direction: row; justify-content: space-between; padding: 18px 20px; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .strip-value { font-size: 1.6rem; }
  .event { grid-template-columns: 72px 1fr; gap: 12px 16px; padding: 18px; }
  .event .badge { grid-column: 2; justify-self: start; }
  .event .btn { grid-column: 1 / -1; }
  .event-date span { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .g-name { font-size: 0.95rem; }
  .party-head { grid-template-columns: 1fr; }
  .party-poster { max-width: 260px; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .contact-form { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 100px 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav { justify-content: flex-start; margin-left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
