/* ===== TIMELINE PESSOAL ===== */

.timeline-main {
    max-width: 640px;
    margin: 80px auto 40px;
    padding: 0 16px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 20px;
}

.timeline-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #06b6d4, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-header h1 i { -webkit-text-fill-color: #06b6d4; }

.timeline-header p {
    color: rgba(255,255,255,0.45);
    margin: 0;
    font-size: 0.9rem;
}

/* Year filter */
.timeline-year-filter {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tl-year-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    color: #aaa;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tl-year-btn.active {
    background: linear-gradient(135deg, #06b6d4, #6c5ce7);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

/* Stats */
.timeline-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.tl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}

.tl-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #06b6d4;
}

.tl-stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline line */
.tl-line {
    position: relative;
    padding-left: 20px;
}

.tl-line::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #06b6d4, #6c5ce7, rgba(108,92,231,0.1));
}

/* Month group */
.tl-month {
    margin-bottom: 28px;
}

.tl-month-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
}

.tl-month-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #6c5ce7);
    position: absolute;
    left: -20px;
    box-shadow: 0 0 10px rgba(6,182,212,0.4);
}

.tl-month-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.tl-month-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 8px;
}

/* Items */
.tl-month-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tl-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}

.tl-item-date {
    width: 28px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.tl-item-connector {
    position: absolute;
    left: -20px;
    width: 14px;
    height: 2px;
    background: rgba(108,92,231,0.2);
}

.tl-item-poster {
    width: 42px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.tl-item-poster-ph {
    width: 42px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tl-item-info {
    flex: 1;
    min-width: 0;
    position: relative;
}

.tl-item-type-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.tl-item-titulo {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 28px;
}

.tl-item-rating {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
}

.tl-item-review {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.3);
    margin: 4px 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading & Empty */
.timeline-loading, .timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
    gap: 12px;
    text-align: center;
}

.timeline-loading i, .timeline-empty i {
    font-size: 2.5rem;
    color: #06b6d4;
}

.timeline-empty h2 { color: #fff; margin: 0; }

/* Responsive */
@media (max-width: 480px) {
    .timeline-main { margin-top: 70px; padding: 0 10px; }
    .tl-item { padding: 8px 10px; gap: 8px; }
    .tl-item-poster { width: 36px; height: 52px; }
    .tl-item-titulo { font-size: 0.82rem; }
}

/* Light theme: surfaces, content and interaction states. */
:is(html.light-theme-early, body.light-theme) .timeline-header p,
:is(html.light-theme-early, body.light-theme) .tl-stat-label,
:is(html.light-theme-early, body.light-theme) .tl-month-count,
:is(html.light-theme-early, body.light-theme) .tl-item-date,
:is(html.light-theme-early, body.light-theme) .tl-item-review,
:is(html.light-theme-early, body.light-theme) .timeline-loading,
:is(html.light-theme-early, body.light-theme) .timeline-empty {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .tl-month-header h3,
:is(html.light-theme-early, body.light-theme) .tl-item-titulo,
:is(html.light-theme-early, body.light-theme) .timeline-empty h2 {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .tl-year-btn,
:is(html.light-theme-early, body.light-theme) .tl-stat,
:is(html.light-theme-early, body.light-theme) .tl-item {
    background: var(--surface, #fff); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .tl-year-btn {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .tl-year-btn:hover,
:is(html.light-theme-early, body.light-theme) .tl-item:hover {
    background: #edeaf5; border-color: rgba(109, 40, 217, .22);
}

:is(html.light-theme-early, body.light-theme) .tl-year-btn.active {
    background: linear-gradient(135deg, #0e7490, #6d28d9); border-color: transparent; color: #fff;
}

:is(html.light-theme-early, body.light-theme) .tl-month-count {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .tl-stat-num {
    color: #0e7490;
}

:is(html.light-theme-early, body.light-theme) .timeline-header h1 { background-image: linear-gradient(135deg, #0e7490, #6d28d9); }
:is(html.light-theme-early, body.light-theme) .timeline-header h1 i { -webkit-text-fill-color: #0e7490; }

:is(html.light-theme-early, body.light-theme) .timeline-loading i,
:is(html.light-theme-early, body.light-theme) .timeline-empty i { color: #0e7490; }
