/* Patch Notes Timeline Premium */
:root {
    --mylands-color: #2ecc71;
    --mylands-glow: rgba(46, 204, 113, 0.4);
    --mycommands-color: #3498db;
    --mycommands-glow: rgba(52, 152, 219, 0.4);
    --myeconomy-color: #f1c40f;
    --myeconomy-glow: rgba(241, 196, 15, 0.4);
    --default-color: #9b59b6;
    --default-glow: rgba(155, 89, 182, 0.4);
}

.patch-notes-container {
    padding: 5rem 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-modern {
    position: relative;
    padding: 2rem 0;
}

/* Vertical Line with Gradient */
.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px;
    box-sizing: border-box;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay when visible */
.timeline-item.is-visible:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item.is-visible:nth-child(4) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Marker / Icon with Pulse */
.timeline-marker {
    position: absolute;
    top: 25px;
    right: -25px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--default-color);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--default-glow);
    color: var(--text-light);
    font-size: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Plugin Specific Colors */
.timeline-item.plugin-mylands .timeline-marker {
    border-color: var(--mylands-color);
    box-shadow: 0 0 20px var(--mylands-glow);
    color: var(--mylands-color);
}

.timeline-item.plugin-mycommands .timeline-marker {
    border-color: var(--mycommands-color);
    box-shadow: 0 0 20px var(--mycommands-glow);
    color: var(--mycommands-color);
}

.timeline-item.plugin-myeconomy .timeline-marker {
    border-color: var(--myeconomy-color);
    box-shadow: 0 0 20px var(--myeconomy-glow);
    color: var(--myeconomy-color);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.15);
}

/* Left side marker positioning */
.timeline-item:nth-child(even) .timeline-marker {
    left: -25px;
    right: auto;
}

/* Connecting lines */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -2px;
    /* Connect to line */
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.timeline-item:nth-child(even)::after {
    left: -2px;
    right: auto;
}

/* Content Card Premium */
.timeline-content {
    background: rgba(22, 27, 34, 0.7);
    /* Darker, more premium base */
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* Subtle gradient overlay */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Plugin specific hover borders */
.timeline-item.plugin-mylands .timeline-content:hover {
    border-color: var(--mylands-glow);
}

.timeline-item.plugin-mycommands .timeline-content:hover {
    border-color: var(--mycommands-glow);
}

.timeline-item.plugin-myeconomy .timeline-content:hover {
    border-color: var(--myeconomy-glow);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-header {
    flex-direction: row-reverse;
}

.timeline-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 0;
    letter-spacing: -0.5px;
}

.timeline-title span {
    font-weight: 300;
    /* Lighter version number */
    opacity: 0.9;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 14px;
    border-radius: 12px;
    /* Slightly more square for modern tech look */
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.timeline-date i {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.timeline-date:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.timeline-date:hover i {
    transform: scale(1.1);
    opacity: 1;
}

/* Plugin specific date glows on hover */
.timeline-item.plugin-mylands .timeline-date:hover {
    border-color: var(--mylands-color);
    box-shadow: 0 0 15px var(--mylands-glow);
}

.timeline-item.plugin-mycommands .timeline-date:hover {
    border-color: var(--mycommands-color);
    box-shadow: 0 0 15px var(--mycommands-glow);
}

.timeline-item.plugin-myeconomy .timeline-date:hover {
    border-color: var(--myeconomy-color);
    box-shadow: 0 0 15px var(--myeconomy-glow);
}

/* ... existing styles ... */

/* Premium Button Style */
.btn-timeline-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-timeline-action:hover {
    background: var(--default-color);
    color: white;
    box-shadow: 0 0 15px var(--default-glow);
    border-color: transparent;
    transform: translateX(5px);
}

/* Plugin specific button colors */
.timeline-item.plugin-mylands .btn-timeline-action:hover {
    background: var(--mylands-color);
    box-shadow: 0 0 15px var(--mylands-glow);
}

.timeline-item.plugin-mycommands .btn-timeline-action:hover {
    background: var(--mycommands-color);
    box-shadow: 0 0 15px var(--mycommands-glow);
}

.timeline-item.plugin-myeconomy .btn-timeline-action:hover {
    background: var(--myeconomy-color);
    box-shadow: 0 0 15px var(--myeconomy-glow);
}


.timeline-body {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .timeline-modern::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        text-align: left;
        margin-bottom: 3rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 5px;
        right: auto;
    }

    .timeline-item::after {
        display: none;
        /* Hide connecting lines on mobile for simplicity */
    }

    .timeline-item:nth-child(odd) .timeline-header {
        flex-direction: row;
    }
}

/* Category Lists */
.changelog-group {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.changelog-group li {
    position: relative;
    padding-left: 2.5rem;
    /* Increased space for icon */
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.changelog-group li i {
    position: absolute;
    left: 0;
    top: 2px;
    /* Slight top alignment */
    width: 25px;
    text-align: center;
    font-size: 0.9em;
}

/* Added (Green) */
.group-added li i {
    color: #2ecc71;
}

.group-added li {
    border-left: 2px solid rgba(46, 204, 113, 0.2);
    padding-left: 2.5rem;
    margin-left: 0;
}

/* Fixed (Blue) */
.group-fixed li i {
    color: #3498db;
}

.group-fixed li {
    border-left: 2px solid rgba(52, 152, 219, 0.2);
    padding-left: 2.5rem;
    margin-left: 0;
}

/* Changed (Orange) */
.group-changed li i {
    color: #f39c12;
}

.group-changed li {
    border-left: 2px solid rgba(243, 156, 18, 0.2);
    padding-left: 2.5rem;
    margin-left: 0;
}

/* Removed (Red) */
.group-removed li i {
    color: #e74c3c;
}

.group-removed li {
    border-left: 2px solid rgba(231, 76, 60, 0.2);
    padding-left: 2.5rem;
    margin-left: 0;
}

/* Info (Gray) */
.group-info li i {
    color: #95a5a6;
}

.group-info li {
    border-left: 2px solid rgba(149, 165, 166, 0.2);
    padding-left: 2.5rem;
    margin-left: 0;
}

/* Beta Badge */
.beta-badge-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 165, 0, 0.15);
    color: orange;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 165, 0, 0.3);
    z-index: 10;
}

/* Prevent overlap with Beta Badge */
.timeline-header {
    padding-right: 70px;
    /* Space for the badge */
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .beta-badge-corner {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .timeline-header {
        padding-right: 0;
    }
}

/* Keyframes */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}