/* ================================================* Timeline Page - Custom Styles
 * Path: assets/css/timeline/styles.css
 * ================================================ */

body {
    background-color: #0a0e17;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0e17;
}
::-webkit-scrollbar-thumb {
    background: #1a2236;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f0a500;
}

/* Scanline Overlay */
.scanlines::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 50;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Timeline Line Animation */
.timeline-line {
    height: 0;
    transition: height 1.5s ease-out;
}

/* Entry Card Scroll Animation */
.entry-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Node Ping Animation */
.node-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ================================================* Year Group - Multi-entry year cluster styles
 * ================================================ */

/* Year group cards share the same entrance animation as .entry-card */
.year-group-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.year-group-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Year group wrapper smooth opacity transition for filter */
.year-group-wrapper {
    transition: opacity 0.3s ease;
}