/* wa-lint: skip */
/* Blog-hero: 5 tasks todo → done */

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

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

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

.blog-hero-tasks__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-tasks__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-tasks__total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 700;
}
.blog-hero-tasks__total--bad {
  background: rgba(239, 68, 68, 0.10);
  color: rgb(185, 28, 28);
}
.blog-hero-tasks__total--good {
  background: rgba(0, 136, 60, 0.12);
  color: var(--brand-success, rgb(0, 136, 60));
}

.blog-hero-tasks__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.blog-hero-tasks__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
}

.blog-hero-tasks__row--todo {
  background: rgba(49, 79, 89, 0.03);
  border-left: 3px solid rgba(239, 68, 68, 0.30);
  color: var(--text, rgb(29, 35, 39));
}
[data-theme="dark"] .blog-hero-tasks__row--todo { color: rgba(255,255,255,0.85); }

.blog-hero-tasks__row--done {
  background: rgba(0, 136, 60, 0.04);
  border-left: 3px solid var(--brand-success, rgb(0, 136, 60));
  color: var(--text, rgb(29, 35, 39));
}
[data-theme="dark"] .blog-hero-tasks__row--done { color: rgba(255,255,255,0.85); }

.blog-hero-tasks__check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(49, 79, 89, 0.25);
  display: inline-grid;
  place-items: center;
}

.blog-hero-tasks__check.is-done {
  background: var(--brand-success, rgb(0, 136, 60));
  border-color: var(--brand-success, rgb(0, 136, 60));
  color: rgb(255, 255, 255);
  font-size: 11px;
  font-weight: 700;
}

.blog-hero-tasks__row--done .blog-hero-tasks__text {
  text-decoration: line-through;
  text-decoration-color: rgba(0, 136, 60, 0.40);
  opacity: 0.85;
}

.blog-hero-tasks__meta {
  font-size: 0.9em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(49, 79, 89, 0.06);
  color: rgba(49, 79, 89, 0.65);
  white-space: nowrap;
}
.blog-hero-tasks__meta--auto {
  background: rgba(127, 190, 198, 0.20);
  color: var(--brand-50, rgb(49, 79, 89));
}
.blog-hero-tasks__meta--ai {
  background: rgba(184, 90, 58, 0.18);
  color: var(--brand-accent, rgb(184, 90, 58));
}
.blog-hero-tasks__meta--butler {
  background: rgba(82, 136, 152, 0.18);
  color: var(--brand-70, rgb(82, 136, 152));
}

@keyframes blog-tasks-slide {
  0%, 32%    { transform: translateX(0); }
  42%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

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