/* /akce (dřív /webinare): seznam živých webinářů (12. 10. 2026). Fialový hero z .top-purple, pod ním karty:
   obálka (pastelová plocha, název, kus produktu z registrační stránky, Tomáš) a pod ní termín a registrace. */

.wn-hero { padding-bottom: clamp(56px, 6vw, 96px); }
.wn-hero .display { margin: 0; }
.wn-hero .hero__sub { margin: 18px 0 0; max-width: 32em; }
.wn-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.14); color: #FFFFFF; font-size: var(--fs-sm); font-weight: 500; }
.wn-chip i { width: 8px; height: 8px; border-radius: 50%; background: #8CE09C; animation: wn-pulse 2.2s var(--ease-out) infinite; }
@keyframes wn-pulse { 0% { box-shadow: 0 0 0 0 rgb(140 224 156 / 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgb(140 224 156 / 0); } }

.wn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }

/* karta: celá klikací přes odkaz v nadpisu */
.wn-ev { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 8px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-1); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.wn-ev:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-3); }
.wn-ev:focus-within { box-shadow: 0 0 0 3px var(--purple); }
.wn-t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wn-t a { color: inherit; text-decoration: none; outline: none; }

/* obálka */
.wn-cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--cover); overflow: hidden; isolation: isolate; }
.wn-cover__t { position: absolute; left: clamp(20px, 2.6vw, 32px); top: clamp(18px, 2.4vw, 30px); z-index: 2; font-family: var(--font-display); font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; color: var(--ink); }
.wn-cover__host { position: absolute; right: 2%; bottom: 0; z-index: 1; height: 92%; width: auto; transition: transform 0.6s var(--ease-out); transform-origin: bottom center; }
.wn-cover__host--bleed { right: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
.wn-ev:hover .wn-cover__host { transform: scale(1.03); }
.wn-cover__photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.wn-ev:hover .wn-cover__photo { transform: scale(1.03); }

/* kus produktu na obálce, stejné údaje jako na registrační stránce */
.wn-mock { position: absolute; left: clamp(20px, 2.6vw, 32px); bottom: clamp(18px, 2.4vw, 28px); z-index: 3; display: grid; gap: 8px; width: min(56%, 280px); padding: 14px 16px; border-radius: 8px; background: #FFFFFF; box-shadow: 0 18px 40px -18px rgb(27 27 27 / 0.35), 0 0 0 1px rgb(27 27 27 / 0.04); color: var(--ink); font-size: 12px; line-height: 1.35; transition: transform 0.45s var(--ease-out); }
.wn-ev:hover .wn-mock { transform: translateY(-4px) rotate(-1deg); }
.wn-mock__k { color: var(--ink-3); font-weight: 500; }
.wn-env__bar { display: grid; grid-template-columns: 67fr 32fr; gap: 4px; }
.wn-env__bar i { height: 8px; border-radius: 4px; background: var(--purple); }
.wn-env__bar i + i { background: var(--purple-light); }
.wn-env__cols { display: grid; grid-template-columns: 67fr 32fr; gap: 4px; color: var(--ink-3); }
.wn-env__cols b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.wn-lv { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); background: var(--p-lilac); font-weight: 500; }
.wn-lv i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.wn-mock__q { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }

/* text pod obálkou */
.wn-body { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 20px); }
.wn-when { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.wn-when time { color: var(--purple); font-weight: 500; }
.wn-t { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.85rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.wn-p { margin: 10px 0 24px; color: var(--ink-2); max-width: 34em; }
.wn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; }
.wn-btn { position: relative; z-index: 1; }
.wn-for { font-size: var(--fs-sm); color: var(--ink-3); }
.wn-ev:hover .arrow { transform: translateX(4px); }

.wn-empty { margin: 0; padding: 40px; border-radius: 8px; background: var(--paper-2); text-align: center; color: var(--ink-2); }

@media (max-width: 860px) {
  .wn-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .wn-cover { aspect-ratio: 4 / 3.4; }
  .wn-mock { width: 62%; padding: 12px 13px; }
  .wn-cover__host { right: -6%; height: 88%; }
  .wn-cover__host--bleed { right: 0; }
}

/* témata webináře nad termínem */
.wn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.wn-tags li { padding: 5px 11px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; }

/* Záznamy proběhlých webinářů (11. 11. 2026): karta bez odkazu přes celou plochu,
   „Odemknout záznam“ rozbalí v kartě pole na e-mail (static/js/webinare-zaznamy.js). */
.wn-rec { padding-top: 0; }
.wn-ev--rec:hover { transform: none; }
.wn-ev--rec:focus-within { box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-3); }
.wn-soon { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }

.wz-form { display: grid; gap: 10px; margin-top: auto; }
.wz-form[hidden] { display: none; }
.wz-label { font-size: var(--fs-sm); font-weight: 500; }
.wz-row { display: flex; gap: 10px; }
.wz-row .input { flex: 1; min-width: 0; min-height: 52px; font-size: 1rem; }
.wz-btn { flex: none; }
.wz-btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.wz-err { margin: 0; color: #B3261E; font-size: var(--fs-sm); }
.wz-note { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.wz-note a { color: inherit; }
.wn-ev--rec.is-open .wn-foot { display: none; }

@media (max-width: 480px) {
  .wz-row { flex-direction: column; }
  .wz-btn { justify-content: center; }
}
