/* Changelog Timeline Styling */
.changelog-timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-color, #3b82f6);
}

/* Modern Style - Gradient line (default) */
.changelog-timeline.style-modern::before {
    background: linear-gradient(to bottom, var(--timeline-color, #3b82f6), #8b5cf6);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 70px;
    animation: fadeInUp 0.6s ease-out;
}

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

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-type.type-feature {
    background: #dcfce7;
    color: #15803d;
}

.timeline-type.type-improvement {
    background: #dbeafe;
    color: #1e40af;
}

.timeline-type.type-bugfix {
    background: #fee2e2;
    color: #991b1b;
}

.timeline-type.type-security {
    background: #fef3c7;
    color: #92400e;
}

.timeline-version {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

.timeline-date {
    color: #6b7280;
    font-size: 13px;
}

.timeline-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.timeline-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.timeline-description p {
    margin: 0 0 10px 0;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

.timeline-description ul,
.timeline-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.timeline-description li {
    margin-bottom: 6px;
}

/* ===========================
   STYLE VARIATIONS
   =========================== */

/* Minimal Style - Simple and clean */
.changelog-timeline.style-minimal::before {
    background: var(--timeline-color, #cbd5e1);
    width: 1px;
}

.changelog-timeline.style-minimal .timeline-marker {
    width: 12px;
    height: 12px;
    left: 24.5px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--timeline-color, #cbd5e1);
}

.changelog-timeline.style-minimal .timeline-content {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.changelog-timeline.style-minimal .timeline-content:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Classic Style - Traditional design with version on left */
.changelog-timeline.style-classic .timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    padding-left: 0;
    align-items: start;
}

.changelog-timeline.style-classic::before {
    left: 135px;
}

.changelog-timeline.style-classic .timeline-marker {
    left: 126px;
}

.changelog-timeline.style-classic .timeline-version {
    grid-column: 1;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    background: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 8px;
}

.changelog-timeline.style-classic .timeline-content {
    grid-column: 2;
}

.changelog-timeline.style-classic .timeline-header .timeline-version {
    display: none;
}

/* Compact Style - More condensed */
.changelog-timeline.style-compact .timeline-item {
    margin-bottom: 25px;
}

.changelog-timeline.style-compact .timeline-content {
    padding: 18px;
}

.changelog-timeline.style-compact .timeline-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.changelog-timeline.style-compact .timeline-description {
    font-size: 14px;
}

.changelog-timeline.style-compact .timeline-type {
    padding: 3px 10px;
    font-size: 11px;
}

/* Cards Style - Bigger cards with more shadow */
.changelog-timeline.style-cards::before {
    display: none;
}

.changelog-timeline.style-cards .timeline-item {
    padding-left: 0;
}

.changelog-timeline.style-cards .timeline-marker {
    display: none;
}

.changelog-timeline.style-cards .timeline-content {
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--timeline-color, #3b82f6);
    transition: all 0.3s ease;
}

.changelog-timeline.style-cards .timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.changelog-timeline.style-cards .timeline-title {
    font-size: 24px;
}

.changelog-timeline.style-cards .timeline-item {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .changelog-timeline {
        padding: 10px;
    }

    .changelog-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        left: 6px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-header {
        gap: 8px;
    }

    /* Classic style responsive */
    .changelog-timeline.style-classic .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 45px;
    }

    .changelog-timeline.style-classic::before {
        left: 15px;
    }

    .changelog-timeline.style-classic .timeline-marker {
        left: 6px;
    }

    .changelog-timeline.style-classic .timeline-version {
        grid-column: 1;
        font-size: 18px;
        padding: 12px;
        display: inline-block;
        width: auto;
    }

    .changelog-timeline.style-classic .timeline-content {
        grid-column: 1;
    }

    .changelog-timeline.style-classic .timeline-header .timeline-version {
        display: inline-block;
    }

    /* Cards style responsive */
    .changelog-timeline.style-cards .timeline-content {
        padding: 20px;
    }

    .changelog-timeline.style-cards .timeline-title {
        font-size: 20px;
    }
}
