/* wa-lint: skip */
/* Blog-hero: gæt → kundecitater */

.blog-hero-testi {
  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-testi { background: var(--surface); }

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

.blog-hero-testi__panel {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
}

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

.blog-hero-testi__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-testi__count {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
}
.blog-hero-testi__count--bad { background: rgba(239, 68, 68, 0.10); color: rgb(185, 28, 28); }
.blog-hero-testi__count--good { background: rgba(0, 136, 60, 0.12); color: var(--brand-success, rgb(0, 136, 60)); }

.blog-hero-testi__guess {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-hero-testi__assume {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(49, 79, 89, 0.04);
  border: 1px dashed rgba(49, 79, 89, 0.18);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-style: italic;
  color: rgba(49, 79, 89, 0.65);
  align-items: center;
}

.blog-hero-testi__assume-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: rgb(185, 28, 28);
  font-weight: 700;
  flex-shrink: 0;
}

.blog-hero-testi__hint {
  margin-top: auto;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  font-style: italic;
  color: rgb(185, 28, 28);
  text-align: center;
}

.blog-hero-testi__quotes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-hero-testi__quote {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(49, 79, 89, 0.12);
  border-left: 3px solid var(--brand-accent, rgb(184, 90, 58));
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.25vw, 13px);
  line-height: 1.45;
  color: var(--text, rgb(29, 35, 39));
  position: relative;
}
[data-theme="dark"] .blog-hero-testi__quote {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  border-left-color: var(--brand-accent, rgb(184, 90, 58));
  color: rgba(255,255,255,0.85);
}

.blog-hero-testi__mark {
  position: absolute;
  top: 1px;
  left: 9px;
  font-size: 26px;
  color: var(--brand-accent, rgb(184, 90, 58));
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.blog-hero-testi__quote cite {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.85em;
  font-weight: 600;
  color: rgba(49, 79, 89, 0.55);
}

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

@media (prefers-reduced-motion: reduce) {
  .blog-hero-testi__slider { animation: none; transform: translateX(-50%); }
}
