/* File: static/css/timeline.css */

.career-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.career-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
}

.career-title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.career-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 1;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-item:hover::after {
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.timeline-item.right .timeline-content {
    border-left: none;
    border-right: 5px solid var(--primary-color);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-team {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.timeline-note {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.timeline-note strong {
    color: var(--secondary-color);
}

.loading-spinner-container {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
    .career-title {
        font-size: 2rem;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 15px;
    }
}