/* Timeline Component Styles */

/* === TIMELINE SECTION === */
.project-timeline {
    background: #202220; /* Fallback for --bg-secondary */
    background: var(--bg-secondary, #202220);
    position: relative;
    overflow: hidden;
    min-height: 200px; /* Ensure section is visible */
}

.project-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(154, 127, 184, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-wrapper {
    position: relative;
    z-index: 2;
}

/* === TIMELINE STRUCTURE === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0; /* Fallback for --space-8 */
    padding: var(--space-8, 2rem) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--aerraflow-primary) 10%,
        var(--aerraflow-primary) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--aerraflow-glow);
}

/* === TIMELINE ITEMS === */
.timeline-item {
    position: relative;
    margin-bottom: 3rem; /* Fallback for --space-12 */
    margin-bottom: var(--space-12, 3rem);
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Fallback for --space-6 */
    gap: var(--space-6, 1.5rem);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

/* Project timeline specific styling */
.project-timeline-item {
    /* Additional styles for project timeline items if needed */
}

/* Timeline item status variants */
.timeline-item.completed .timeline-marker .marker-icon {
    background: linear-gradient(135deg, var(--success) 0%, rgba(74, 153, 96, 0.8) 100%);
}

.timeline-item.current .timeline-marker .marker-icon {
    background: var(--gradient-aerraflow);
    box-shadow: 
        0 0 25px var(--aerraflow-glow),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-item.planned .timeline-marker .marker-icon {
    background: var(--gradient-magic);
}

.timeline-item.future .timeline-marker .marker-icon {
    background: linear-gradient(135deg, var(--magic-blue) 0%, rgba(90, 143, 184, 0.8) 100%);
}

/* === TIMELINE MARKERS === */
.timeline-marker {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.marker-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-aerraflow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--text-primary);
    box-shadow: 
        0 0 20px var(--aerraflow-glow),
        0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--bg-primary);
    transition: all var(--transition-base);
}

.timeline-item:hover .marker-icon {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px var(--aerraflow-glow),
        0 6px 20px rgba(0, 0, 0, 0.4);
}

/* === TIMELINE CONTENT === */
.timeline-content {
    flex: 1;
    background: rgba(26, 27, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 252, 247, 0.12); /* Fallback for --border-muted */
    border-radius: 0.75rem; /* Fallback for --radius-xl */
    padding: 1.5rem; /* Fallback for --space-6 */
    position: relative;
    overflow: hidden;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1); /* Fallback for --transition-base */
}

/* Use CSS variables when available */
.timeline-content {
    border: 1px solid var(--border-muted, rgba(253, 252, 247, 0.12));
    border-radius: var(--radius-xl, 0.75rem);
    padding: var(--space-6, 1.5rem);
    transition: all var(--transition-base, 250ms cubic-bezier(0.4, 0, 0.2, 1));
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.05) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* === TIMELINE HEADER === */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 2;
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-transform: lowercase;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-base);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* === STATUS VARIANTS === */
.timeline-status.completed {
    background: rgba(74, 153, 96, 0.2);
    color: var(--success);
    border: 1px solid rgba(74, 153, 96, 0.3);
}

.timeline-status.current {
    background: rgba(245, 158, 11, 0.2);
    color: var(--aerraflow-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-status.planned {
    background: rgba(154, 127, 184, 0.2);
    color: var(--magic-purple);
    border: 1px solid rgba(154, 127, 184, 0.3);
}

.timeline-status.future {
    background: rgba(90, 143, 184, 0.2);
    color: var(--magic-blue);
    border: 1px solid rgba(90, 143, 184, 0.3);
}

/* === TIMELINE DESCRIPTION === */
.timeline-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* === TIMELINE DATE === */
.timeline-date {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    margin-top: var(--space-2);
    opacity: 0.8;
}

/* === TIMELINE GLOW EFFECT === */
.timeline-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.timeline-item:hover .timeline-glow {
    opacity: 1;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    
    .marker-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
        position: relative;
        z-index: 10;
    }
    
    .timeline-content {
        padding: var(--space-4);
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .timeline-status {
        align-self: flex-start;
    }
    
    .timeline-title {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .timeline {
        padding: var(--space-4) 0;
    }
    
    .timeline-item {
        margin-bottom: var(--space-8);
    }
    
    .marker-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .timeline-content {
        padding: var(--space-3);
    }
} 