/*
 * Diaspora webinars page (page-webinar.php) — the livestream player, its
 * floating mode, the Zoom registration block and the property-interest form.
 * Loaded after main.css + chama.css; everything else on the page is styled there.
 */

/* Buttons ------------------------------------------------------------------ */

.webinar_btn,
.webinar_register_btn {
  display: inline-block;
  background: #E63323;
  color: #fff;
  font-family: 'MarkProBold', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 6px 6px 0 #FDC533;
  transition: background .2s ease, transform .2s ease;
}
.webinar_btn:hover,
.webinar_register_btn:hover {
  background: #52283B;
  color: #fff;
  transform: translate(2px, 2px);
}

.webinar_ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.webinar_ctas_secondary {
  color: inherit;
  font-family: 'MarkProBold', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Zoom registration block (shown when nothing is live) ---------------------- */

.webinar_register {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #52283B;
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
}
.webinar_register_content { flex: 1; }
.webinar_register_tag {
  display: inline-block;
  font-size: .75em;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .12);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.webinar_register_title {
  font-family: 'MarkProBold', Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1.5em;
  margin-bottom: 8px;
}
.webinar_register p {
  font-size: .9375em;
  opacity: .9;
}
.webinar_register_btn { flex-shrink: 0; }

/* Livestream ---------------------------------------------------------------- */

.webinar_live { margin-bottom: 50px; }

.webinar_live_slot {
  position: relative;
  border-radius: 20px;
  background: #1a0d13;
}

.webinar_live_player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a0d13;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.webinar_live_media,
.webinar_live_media iframe,
.webinar_live_media video,
.webinar_live_media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* The poster is often the event banner, text and all — soften it so the
   overlay copy reads cleanly on top. */
.webinar_live_media > img { object-fit: cover; filter: blur(5px); transform: scale(1.08); }
.webinar_live_media video { background: #000; }

.webinar_live_overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  background: rgba(82, 40, 59, .78);
}
.webinar_live_overlay h4 {
  font-family: 'MarkProBold', Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1.125em;
  margin-bottom: 8px;
}
.webinar_live_overlay p {
  font-size: .9375em;
  max-width: 420px;
}
.webinar_live_overlay_btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  margin-bottom: 20px;
}
.webinar_live_overlay_btn svg { width: 30px; height: 30px; margin-left: 4px; }
.webinar_live_overlay_btn:hover { color: #E63323; }

.webinar_live_badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 30px;
  pointer-events: none;
}
.webinar_live_badge_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a9a9a;
}
.webinar_live.is-live .webinar_live_badge_dot {
  background: #E63323;
  animation: webinar-pulse 1.6s ease-in-out infinite;
}
@keyframes webinar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 51, 35, .6); }
  50%      { box-shadow: 0 0 0 6px rgba(230, 51, 35, 0); }
}

/* Dock / close: only meaningful while floating. */
.webinar_live_controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  gap: 6px;
}
.webinar_live_controls_btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  cursor: pointer;
}
.webinar_live_controls_btn svg { width: 16px; height: 16px; }
.webinar_live_controls_btn:hover { background: #E63323; color: #fff; }

.webinar_live_footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  font-size: .875em;
}
.webinar_live_footer a {
  margin-left: auto;
  color: #E63323;
  font-family: 'MarkProBold', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

/* Floating mini player: bottom-left on desktop so it clears the sticky form
   in the right-hand column. */
.webinar_live_player.is-floating {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 400px;
  z-index: 95;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: webinar-float-in .25s ease-out;
}
.webinar_live_player.is-floating .webinar_live_controls { display: flex; }
.webinar_live_player.is-floating .webinar_live_badge { top: 10px; left: 10px; font-size: .6875em; }
.webinar_live_player.is-floating .webinar_live_overlay { padding: 16px; }
.webinar_live_player.is-floating .webinar_live_overlay h4 { font-size: .9375em; margin-bottom: 4px; }
.webinar_live_player.is-floating .webinar_live_overlay p { font-size: .8125em; }
.webinar_live_player.is-floating .webinar_live_overlay_btn { width: 46px; height: 46px; margin-bottom: 10px; }
@keyframes webinar-float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Development cards --------------------------------------------------------- */

.our_development_card_image { position: relative; }
.our_development_card_image img { display: block; }
.our_development_card_status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: #52283B;
  font-size: .6875em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}
.our_development_card_interest {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 11px 16px;
  border: #52283B solid 1px;
  border-radius: 10px;
  color: #52283B;
  font-family: 'MarkProBold', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  transition: background .2s ease, color .2s ease;
}
.our_development_card_interest:hover {
  background: #52283B;
  color: #fff;
}

/* Lead form confirmation ---------------------------------------------------- */

.webinar_lead_sent .section_excerpt { margin-bottom: 24px; }

/* Stream panel: countdown + states ----------------------------------------- */

.webinar_live_countdown {
  display: flex;
  gap: 10px;
  margin: 6px 0 14px;
}
.webinar_live_countdown[hidden] { display: none; }
.webinar_live_countdown div {
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  text-align: center;
}
.webinar_live_countdown strong {
  display: block;
  font-family: 'MarkProBold', Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1.75em;
  line-height: 1.1;
}
.webinar_live_countdown span {
  font-size: .6875em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .8;
}

/* "Watch live" / "Join on Zoom" in the overlay only once the session is on. */
.webinar_live_overlay_action { margin-top: 16px; display: none; }
.webinar_live.is-live .webinar_live_overlay_action { display: inline-block; }
.webinar_live.is-preview .webinar_live_badge_dot { background: #FDC533; }

.webinar_live_player.is-floating .webinar_live_countdown { display: none; }

/* Event details ------------------------------------------------------------- */

.webinar_event {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  margin-bottom: 50px;
}
.webinar_event_banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 400;
  object-fit: cover;
}
.webinar_event_body { padding: 30px; }
.webinar_event_tag {
  display: inline-block;
  font-size: .75em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #52283B;
  background: rgba(82, 40, 59, .08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.webinar_event_title {
  font-family: 'MarkProBold', Helvetica, sans-serif;
  font-weight: normal;
  font-size: 1.625em;
  line-height: 1.25;
  color: #52283B;
  margin-bottom: 22px;
}
.webinar_event_facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(23, 20, 15, .1);
  border: rgba(23, 20, 15, .1) solid 1px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.webinar_event_facts > div {
  background: #fdfbf8;
  padding: 14px 16px;
}
.webinar_event_facts dt {
  font-size: .6875em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6B5F52;
  margin-bottom: 4px;
}
.webinar_event_facts dd {
  font-family: 'MarkProBold', Helvetica, sans-serif;
  font-size: .9375em;
}
.webinar_event_facts dd span {
  display: block;
  font-family: 'MarkProRegular', Helvetica, sans-serif;
  font-size: .875em;
  color: #6B5F52;
  margin-top: 2px;
}
.webinar_event_facts dd .webinar_event_local { color: #E63323; }
.webinar_event_facts dd a { display: block; color: #52283B; text-decoration: underline; text-underline-offset: 3px; }
.webinar_event_facts dd a:hover { color: #E63323; }

.webinar_event_description {
  font-size: .9375em;
  line-height: 1.65;
  margin-bottom: 26px;
}
.webinar_event_description p { margin-bottom: 14px; }
.webinar_event_description ul { margin: 0 0 14px 20px; }
.webinar_event_description li { margin-bottom: 6px; }
.webinar_event .webinar_ctas_secondary { color: #52283B; }

/* Responsive ---------------------------------------------------------------- */

@media only screen and (max-width: 960px) {
  /* The form sits below the content here, and the sticky "I'm Interested"
     bar takes the bottom 60px — float bottom-right, above it. */
  .webinar_live_player.is-floating {
    left: auto;
    right: 12px;
    bottom: 72px;
    width: min(62vw, 340px);
  }
}

@media only screen and (max-width: 768px) {
  .webinar_event_body { padding: 22px; }
  .webinar_event_title { font-size: 1.375em; }
  .webinar_event_facts { grid-template-columns: 1fr; }
  .webinar_live_countdown div { min-width: 52px; }
  .webinar_live_countdown strong { font-size: 1.375em; }
  .webinar_register {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .webinar_live_slot,
  .webinar_live_player { border-radius: 14px; }
  .webinar_live_overlay { padding: 14px; }
  .webinar_live_overlay h4 { font-size: .9375em; margin-bottom: 4px; }
  .webinar_live_overlay p { font-size: .75em; }
  .webinar_live_countdown { margin: 4px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .webinar_live.is-live .webinar_live_badge_dot,
  .webinar_live_player.is-floating { animation: none; }
}
