/* activity.css — the Activity view: unified timeline */

.activity-layout {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 24px;
    height: calc(100dvh - 50px);
    overflow-y: auto;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.activity-header h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* --- Filters --- */
.activity-filters {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.activity-filter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.activity-filter:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}
.activity-filter.active {
    background: rgba(0,200,255,0.12);
    color: var(--cyan);
}

/* --- Timeline --- */
.timeline {
    position: relative;
}

.timeline-date {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    padding: 16px 0 8px 44px;
}
.timeline-date:first-child {
    padding-top: 0;
}

/* --- Event --- */
.timeline-event {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.1s;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}
.timeline-event:hover {
    background: rgba(255,255,255,0.015);
}

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.event-icon svg { stroke-width: 1.8; }

.source-vault .event-icon {
    background: rgba(0,200,255,0.1);
    color: var(--cyan);
}
.source-pm .event-icon {
    background: rgba(120,80,255,0.1);
    color: var(--violet);
}
.source-syndex .event-icon {
    background: rgba(0,255,180,0.1);
    color: var(--mint);
}

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

.event-headline {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 3px;
}
.event-actor {
    font-weight: 600;
    color: var(--text);
}
.event-action {
    color: var(--text-muted);
}
.event-target {
    font-weight: 500;
    color: var(--text);
}

.event-detail {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.event-source-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
}
.badge-vault {
    background: rgba(0,200,255,0.1);
    color: var(--cyan);
}
.badge-pm {
    background: rgba(120,80,255,0.1);
    color: var(--violet);
}
.badge-syndex {
    background: rgba(0,255,180,0.1);
    color: var(--mint);
}

.event-compartment {
    color: var(--text-dim);
    padding: 1px 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
}

.event-time {
    color: var(--text-dim);
    margin-left: auto;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .activity-layout { padding: 16px 12px; }
    .activity-header { flex-direction: column; align-items: flex-start; }
    .event-detail { font-size: 11px; }
}
