/* Timeline Page Specific Styles */

.timeline-page-header {
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
    text-align: center;
}

.timeline-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.timeline-page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.timeline-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-interactive-section {
    padding: 3rem 2rem 6rem;
    background: var(--bg-secondary);
    position: relative;
}

.timeline-instruction {
    text-align: center;
    color: var(--timeline-blue);
    font-weight: 600;
    margin-bottom: 5.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 5;
}

/* Make milestone dots clickable */
.timeline-milestone {
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-milestone:hover .milestone-dot {
    transform: scale(1.2);
}

.timeline-milestone.selected .milestone-dot {
    transform: scale(1.3);
    box-shadow: 0 0 25px currentColor !important;
}

/* Milestone Details Section */
.milestone-details-section {
    padding: 3rem 2rem;
    background: var(--bg-primary);
    min-height: 400px;
}

.details-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.details-content {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.details-content.slide-in {
    animation: slideIn 0.5s ease;
}

.details-content.slide-out {
    animation: slideOut 0.4s ease;
}

.details-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.2s;
    z-index: 10;
}

.details-close:hover {
    border-color: var(--timeline-blue);
    background: rgba(0, 212, 255, 0.2);
    color: var(--timeline-blue);
    transform: rotate(90deg);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.details-title .target-date {
    color: var(--timeline-blue);
    font-weight: 600;
    font-size: 1rem;
}

.details-progress {
    text-align: right;
}

.progress-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--timeline-seafoam);
    line-height: 1;
}

.progress-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.details-description {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 4px solid var(--timeline-blue);
}

.details-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sub-milestones */
.sub-milestones {
    margin-top: 2rem;
}

.sub-milestones h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.sub-milestone-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.2s;
}

.sub-milestone-item:hover {
    border-color: var(--timeline-blue);
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
}

.sub-milestone-status {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.sub-milestone-status.completed {
    background: var(--timeline-seafoam);
    color: var(--bg-primary);
}

.sub-milestone-status.in-progress {
    background: var(--timeline-blue);
    color: var(--bg-primary);
}

.sub-milestone-status.upcoming {
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--text-secondary);
}

.sub-milestone-info {
    flex-grow: 1;
}

.sub-milestone-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sub-milestone-info .sub-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sub-milestone-info .sub-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sub-milestone-progress {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

.sub-progress-bar {
    width: 80px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sub-progress-fill {
    height: 100%;
    background: var(--timeline-gradient);
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.sub-progress-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--timeline-seafoam);
}

@media (max-width: 768px) {
    .details-header {
        flex-direction: column;
    }
    
    .details-progress {
        text-align: left;
    }
    
    .sub-milestone-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sub-milestone-progress {
        width: 100%;
    }
    
    .sub-progress-bar {
        width: 100%;
    }
}
