/**
 * SCRIBONAUTES — Fil d'activité
 * pages/activity.css
 */

/* ============================================================
   FILTRES PAR TYPE
   ============================================================ */
.activity-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 32px;
}

.activity-filter-pill {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  text-decoration: none;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.activity-filter-pill:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-light);
}

.activity-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   FIL D'ÉVÉNEMENTS
   ============================================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.activity-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans-fast);
}

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

.activity-event:hover {
  background: var(--bg);
}

/* Accent couleur par type */
.activity-event--chapter  { border-left: 3px solid var(--green); }
.activity-event--comment  { border-left: 3px solid #3b82f6; }
.activity-event--annotation { border-left: 3px solid #f59e0b; }

/* Icône */
.activity-event-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 1px;
}

/* Corps */
.activity-event-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.activity-event-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.activity-event-actor {
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.activity-event-actor:hover {
  text-decoration: underline;
}

.activity-event-verb {
  color: var(--text-muted);
}

.activity-event-object {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.activity-event-object:hover {
  color: var(--accent);
  text-decoration: underline;
}

.activity-event-meta {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.activity-event-work {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.activity-event-work:hover {
  text-decoration: underline;
}

.activity-event-time {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Extrait */
.activity-event-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-event-quote {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  margin-right: 6px;
}

/* CTA */
.activity-event-cta {
  flex-shrink: 0;
  align-self: center;
}

.activity-cta-btn {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--trans-fast);
  background: var(--bg);
}

.activity-cta-btn:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 48px;
}

.activity-page-btn {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 6px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  transition: all var(--trans-fast);
}

.activity-page-btn:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
  color: var(--accent);
}

.activity-page-info {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .activity-event {
    padding: 12px 14px;
    gap: 10px;
  }

  .activity-event-time {
    display: none;
  }

  .activity-event-cta {
    display: none;
  }
}
