/* ============================================================
   Herald / Le Heraut — Visual Identity & UX
   Broadcast signal: decision architecture layer, not a mascot.
   "The Herald surfaces what matters right now."
   ============================================================ */

/* ── Herald brand color ─────────────────────────────────────── */
:root {
  --herald-color: #ff3b30;
  --herald-color-soft: rgba(255, 59, 48, 0.08);
  --herald-color-border: rgba(255, 59, 48, 0.6);
}

/* ── Broadcast signal icon ──────────────────────────────────── */
.herald-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--herald-color);
}

/* Ring pulse animations — slow + soft, NOT ad-like */
@keyframes herald-pulse-inner {
  0%   { transform: scale(1);    opacity: 0.6; }
  70%  { transform: scale(1.2);  opacity: 0.15; }
  100% { transform: scale(1);    opacity: 0; }
}

@keyframes herald-pulse-outer {
  0%   { transform: scale(1);    opacity: 0.3; }
  70%  { transform: scale(1.35); opacity: 0.05; }
  100% { transform: scale(1);    opacity: 0; }
}

.herald-icon .herald-ring-inner {
  transform-origin: center;
  animation: herald-pulse-inner 2s infinite ease-out;
}

.herald-icon .herald-ring-outer {
  transform-origin: center;
  animation: herald-pulse-outer 2s infinite ease-out;
  animation-delay: 0.2s;
}

/* Disable animation in scrolling lists / reduced-motion */
.no-motion .herald-icon .herald-ring-inner,
.no-motion .herald-icon .herald-ring-outer,
@media (prefers-reduced-motion: reduce) {
  .herald-icon .herald-ring-inner,
  .herald-icon .herald-ring-outer {
    animation: none;
  }
}

/* ── "Le Heraut recommande" badge ───────────────────────────── */
.herald-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--herald-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.herald-badge svg {
  width: 14px;
  height: 14px;
}

/* ── hp-badge variant for card badge row ────────────────────── */
.hp-badge-herald {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--herald-color);
  border: none;
}

.hp-badge-herald svg {
  width: 11px;
  height: 11px;
}

/* ── Card variant — Tier 1 STRONG (Herald pick) ─────────────── */
.card-herald {
  border-left: 3px solid var(--herald-color) !important;
  background: var(--herald-color-soft) !important;
  transform: scale(1.02);
  box-shadow: 0 0 0 1px var(--herald-color-border), 0 8px 32px rgba(255, 59, 48, 0.15) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── Herald Hero Slot — "À faire maintenant" ────────────────── */
.herald-hero-slot {
  margin: 0 0 24px 0;
  padding: 0;
}

.herald-hero-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.herald-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--herald-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.herald-hero-label svg {
  width: 18px;
  height: 18px;
}

/* ── Herald dominant card ───────────────────────────────────── */
.hp-card-herald {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary, #1a1a2e);
  border-left: 4px solid var(--herald-color);
  box-shadow: 0 0 0 1px var(--herald-color-border), 0 12px 40px rgba(255, 59, 48, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.hp-card-herald:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--herald-color-border), 0 20px 50px rgba(255, 59, 48, 0.25);
}

.hp-card-herald .hp-card-herald-cover {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 59, 48, 0.08);
  flex-shrink: 0;
}

.hp-card-herald .hp-card-herald-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 59, 48, 0.04);
}

.hp-card-herald .hp-card-herald-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-card-herald .hp-card-herald-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--text-primary, #fff);
}

.hp-card-herald .hp-card-herald-meta {
  font-size: 13px;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-card-herald .hp-card-herald-footer {
  margin-top: auto;
}

/* Desktop: side-by-side cover + body */
@media (min-width: 600px) {
  .hp-card-herald {
    flex-direction: row;
    min-height: 180px;
  }

  .hp-card-herald .hp-card-herald-cover {
    width: 260px;
    height: auto;
    min-height: 180px;
    flex-shrink: 0;
  }

  .hp-card-herald .hp-card-herald-title {
    font-size: 22px;
  }
}

/* ── Herald empty state ─────────────────────────────────────── */
.herald-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed var(--herald-color-border);
  color: var(--herald-color);
  font-size: 13px;
  opacity: 0.7;
}

/* ── Social proof improvements ──────────────────────────────── */
.hp-here-now {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--herald-color);
  background: var(--herald-color-soft);
  border-radius: 6px;
  padding: 2px 7px;
}

.hp-trending-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ff9f0a;
}
