/**
 * MOJO TimelineView styles
 *
 * Base layout for `.timeline-*` classes emitted by TimelineView and
 * TimelineViewItem, plus dark-theme overrides for surfaces that need
 * them under data-bs-theme="dark".
 */

.timeline-container {
    position: relative;
}

/* Vertical connector line behind the markers */
.timeline {
    position: relative;
    padding: 0.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.85rem;
    width: 2px;
    background: var(--bs-border-color);
}

.timeline-container.timeline-center .timeline::before {
    left: 50%;
    transform: translateX(-1px);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 0.5rem 0 1rem;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-border-color);
    color: #fff;
    z-index: 1;
}

.timeline-marker i {
    font-size: 0.9rem;
}

.timeline-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.timeline-date {
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
}

.timeline-card {
    background: var(--bs-card-bg, var(--bs-body-bg));
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
}

.timeline-title {
    color: var(--bs-body-color);
}

.timeline-description {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.timeline-meta {
    color: var(--bs-secondary-color);
}

/* Dark-theme overrides — also re-skin a few surfaces that the legacy
   Jobs Admin block in portal.css paints with hardcoded light hex values
   (#f8f9fa / #dee2e6) so timelines render correctly under dark mode
   without touching the existing Jobs Admin look. */
[data-bs-theme="dark"] .timeline::before {
    background: var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] .timeline-marker {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] .timeline-content {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color-translucent);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .timeline-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color-translucent);
}
