/**
 * Timeline Module Styles
 */

/* MARK: Content Container */

.timeline-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* MARK: Hero Cell */

.timeline-hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary, #8e8e93);
    font-size: 24px;
}

/* MARK: Cell Styles */

.timeline-cell {
    position: relative;
    background: var(--color-bg-tertiary, #1a1a1c);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.timeline-cell-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.timeline-cell.loaded .timeline-cell-image {
    opacity: 1;
}

/* Disable fade animation during real-time updates to prevent flash */
.is-updating .timeline-cell-image {
    transition: none !important;
    opacity: 1 !important;
}

.timeline-cell.error {
    background: var(--color-bg-secondary, #242426);
}

.timeline-cell.placeholder {
    /* No animation - static placeholder */
}

/* MARK: Video Badge */

.timeline-cell-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    pointer-events: none;
}

/* MARK: Section Header */

.timeline-section-title {
    padding: 16px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary, #8e8e93);
    letter-spacing: 0.02em;
}

/* MARK: Empty State */

.timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 48px 24px;
    text-align: center;
}

.timeline-empty-icon {
    font-size: 48px;
    color: var(--color-text-tertiary, #636366);
    margin-bottom: 16px;
}

.timeline-empty-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary, #fff);
    margin-bottom: 8px;
}

.timeline-empty-text {
    font-size: 14px;
    color: var(--color-text-secondary, #8e8e93);
}

/* MARK: Processing Status Pill */

.processing-status {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.processing-status[hidden] {
    display: flex;
    opacity: 0;
}

.processing-status-content {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    background: var(--color-bg-surface, #1a1a1e);
    border: 1px solid var(--color-border, #2a2a2e);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: var(--font-size-sm, 0.85em);
    color: var(--color-text-secondary, #a0a0a4);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.processing-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-text-disabled, #6a6a6e);
    border-top-color: var(--color-accent, #3CB371);
    border-radius: 50%;
    animation: processing-spin 0.8s linear infinite;
}

.processing-text {
    white-space: nowrap;
}

@keyframes processing-spin {
    to { transform: rotate(360deg); }
}
