/* ========================================
   PATCH NOTES (TIMELINE) CSS
   ======================================== */

.patch-notes-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Base Link Reset to match site-wide UI */
a {
    color: inherit;
    text-decoration: none;
}

/* Background Styles (Missing in previous version) */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-background__image {
    position: absolute;
    inset: 0;
    background-image: url('../img/blury background/wallpaperflare.com_wallpaper (5).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
}

.page-background__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.85) 50%,
            rgba(0, 0, 0, 0.95) 100%);
}

.page-background__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBackground 8s ease-in-out infinite;
}

.page-background__glow--blue {
    width: 450px;
    height: 450px;
    background: var(--accent-blue);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.page-background__glow--violet {
    width: 350px;
    height: 350px;
    background: var(--accent-violet);
    top: 40%;
    right: 10%;
    animation-delay: -4s;
}

.page-background__glow--small {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    bottom: 15%;
    left: 25%;
    animation-delay: -2s;
}

@keyframes floatBackground {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
        opacity: 0.4;
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.35;
    }

    75% {
        transform: translate(20px, 20px) scale(1.02);
        opacity: 0.45;
    }
}

.patch-notes-title {
    text-align: center;
    margin-bottom: 60px;
}

.patch-notes-title h1 {
    font-size: var(--text-5xl);
    font-family: var(--font-display);
    margin-bottom: 15px;
}

.patch-notes-title p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

/* Timeline vertical line */
.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            var(--accent-blue),
            var(--accent-violet) 50%,
            var(--accent-blue));
    border-radius: 2px;
    opacity: 0.3;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 28px;
    top: 25px;
    width: 26px;
    height: 26px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--glow-blue);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px var(--glow-violet);
    transform: scale(1.2);
}

/* Version Cards */
.version-card {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.version-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-blue);
    background: rgba(20, 20, 35, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(41, 85, 255, 0.1);
}

/* Gradient Borders for Major Versions */
.version-card.major-update::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.version-card.major-update:hover::before {
    opacity: 1;
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.version-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.version-date {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-major {
    background: rgba(179, 102, 255, 0.15);
    color: var(--accent-violet);
    border: 1px solid rgba(179, 102, 255, 0.3);
}

.badge-update {
    background: rgba(41, 85, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(41, 85, 255, 0.3);
}

.badge-fix {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.version-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 20px;
}

.patch-list {
    list-style: none;
    padding: 0;
}

.patch-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.patch-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* CTA Download Button */
.patch-notes-cta {
    text-align: center;
    margin-top: 80px;
    padding-bottom: 60px;
}

.download-btn-large {
    display: inline-block;
    padding: 20px 50px;
    font-size: var(--text-xl);
    font-weight: 800;
    text-decoration: none;
    color: white;
    background: var(--accent-gradient);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(41, 85, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(41, 85, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 8px;
    }

    .patch-notes-title h1 {
        font-size: var(--text-3xl);
    }

    .version-number {
        font-size: var(--text-xl);
    }
}