/* ==========================================================================
   TIMELINE COMPONENT - DANIEL WOŹNIAK
   ========================================================================== */

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Central Timeline Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
        var(--accent-blue) 0%,
        rgba(0,122,204,0.5) 50%,
        var(--accent-blue) 100%);
    border-radius: 2px;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    margin: 3rem 0;
    position: relative;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Alternating Layout */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

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

/* Timeline Badge */
.timeline-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,122,204,0.3);
    margin: 0 2rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

/* Badge Colors */
.timeline-badge.orange { background: #ff9500; }
.timeline-badge.purple { background: #8b5cf6; }
.timeline-badge.yellow { background: #fbbf24; }
.timeline-badge.white { background: #ffffff; border-color: var(--accent-blue); }
.timeline-badge.brown { background: #92400e; }
.timeline-badge.blue { background: var(--accent-blue); }
.timeline-badge.green { background: #10b981; }
.timeline-badge.dark-purple { background: #6b46c1; }

/* Timeline Card */
.timeline-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 122, 204, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 122, 204, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    max-width: 400px;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 122, 204, 0.2);
    border-color: var(--accent-blue);
}

/* Card Arrows */
.timeline-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    left: -10px;
    border: 10px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.95);
}

.timeline-item:nth-child(even) .timeline-card::before {
    right: -10px;
    border: 10px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.95);
}

/* Timeline Typography */
.timeline-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timeline-meta {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-meta strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.timeline-thanks {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-style: italic;
    font-weight: 500;
    margin: 0;
    border-top: 1px solid rgba(0, 122, 204, 0.2);
    padding-top: 1rem;
}

/* Stagger Animation Delays */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }
.timeline-item:nth-child(7) { transition-delay: 0.7s; }
.timeline-item:nth-child(8) { transition-delay: 0.8s; }

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 2rem;
    }

    .timeline-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 1rem 0 -2.5rem;
    }

    .timeline-card {
        max-width: none;
    }

    .timeline-card::before {
        left: -10px !important;
        border-right-color: rgba(255,255,255,0.95) !important;
        border-left-color: transparent !important;
    }
}