/* Doom Scroll — color-coded mixed feed + podcast radio dock */

.doom-card-wrap { margin: 0; }

.doom-card {
  display: block;
  padding: 0.9rem 1rem;
  margin: 0 0 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--border, #e8e0d4);
  background: var(--card-bg, #fffdf9);
  text-decoration: none !important;
  color: var(--ink, #1a1a1a);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.doom-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.doom-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.doom-card h4 {
  font-family: var(--fh, var(--sans, system-ui, sans-serif));
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0 0 0.25rem;
  color: inherit;
}
.doom-card-teaser {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted, #6b6560);
  margin: 0.2rem 0 0;
}
.doom-card-cta {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--orange, #d4770a);
}
.doom-card-cat { color: var(--muted, #6b6560); font-weight: 500; }
.doom-card-dur { color: var(--muted, #6b6560); font-variant-numeric: tabular-nums; }

.doom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.doom-badge--ask { background: #dbeafe; color: #1d4ed8; }
.doom-badge--blog { background: #ffedd5; color: #c2410c; }
.doom-badge--glossary { background: #f3e8ff; color: #7e22ce; }
.doom-badge--podcast { background: #d1fae5; color: #047857; }
.doom-badge--book { background: #fef3c7; color: #b45309; }
.doom-badge--coaching { background: #fce7f3; color: #9d174d; }
.doom-badge--askbox { background: #dbeafe; color: #1d4ed8; }

.doom-card--ask { border-left: 4px solid #3b82f6; }
.doom-card--blog { border-left: 4px solid #f97316; }
.doom-card--glossary { border-left: 4px solid #a855f7; background: #faf5ff; }
.doom-card--podcast { border-left: 4px solid #10b981; background: #f0fdf9; }
.doom-card--podcast.is-playing {
  box-shadow: 0 0 0 2px #10b981, 0 6px 18px rgba(16,185,129,0.2);
}
.doom-card--book { border-left: 4px solid #eab308; background: linear-gradient(135deg, #fffbeb 0%, #fff 60%); }
.doom-card--es { border-left-color: #dc2626; }

/* 1:1 Coaching — warm, photo-forward, not a loud banner */
.doom-card--coaching {
  border: 1px solid #f3d4e0;
  border-left: 4px solid #db2777;
  background: linear-gradient(135deg, #fff7fb 0%, #fffdf9 55%, #faf8f5 100%);
}
.doom-card--coach-anne { border-left-color: #c026d3; }
.doom-card--coach-russell { border-left-color: #0e7490; }
.doom-card-coach-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  border: 2px solid #fff; background: #f5f5f5;
}
.doom-coach-name {
  font-size: 0.88rem; font-weight: 700; color: #1f2937;
  margin: 0.1rem 0 0; line-height: 1.3;
}
.doom-coach-role {
  font-size: 0.72rem; font-weight: 600; color: #9d174d;
  letter-spacing: 0.02em; margin-bottom: 0.35rem;
}
.doom-card--coach-russell .doom-coach-role { color: #0e7490; }
.doom-coach-creds {
  font-size: 0.72rem; color: #78716c; margin: 0.3rem 0 0; line-height: 1.35;
}
.doom-card--coaching .doom-card-cta { color: #9d174d; font-weight: 700; }
.doom-card--coach-russell .doom-card-cta { color: #0e7490; }

.doom-card-book-row { display: flex; gap: 0.85rem; align-items: flex-start; }
.doom-card-cover {
  width: 72px; height: auto; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); flex-shrink: 0; object-fit: cover; background: #f5f5f5;
}
.doom-card-pod-art {
  width: 64px; height: 64px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.doom-card-book-body { min-width: 0; flex: 1; }

/* Podcast actions */
.doom-pod-actions {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; align-items: center;
}
.doom-pod-play, .doom-pod-radio {
  border: none; border-radius: 999px; padding: 0.45rem 0.9rem;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.doom-pod-play {
  background: #047857; color: #fff;
}
.doom-pod-play.is-active, .doom-pod-play:hover { background: #065f46; }
.doom-pod-radio {
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.doom-pod-radio:hover { background: #d1fae5; }
.doom-pod-open {
  font-size: 0.78rem; font-weight: 600; color: #047857; text-decoration: none;
  margin-left: 0.15rem;
}
.doom-pod-open:hover { text-decoration: underline; }
.doom-pod-hint {
  margin: 0.45rem 0 0; font-size: 0.72rem; color: #6b7280; line-height: 1.35;
}

/*
 * Ask box — subtle, same card geometry as content.
 * Best practice: soft tint + left accent, NOT a full navy takeover.
 * Distinct enough to find; calm enough not to break scroll immersion.
 */
.doom-card--askbox {
  border: 1px solid #bfdbfe;
  border-left: 4px solid #60a5fa;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 100%);
  color: var(--ink, #1a1a1a);
  padding: 0.9rem 1rem;
  cursor: default;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.04);
}
.doom-card--askbox:hover {
  transform: none;
  border-color: #93c5fd;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
.doom-badge--askbox {
  background: #dbeafe;
  color: #1d4ed8;
  text-transform: uppercase;
}
.doom-askbox-title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.2rem;
  color: #1e3a5f;
  line-height: 1.4;
}
.doom-askbox-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}
.doom-askbox-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.doom-askbox-input {
  flex: 1 1 180px; min-width: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  outline: none;
}
.doom-askbox-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.doom-askbox-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 650;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}
.doom-askbox-btn:hover { background: #1d4ed8; }
.doom-askbox-btn:disabled { opacity: 0.75; cursor: wait; }
.doom-askbox-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.doom-askbox-status { margin-top: 0.5rem; font-size: 0.8rem; }
.doom-askbox-status--ok { color: #15803d; }
.doom-askbox-status--err { color: #b91c1c; }
.doom-askbox-status--wait { color: #64748b; }
.doom-askbox-status a { color: #2563eb; }

/* Sticky radio dock — stay on page while scrolling */
.doom-radio-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  pointer-events: none;
  padding: 0 12px 12px;
}
.doom-radio-dock.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.doom-radio-dock__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #064e3b;
  color: #ecfdf5;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
  border: 1px solid #059669;
}
.doom-radio-dock__art {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: #065f46;
}
.doom-radio-dock__meta { flex: 1; min-width: 0; }
.doom-radio-dock__label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.8;
}
.doom-radio-dock__title {
  font-size: 0.85rem; font-weight: 650; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.doom-radio-dock__bar {
  height: 3px; background: rgba(255,255,255,0.2); border-radius: 99px;
  margin-top: 0.35rem; overflow: hidden;
}
.doom-radio-dock__fill {
  height: 100%; width: 0%; background: #6ee7b7; transition: width 0.2s linear;
}
.doom-radio-dock__controls { display: flex; gap: 0.3rem; flex-shrink: 0; }
.doom-radio-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #10b981; color: #042f2e; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.doom-radio-btn:hover { background: #34d399; }
.doom-radio-btn--ghost {
  background: transparent; color: #a7f3d0; border: 1px solid rgba(167,243,208,0.4);
}
.doom-radio-btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* Leave room so last cards aren't under dock */
body:has(.doom-radio-dock.is-visible) {
  padding-bottom: 88px;
}

.phase3-doom-feed .doom-card { margin-bottom: 0.5rem; }

@media (max-width: 520px) {
  .doom-card-cover { width: 56px; }
  .doom-askbox-btn { width: 100%; }
  .doom-radio-dock__inner { padding: 0.55rem 0.65rem; }
  .doom-pod-actions { flex-direction: column; align-items: stretch; }
  .doom-pod-play, .doom-pod-radio { width: 100%; text-align: center; }
}
