/* ================================================* 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;
}

.timeline-card-shell {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.timeline-card-thumb {
    width: 132px;
    min-width: 132px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.timeline-card-thumb-compact {
    width: 108px;
    min-width: 108px;
}

.timeline-card-thumb-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.timeline-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.34);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .timeline-card-shell {
        gap: 12px;
    }

    .timeline-card-thumb,
    .timeline-card-thumb-compact {
        width: 92px;
        min-width: 92px;
    }
}

@media (max-width: 480px) {
    .timeline-card-shell {
        flex-direction: column;
    }

    .timeline-card-thumb,
    .timeline-card-thumb-compact {
        width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
    }
}
