/* Activity Page */

.page-header {
  padding: 1.5rem 0 0.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Week sections */
.activity-week {
  margin-bottom: 1.25rem;
}

.activity-week-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c7a89;
  padding: 0.4rem 0;
  border-bottom: 2px solid #e8ecef;
  margin-bottom: 0.5rem;
}

/* Category cards within a week */
.activity-category {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f2f5;
}

.activity-category:last-child {
  border-bottom: none;
}

.activity-cat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #fff;
  margin-top: 0.1rem;
}

.activity-cat-icon.cat-research { background: #e74c3c; }
.activity-cat-icon.cat-communication { background: #3498db; }
.activity-cat-icon.cat-interaction { background: #27ae60; }
.activity-cat-icon.cat-events { background: #f39c12; }
.activity-cat-icon.cat-assessment { background: #9b59b6; }

.activity-cat-body {
  flex: 1;
  min-width: 0;
}

.activity-cat-summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2332;
  line-height: 1.4;
}

.activity-cat-summary strong {
  font-weight: 700;
}

.activity-cat-meta {
  font-size: 0.75rem;
  color: #8896a4;
  margin-top: 0.15rem;
}

.activity-cat-link {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.activity-cat-link a {
  color: #3498db;
  text-decoration: none;
}

.activity-cat-link a:hover {
  text-decoration: underline;
}

/* Expandable detail list */
.activity-detail-toggle {
  font-size: 0.75rem;
  color: #3498db;
  cursor: pointer;
  margin-top: 0.25rem;
  user-select: none;
}

.activity-detail-toggle:hover {
  text-decoration: underline;
}

.activity-detail-list {
  display: none;
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.activity-detail-list.expanded {
  display: block;
}

.activity-detail-list li {
  font-size: 0.8rem;
  color: #4a5568;
  padding: 0.15rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid #e8ecef;
}

/* Timeline connector line (left side) */
.activity-timeline-line {
  position: relative;
  padding-left: 1rem;
}

.activity-timeline-line::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: #e8ecef;
}

.activity-category {
  position: relative;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: #6c7a89;
}
