/*
 * ETERNITUM - Timeline Component
 * Elegant timeline for life milestones
 */

/* ========== TIMELINE CONTAINER ========== */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #D4AF37 10%, #D4AF37 90%, transparent);
}

/* ========== TIMELINE ITEM ========== */
.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 10px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
}

.timeline-date {
    font-size: 0.75rem;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.timeline-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ========== TIMELINE FORM ========== */
.timeline-add-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.timeline-icon-select {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-icon-option {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.timeline-icon-option:hover {
    border-color: #D4AF37;
}

.timeline-icon-option.selected {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.timeline-icon-option input {
    display: none;
}

/* ========== EMPTY STATE ========== */
.timeline-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.timeline-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-icon {
        left: 0;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}