/* Schedule Timeline - 13 Week Journey */

.schedule-container {
    padding: 20px;
    padding-top: calc(env(safe-area-inset-top) + 20px);
    min-height: calc(100vh - 50px - env(safe-area-inset-bottom));
}

.schedule-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 20px 0 30px 0;
}

.week-indicator {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

/* Timeline Container */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 40px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInSlide 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.3s; }
.timeline-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-item:nth-child(8) { animation-delay: 0.4s; }
.timeline-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-item:nth-child(10) { animation-delay: 0.5s; }
.timeline-item:nth-child(11) { animation-delay: 0.55s; }
.timeline-item:nth-child(12) { animation-delay: 0.6s; }
.timeline-item:nth-child(13) { animation-delay: 0.65s; }

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

/* Timeline Connector Line */
.timeline-connector {
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    );
}

.timeline-item:first-child .timeline-connector {
    top: 50%;
}

.timeline-item:last-child .timeline-connector {
    bottom: 50%;
}

/* Timeline Content */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    width: 100%;
}

/* Week Number Circle */
.timeline-week {
    position: absolute;
    left: -32px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.week-number {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Timeline Info */
.timeline-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--domain-color, rgba(255, 255, 255, 0.2));
}

.timeline-focus {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px 0;
}

.timeline-domain {
    font-size: 12px;
    color: var(--domain-color, rgba(255, 255, 255, 0.5));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active Week */
.timeline-item.active .timeline-week {
    width: 32px;
    height: 32px;
    background: var(--domain-color);
    border-color: var(--domain-color);
    box-shadow: 0 0 20px color-mix(in srgb, var(--domain-color) 40%, transparent);
}

.timeline-item.active .week-number {
    color: rgba(26, 26, 46, 0.9);
    font-size: 14px;
}

.timeline-item.active .timeline-info {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--domain-color) 10%, transparent),
        color-mix(in srgb, var(--domain-color) 3%, transparent)
    );
    border-color: color-mix(in srgb, var(--domain-color) 30%, transparent);
}

.timeline-item.active .timeline-focus {
    color: rgba(255, 255, 255, 1);
}

/* Past Weeks */
.timeline-item.past .timeline-week {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-item.past .week-number {
    color: rgba(255, 255, 255, 0.8);
}

.timeline-item.past .timeline-info {
    opacity: 0.6;
}

/* Special Week 13 */
.timeline-item.special .special-week {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbbf24, #a78bfa);
    border: none;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.timeline-item.special .week-number {
    color: rgba(26, 26, 46, 1);
    font-size: 16px;
    font-weight: 700;
}

.timeline-item.special .timeline-info {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.1),
        rgba(167, 139, 250, 0.1)
    );
    border-left-color: #fbbf24;
}

/* Hover Effects */
.timeline-item:hover .timeline-info {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

/* Mobile Adjustments */
@media (max-width: 375px) {
    .timeline-container {
        padding-left: 30px;
    }
    
    .timeline-week {
        left: -27px;
        width: 22px;
        height: 22px;
    }
    
    .timeline-focus {
        font-size: 14px;
    }
}

/* Larger screens */
@media (min-width: 768px) {
    .timeline-container {
        max-width: 600px;
        margin: 0 auto;
    }
}