/* timeline.css */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
}

/* Center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2.5rem;
    margin-bottom: 3rem;
}

/* Timeline dot */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    z-index: 2;
}

/* Right side items */
.timeline-item.right {
    left: 50%;
}

.timeline-item.right::before {
    left: -6px;
}

.timeline-item.right .timeline-date {
    left: -180px;
}

/* Left side items */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left::before {
    right: -6px;
}

.timeline-item.left .timeline-date {
    right: -180px;
}

/* Date styling */
.timeline-date {
    position: absolute;
    top: 0;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.6;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* Timeline content */
.timeline-content {
    position: relative;
}

.album-card {
    display: block;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 280px;
}

.timeline-item.left .album-card {
    margin-left: auto;
}

.album-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.album-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.album-info {
    padding: 1rem;
}

.album-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.album-details {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.5;
}

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

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item::before {
        left: 24px !important;
        right: auto !important;
    }

    .timeline-date {
        left: 0 !important;
        right: auto !important;
        top: 5px;
        font-size: 0.8rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

    .timeline-content {
        margin-left: 0;
    }

    .album-card {
        max-width: 100%;
    }

    .timeline-item.left .album-card {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }

    .album-card {
        max-width: 240px;
    }

    .album-info h3 {
        font-size: 1rem;
    }

    .album-details {
        font-size: 0.75rem;
    }
}