/* Timeline Calendar Component */
.timeline-calendar {
    margin: 6rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(106, 169, 245, 0.05) 0%, rgba(86, 27, 97, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(106, 169, 245, 0.1);
    position: relative;
    overflow: hidden;
}

.timeline-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6aa9f5 0%, #561b61 100%);
}

.timeline-header {
    text-align: left;
    margin-bottom: 2rem;
}

.timeline-header h2 {
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.timeline-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.timeline-container {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.timeline-container::-webkit-scrollbar {
    width: 4px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(106, 169, 245, 0.1);
    border-radius: 2px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(106, 169, 245, 0.3);
    border-radius: 2px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 169, 245, 0.5);
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6aa9f5 0%, #561b61 100%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }
.timeline-item:nth-child(6) { animation-delay: 0.0s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    position: absolute;
    left: -4rem;
    top: 0.75rem;
    width: 12px;
    height: 12px;
    background: #6aa9f5;
    border: 3px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(106, 169, 245, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: #561b61;
    box-shadow: 0 4px 12px rgba(86, 27, 97, 0.4);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 169, 245, 0.15);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(106, 169, 245, 0.1) 0%, rgba(86, 27, 97, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.timeline-content:hover::before {
    width: 100%;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 169, 245, 0.15);
    border-color: rgba(106, 169, 245, 0.3);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.timeline-date .material-symbols-outlined {
    font-size: 16px;
    color: #6aa9f5;
}

.timeline-title {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.timeline-speaker {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.timeline-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.timeline-category .material-symbols-outlined {
    font-size: 12px;
}

.timeline-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.timeline-empty .material-symbols-outlined {
    font-size: 3rem;
    color: rgba(106, 169, 245, 0.3);
    margin-bottom: 1rem;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .timeline-content {
        background: rgba(20, 20, 20, 0.8);
        border-color: rgba(106, 169, 245, 0.2);
    }
    
    .timeline-content:hover {
        border-color: rgba(106, 169, 245, 0.4);
    }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .timeline-calendar {
        margin: 4rem 0 2rem 0;
        padding: 1.5rem 1rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .timeline-dot {
        left: -3rem;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    .timeline-line {
        left: 1.5rem;
    }
    
    .timeline-content {
        padding: 0.875rem 1rem;
    }
    
    .timeline-title {
        font-size: 0.9rem;
    }
    
    .timeline-speaker {
        font-size: 0.8rem;
    }
}
