/* wa-lint: skip */
/* Blog-hero: Del — manuel link → smart share med ripple. */

.blog-hero-share {
  width: 100%;
  aspect-ratio: 600 / 380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .blog-hero-share { background: var(--surface); }

.blog-hero-share__slider {
  display: flex;
  width: 200%;
  height: 100%;
  animation: blog-share-slide 14s ease-in-out infinite;
}

.blog-hero-share__panel {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
}

.blog-hero-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(49, 79, 89, 0.10);
  margin-bottom: 14px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-share__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-share__close {
  color: rgba(49, 79, 89, 0.4);
  font-size: 18px;
  line-height: 1;
}

.blog-hero-share__success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 136, 60, 0.12);
  color: var(--brand-success, rgb(0, 136, 60));
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
}
.blog-hero-share__success::before {
  content: "✓";
  font-weight: 700;
}

.blog-hero-share__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* ─── PANEL 1: Manual link share ─────────────────────────────────────── */
.blog-hero-share__panel--manual { background: rgb(255, 255, 255); }
[data-theme="dark"] .blog-hero-share__panel--manual { background: var(--surface); }

.blog-hero-share__label {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  color: rgba(49, 79, 89, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-hero-share__url {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(49, 79, 89, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(49, 79, 89, 0.03);
}

.blog-hero-share__url-text {
  flex: 1;
  padding: 9px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: clamp(9px, 1.05vw, 11px);
  color: var(--primary, rgb(49, 79, 89));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-hero-share__copy {
  border: 0;
  border-left: 1px solid rgba(49, 79, 89, 0.18);
  background: rgba(49, 79, 89, 0.05);
  padding: 0 14px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
  cursor: default;
}

.blog-hero-share__manual-hint {
  margin: 0;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.45;
  color: rgba(49, 79, 89, 0.65);
}
[data-theme="dark"] .blog-hero-share__manual-hint { color: rgba(255,255,255,0.55); }

.blog-hero-share__friction {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: rgb(185, 28, 28);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
}

.blog-hero-share__friction-icon {
  font-size: 1.1em;
}

/* ─── PANEL 2: Smart share + ripple ─────────────────────────────────── */
.blog-hero-share__panel--smart { background: rgb(255, 255, 255); }
[data-theme="dark"] .blog-hero-share__panel--smart { background: var(--surface); }

.blog-hero-share__exhibitor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 79, 89, 0.12);
  border-radius: 10px;
  background: rgb(255, 255, 255);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="dark"] .blog-hero-share__exhibitor {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.blog-hero-share__exhibitor-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand-accent, rgb(184, 90, 58));
  color: rgb(255, 255, 255);
  display: grid;
  place-items: center;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-hero-share__exhibitor-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display, system-ui), sans-serif;
}
.blog-hero-share__exhibitor-info strong {
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}
[data-theme="dark"] .blog-hero-share__exhibitor-info strong { color: rgb(241, 245, 249); }
.blog-hero-share__exhibitor-info span {
  font-size: clamp(9px, 1.1vw, 11px);
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-share__ripple {
  flex: 1;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.blog-hero-share__ripple-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.blog-hero-share__ripple-arrow {
  font-size: 18px;
  color: rgba(49, 79, 89, 0.35);
  font-weight: 700;
}

.blog-hero-share__avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-highlight, rgb(127, 190, 198));
  color: var(--primary, rgb(49, 79, 89));
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

.blog-hero-share__avatar--seed {
  background: var(--brand-50, rgb(49, 79, 89));
  color: rgb(255, 255, 255);
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 11px;
}

.blog-hero-share__avatar--peer {
  width: 14px;
  height: 14px;
  line-height: 14px;
  margin-left: -4px;
  border: 2px solid rgb(255, 255, 255);
  animation: blog-share-peer-in 14s linear infinite;
  animation-delay: calc(6s + var(--i) * 80ms);
  opacity: 0;
  transform: scale(0.6);
}
[data-theme="dark"] .blog-hero-share__avatar--peer { border-color: var(--surface); }
.blog-hero-share__avatar--peer:first-child { margin-left: 0; }

.blog-hero-share__avatars {
  display: flex;
}

.blog-hero-share__stage-label {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: rgba(49, 79, 89, 0.65);
}

.blog-hero-share__reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: var(--font-display, system-ui), sans-serif;
}
.blog-hero-share__reach strong {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--brand-success, rgb(0, 136, 60));
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: blog-share-reach 14s linear infinite;
  animation-delay: 6.8s;
  opacity: 0;
}
.blog-hero-share__reach span {
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 600;
  color: rgba(49, 79, 89, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Keyframes */
@keyframes blog-share-slide {
  0%, 30%    { transform: translateX(0); }
  40%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

/* Peer- og reach-animationer bruger ABSOLUTE delays, så keyframes er
   relative til animation-start (ikke parent-cyklus). */
@keyframes blog-share-peer-in {
  0%         { opacity: 0; transform: scale(0.6); }
  3%         { opacity: 1; transform: scale(1.15); }
  6%         { opacity: 1; transform: scale(1); }
  28%        { opacity: 1; transform: scale(1); }
  32%        { opacity: 0; transform: scale(0.6); }
  100%       { opacity: 0; transform: scale(0.6); }
}

@keyframes blog-share-reach {
  0%         { opacity: 0; transform: scale(0.8); }
  3%         { opacity: 1; transform: scale(1.1); }
  6%         { opacity: 1; transform: scale(1); }
  22%        { opacity: 1; transform: scale(1); }
  26%        { opacity: 0; }
  100%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-share__slider { animation: none; transform: translateX(-50%); }
  .blog-hero-share__avatar--peer { animation: none; opacity: 1; transform: scale(1); }
  .blog-hero-share__reach strong { animation: none; opacity: 1; transform: none; }
}
