/* wa-lint: skip */
/* Blog-hero: Program (FOMO → Mit program).
   14s cycle, samme slide-arkitektur som standkort. */

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

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

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

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

.blog-hero-prog__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-prog__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 600;
  color: rgb(239, 68, 68);
}
.blog-hero-prog__live--control {
  color: var(--brand-success, rgb(0, 136, 60));
}

.blog-hero-prog__live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(239, 68, 68);
  animation: blog-prog-live-pulse 1.4s ease-in-out infinite;
}

.blog-hero-prog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.blog-hero-prog__col {
  display: flex;
  flex-direction: column;
  background: rgba(49, 79, 89, 0.025);
  border-radius: 8px;
  padding: 5px 5px 7px;
  min-height: 0;
}
[data-theme="dark"] .blog-hero-prog__col {
  background: rgba(255, 255, 255, 0.03);
}

.blog-hero-prog__col-head {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(8px, 1vw, 10px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(49, 79, 89, 0.55);
  padding: 1px 3px 5px;
}
[data-theme="dark"] .blog-hero-prog__col-head {
  color: rgba(255, 255, 255, 0.5);
}

.blog-hero-prog__col-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.blog-hero-prog__evt {
  position: relative;
  border-radius: 5px;
  padding: 4px 7px;
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(8px, 1vw, 10px);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.blog-hero-prog__evt b {
  font-weight: 700;
  font-size: 1em;
  color: var(--primary, rgb(49, 79, 89));
}
.blog-hero-prog__evt small {
  font-size: 0.85em;
  color: rgba(49, 79, 89, 0.55);
  font-variant-numeric: tabular-nums;
}

/* FOMO panel */
.blog-hero-prog__panel--fomo {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, transparent 30%);
}

.blog-hero-prog__evt--urgent {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
}
[data-theme="dark"] .blog-hero-prog__evt--urgent {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 68, 68, 0.40);
}
[data-theme="dark"] .blog-hero-prog__evt--urgent b {
  color: rgb(241, 245, 249);
}
[data-theme="dark"] .blog-hero-prog__evt--urgent small {
  color: rgba(255, 255, 255, 0.55);
}

.blog-hero-prog__badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(239, 68, 68, 0.10);
  color: rgb(220, 38, 38);
  align-self: flex-start;
  white-space: nowrap;
}
.blog-hero-prog__badge--live {
  background: rgb(239, 68, 68);
  color: rgb(255, 255, 255);
  animation: blog-prog-badge-pulse 1.4s ease-in-out infinite;
}
.blog-hero-prog__badge--miss {
  background: rgb(251, 146, 60);
  color: rgb(255, 255, 255);
}
.blog-hero-prog__badge--last {
  background: rgba(239, 68, 68, 0.18);
  color: rgb(185, 28, 28);
}

/* Control panel */
.blog-hero-prog__head--control {
  border-bottom-color: rgba(0, 136, 60, 0.18);
}

.blog-hero-prog__heart {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 0.95em;
  color: var(--brand-accent, rgb(184, 90, 58));
  line-height: 1;
}

/* Mit program — kronologisk række (Panel 2 ny version) */
.blog-hero-prog__mine {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-hero-prog__mine-item {
  display: grid;
  grid-template-columns: 56px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgb(255, 255, 255);
  border: 1.5px solid var(--brand-accent, rgb(184, 90, 58));
  box-shadow: 0 4px 12px -6px rgba(184, 90, 58, 0.30);
}
[data-theme="dark"] .blog-hero-prog__mine-item {
  background: rgba(255,255,255,0.06);
}

.blog-hero-prog__mine-time {
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 700;
  color: var(--brand-accent, rgb(184, 90, 58));
  font-variant-numeric: tabular-nums;
}

.blog-hero-prog__mine-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display, system-ui), sans-serif;
}

.blog-hero-prog__mine-body strong {
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 700;
  color: var(--primary, rgb(49, 79, 89));
}
[data-theme="dark"] .blog-hero-prog__mine-body strong { color: rgb(241, 245, 249); }

.blog-hero-prog__mine-body span {
  font-size: clamp(9px, 1.05vw, 11px);
  color: rgba(49, 79, 89, 0.55);
}

.blog-hero-prog__heart--static {
  position: static;
  font-size: 16px;
  color: var(--brand-accent, rgb(184, 90, 58));
  justify-self: end;
}

.blog-hero-prog__shared {
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(0, 136, 60, 0.08);
  font-family: var(--font-display, system-ui), sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 600;
  color: var(--brand-success, rgb(0, 136, 60));
  text-align: center;
}

/* Keyframes */
@keyframes blog-prog-slide {
  0%, 58%    { transform: translateX(0); }
  65%, 93%   { transform: translateX(-50%); }
  100%       { transform: translateX(0); }
}

@keyframes blog-prog-live-pulse {
  0%, 100%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50%        { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

@keyframes blog-prog-badge-pulse {
  0%, 100%   { opacity: 1; transform: scale(1); }
  50%        { opacity: 0.85; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-prog__slider { animation: none; transform: translateX(-50%); }
  .blog-hero-prog__live-dot,
  .blog-hero-prog__badge--live { animation: none; }
}
