/* Premium Timeline Styles */
.premium-timeline {
    margin-top: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.timeline-header h3 {
    color: #1a365d;
    font-size: 1.5em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.timeline-header p {
    color: #64748b;
    font-size: 1em;
    margin: 0;
}

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

.timeline-milestone {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-milestone:last-child {
    margin-bottom: 0;
}

.milestone-connector {
    position: absolute;
    left: 39px;
    top: 60px;
    width: 3px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 2px;
}

.milestone-connector.last {
    display: none;
}

.milestone-marker {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
}

.marker-outer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.marker-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
}

.timeline-milestone.completed .marker-outer {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.timeline-milestone.completed .marker-inner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.timeline-milestone.current .marker-outer {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    animation: pulse 2s infinite;
}

.timeline-milestone.current .marker-inner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 10px rgba(59, 130, 246, 0.1); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(59, 130, 246, 0.4); }
}

.milestone-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    flex: 1;
    transition: all 0.3s ease;
}

.milestone-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.milestone-title {
    color: #1a365d;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.milestone-date {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.milestone-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 12px;
    font-weight: 500;
}

.milestone-location i {
    color: #3b82f6;
}

.milestone-description {
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.timeline-milestone.completed .milestone-connector {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.timeline-milestone.current .milestone-connector {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #e2e8f0 50%, #cbd5e0 100%);
}

/* Dark theme support for premium timeline */
body.dark-theme .premium-timeline {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #4b5563;
}

body.dark-theme .timeline-header {
    border-bottom-color: #4b5563;
}

body.dark-theme .timeline-header h3 {
    color: white !important;
}

body.dark-theme .timeline-header p {
    color: #d1d5db !important;
}

body.dark-theme .milestone-content {
    background: #374151;
    border-color: #4b5563;
}

body.dark-theme .milestone-title {
    color: white !important;
}

body.dark-theme .milestone-location {
    color: #d1d5db !important;
}

body.dark-theme .milestone-description {
    color: #d1d5db !important;
}

body.dark-theme .milestone-date {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #e5e7eb !important;
}

/* Mobile responsiveness for premium timeline */
@media (max-width: 768px) {
    .timeline-milestone {
        padding-left: 60px;
    }

    .milestone-marker {
        left: 10px;
    }

    .milestone-connector {
        left: 29px;
    }

    .milestone-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .milestone-date {
        align-self: flex-start;
    }

    .premium-timeline {
        padding: 20px;
    }
}
