/* Activity page — legal pad with gem-colored entries */

.activity-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.activity-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 32px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
}

/* ── Progress stats — compact row ── */
.activity-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gem-topaz);
    flex-wrap: wrap;
}

.activity-stat {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--secondary-text);
    text-transform: lowercase;
}

.activity-stat strong {
    font-weight: 600;
}

.stat-total strong { color: var(--primary-text); }
.stat-nietzsche strong { color: var(--gem-emerald); }
.stat-understood strong { color: var(--gem-sapphire); }
.stat-read strong { color: var(--gem-topaz); }
.stat-again strong { color: var(--gem-ruby); }

/* ── Legal pad ── */
.activity-pad {
    --activity-margin: 80px;
    position: relative;
    padding-left: calc(var(--activity-margin) + 20px);
    background-image: repeating-linear-gradient(
        transparent,
        transparent calc(var(--legal-pad-line-height) - 1px),
        var(--border-subtle) calc(var(--legal-pad-line-height) - 1px),
        var(--border-subtle) var(--legal-pad-line-height)
    );
    background-attachment: local;
}

/* Red margin line */
.activity-pad::before {
    content: '';
    position: absolute;
    left: var(--activity-margin);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--margin-line-red);
    opacity: 0.4;
}

/* ── Each activity line — one ruled line on the pad ── */
.activity-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    height: var(--legal-pad-line-height);
    line-height: var(--legal-pad-line-height);
    padding: 0 8px;
    position: relative;
    border-radius: 0;
    transition: background 0.12s;
}

.activity-line:hover {
    background: var(--surface-subtle);
}

/* Date — left of margin */
.activity-date {
    position: absolute;
    right: calc(100% + 24px);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--secondary-text);
    white-space: nowrap;
    text-align: right;
    width: calc(var(--activity-margin) - 12px);
    line-height: var(--legal-pad-line-height);
}

/* Action text — gem colored by type */
.activity-action {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: var(--legal-pad-line-height);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.activity-search .activity-action { color: var(--gem-sapphire); }
.activity-passage .activity-action { color: var(--gem-sapphire); }
.activity-essay .activity-action { color: var(--gem-emerald); }
.activity-summary .activity-action { color: var(--gem-topaz); }
.activity-scored .activity-action { color: var(--gem-ruby); }

.activity-action:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Delete button — appears on hover */
.activity-delete {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s, color 0.12s;
    padding: 0 4px;
    font-family: var(--font-mono);
    line-height: 1;
}

.activity-line:hover .activity-delete {
    opacity: 0.4;
}

.activity-delete:hover {
    opacity: 1;
    color: var(--gem-ruby);
}

/* ── Empty & loading states ── */
.activity-empty,
.activity-loading {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--secondary-text);
    padding: 48px 0;
    text-align: center;
    font-style: italic;
}

.activity-error {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gem-ruby);
    padding: 16px 0;
    text-align: center;
}
