/* wa-lint: skip */
/* Blog-hero: Liste → live-dashboard. */

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

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

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

.blog-hero-dash__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: 12px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-dash__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-dash__count-static {
  font-size: clamp(9px, 1.05vw, 11px);
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-dash__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: var(--brand-success, rgb(0, 136, 60));
}

.blog-hero-dash__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-success, rgb(0, 136, 60));
  animation: blog-dash-pulse 1.6s ease-in-out infinite;
}

/* PANEL 1: liste */
.blog-hero-dash__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  border: 1px solid rgba(49, 79, 89, 0.10);
  border-radius: 8px;
  overflow: hidden;
}
[data-theme="dark"] .blog-hero-dash__list { border-color: rgba(255,255,255,0.10); }

.blog-hero-dash__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(49, 79, 89, 0.06);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  color: var(--text, rgb(29, 35, 39));
}
.blog-hero-dash__row:last-child { border-bottom: 0; }
[data-theme="dark"] .blog-hero-dash__row { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.06); }

.blog-hero-dash__row span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(49, 79, 89, 0.55);
}
[data-theme="dark"] .blog-hero-dash__row span:last-child { color: rgba(255,255,255,0.55); }

.blog-hero-dash__row--more {
  background: rgba(49, 79, 89, 0.03);
  font-style: italic;
  color: rgba(49, 79, 89, 0.55);
  justify-content: center;
}

.blog-hero-dash__hint {
  margin-top: 10px;
  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;
}

/* PANEL 2: dashboard */
.blog-hero-dash__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-hero-dash__kpi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(49, 79, 89, 0.10);
  border-radius: 8px;
  position: relative;
}
[data-theme="dark"] .blog-hero-dash__kpi {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.blog-hero-dash__kpi-value {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .blog-hero-dash__kpi-value { color: rgb(241, 245, 249); }

.blog-hero-dash__kpi-delta {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: clamp(8px, 0.95vw, 10px);
  font-weight: 700;
  color: var(--brand-success, rgb(0, 136, 60));
}

.blog-hero-dash__chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  background: rgba(49, 79, 89, 0.025);
  border-radius: 8px;
  margin-bottom: 10px;
}
[data-theme="dark"] .blog-hero-dash__chart { background: rgba(255,255,255,0.03); }

.blog-hero-dash__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}

.blog-hero-dash__chart-sub {
  font-size: 0.85em;
  color: rgba(49, 79, 89, 0.55);
  font-weight: 600;
}

.blog-hero-dash__bars {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  flex: 1;
  align-items: flex-end;
  padding-top: 4px;
}

.blog-hero-dash__bar {
  background: var(--brand-70, rgb(82, 136, 152));
  border-radius: 3px 3px 0 0;
  height: var(--h);
  position: relative;
  opacity: 0.85;
}
.blog-hero-dash__bar.is-now {
  background: var(--brand-accent, rgb(184, 90, 58));
  opacity: 1;
}

.blog-hero-dash__bar-label {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(7px, 0.85vw, 9px);
  font-weight: 600;
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-dash__alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(212, 160, 23, 0.15);
  color: rgb(146, 88, 10);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 600;
}

.blog-hero-dash__alert-icon { font-weight: 700; }

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

@keyframes blog-dash-pulse {
  0%, 100%   { box-shadow: 0 0 0 0 rgba(0, 136, 60, 0.5); }
  50%        { box-shadow: 0 0 0 5px rgba(0, 136, 60, 0); }
}

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