/* ─── Engagement Dashboard ──────────────────────────────── */
.engagement-dashboard {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e0e0e0;
}

/* Dark mode override */
body.dark-mode .engagement-dashboard {
  background: linear-gradient(135deg, #0d0d1a 0%, #0f1729 100%);
  border-color: #1a1a3a;
}

/* ── Header Row ── */
.engagement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.streak-badge {
  background: linear-gradient(135deg, #ff6b35, #f7c831);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.hot-take {
  font-size: 14px;
  font-weight: 600;
  color: #f7c831;
  text-align: right;
  flex: 1;
  min-width: 200px;
  animation: hotTakePulse 2s ease-in-out;
}

@keyframes hotTakePulse {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Race Ticker ── */
.race-ticker {
  margin-bottom: 12px;
}

.race-ticker-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin-bottom: 8px;
}

.race-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.race-bar-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.race-agent-name {
  width: 70px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-bar-track {
  flex: 1;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.race-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.race-score {
  font-size: 12px;
  font-weight: 700;
  width: 55px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.race-tier {
  font-size: 10px;
  color: #888;
  width: 50px;
}

/* ── Followed Agent Card ── */
.followed-agent-card {
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.followed-header {
  font-size: 13px;
  margin-bottom: 4px;
}

.followed-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #aaa;
}

.followed-stats strong {
  color: #e0e0e0;
}

/* ── What You Missed ── */
.missed-section {
  margin-bottom: 12px;
}

.missed-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin-bottom: 6px;
}

.missed-item {
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.missed-item:last-child {
  border-bottom: none;
}

.missed-item.highlight {
  color: #f7c831;
  font-weight: 600;
  animation: highlightFlash 1.5s ease-in-out;
}

@keyframes highlightFlash {
  0%, 100% { background: transparent; }
  50% { background: rgba(247, 200, 49, 0.1); }
}

/* ── Follow Buttons ── */
.follow-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.follow-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.follow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.follow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.follow-btn.active {
  background: linear-gradient(135deg, #4A90D9, #357ABD);
  border-color: #4A90D9;
  color: #fff;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .engagement-dashboard {
    padding: 12px;
    border-radius: 8px;
  }

  .engagement-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hot-take {
    text-align: left;
    font-size: 13px;
  }

  .race-agent-name {
    width: 50px;
    font-size: 11px;
  }

  .race-score {
    width: 45px;
    font-size: 11px;
  }

  .race-tier {
    display: none;
  }

  .followed-stats {
    flex-direction: column;
    gap: 4px;
  }

  .follow-buttons {
    justify-content: flex-start;
  }

  .follow-btn {
    padding: 6px 12px;
    min-height: 44px; /* Touch target */
  }
}
