/* ============================================
   Research Activity — Living Research Platform
   Communicates continuous maintenance
   ============================================ */

/* ── Container ── */
.research-activity {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  max-width: 800px;
  margin: 1.5rem auto 0;
}

/* ── Header ── */
.research-activity__header {
  margin-bottom: 1.75rem;
}
.research-activity__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}
.research-activity__desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Status Bar ── */
.research-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(4, 120, 87, 0.03);
  border: 1px solid rgba(4, 120, 87, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.research-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-positive);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.research-status__text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-positive);
}
.research-status__sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ── Meta Row (version + next review) ── */
.research-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
}
.research-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.research-meta__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-subtle);
}
.research-meta__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ── Activity Timeline ── */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}
.activity-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-positive) 0%, var(--color-border) 100%);
  border-radius: 1px;
}

/* Individual entry */
.activity-entry {
  position: relative;
  padding-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.activity-entry:last-child { padding-bottom: 0; }
.activity-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Node */
.activity-entry__node {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-positive);
  display: flex; align-items: center; justify-content: center;
}
.activity-entry__node svg {
  width: 8px; height: 8px;
  stroke: var(--color-positive);
  stroke-width: 3; fill: none;
}
.activity-entry--upcoming .activity-entry__node {
  border-color: var(--color-border);
  border-style: dashed;
}
.activity-entry--upcoming .activity-entry__node svg {
  stroke: var(--color-text-subtle);
}

/* Content */
.activity-entry__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.1rem;
}
.activity-entry--upcoming .activity-entry__title {
  color: var(--color-text-muted);
}
.activity-entry__date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin-bottom: 0.2rem;
}
.activity-entry__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── What's Changed Card ── */
.research-changes {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}
.research-changes__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.research-changes__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.research-changes__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text);
  line-height: 1.4;
}
.research-changes__icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.research-changes__icon--green {
  background: rgba(4, 120, 87, 0.08);
}
.research-changes__icon--green svg {
  width: 9px; height: 9px;
  stroke: var(--color-positive); stroke-width: 3; fill: none;
}
.research-changes__icon--blue {
  background: rgba(29, 78, 216, 0.06);
}
.research-changes__icon--blue svg {
  width: 9px; height: 9px;
  stroke: var(--color-info); stroke-width: 3; fill: none;
}
.research-changes__icon--neutral {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.research-changes__icon--neutral svg {
  width: 8px; height: 8px;
  stroke: var(--color-text-subtle); stroke-width: 2.5; fill: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .research-activity { padding: 1.5rem; margin: 1rem 1rem 0; }
  .research-meta { gap: 1rem; }
  .activity-timeline { padding-left: 1.75rem; }
  .activity-entry__node { left: -1.75rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .activity-entry { opacity: 1; transform: none; transition: none; }
  .research-status__dot { animation: none; }
}
