/* ============================================
   DUSTON 1899 — Interactive Timeline
   ============================================ */

:root {
    --bg-dark: #0f0c09;
    --bg-card: rgba(22, 17, 12, 0.95);
    --bg-card-hover: rgba(32, 25, 17, 0.98);
    --border: #3d2e1e;
    --border-hover: #8b6d46;
    --gold: #d4a017;
    --gold-light: #f0c040;
    --gold-dim: #8b6d46;
    --text: #e8d5b5;
    --text-dim: #9a8670;
    --text-bright: #fff8ee;

    --cat-tarih: #4ecdc4;
    --cat-gizli: #ff6b6b;
    --cat-not: #ffa726;
    --cat-arastirma: #ab47bc;
    --cat-efsane: #c0392b;

    --font-display: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --toolbar-height: 52px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.4));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loading-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-top: 1rem;
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

.loading-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: loadFill 2s ease-in-out forwards;
}

@keyframes loadFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   TOOLBAR
   ============================================ */
#toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--toolbar-height);
    background: rgba(15, 12, 9, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.3));
}

.toolbar-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.2em;
    line-height: 1;
}

.title-sub {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.toolbar-center {
    display: flex;
    align-items: center;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px 6px;
}

.zoom-controls button {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.zoom-controls button:hover {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold);
}

#zoomLevel {
    font-size: 0.75rem;
    color: var(--text-dim);
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.zoom-controls .divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(212, 160, 23, 0.1);
    color: var(--gold);
}

.toolbar-btn.active {
    background: rgba(212, 160, 23, 0.12);
    border-color: var(--border);
    color: var(--gold);
}

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-control-wrapper {
    position: relative;
}

.music-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    z-index: 1100;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.music-panel.hidden {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
}

.music-panel-header {
    margin-bottom: 12px;
}

.music-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-pause-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), rgba(212, 160, 23, 0.05));
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.35), rgba(212, 160, 23, 0.15));
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.2);
    transform: scale(1.05);
}

.play-pause-btn.playing {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.3), rgba(212, 160, 23, 0.1));
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vol-icon {
    color: var(--text-dim);
    flex-shrink: 0;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.4);
    transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.4);
}

.volume-value {
    font-size: 0.65rem;
    color: var(--text-dim);
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(61, 46, 30, 0.4);
}

.viz-bar {
    width: 4px;
    height: 3px;
    background: var(--gold-dim);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.music-visualizer.active .viz-bar {
    animation: vizPulse 1.2s ease-in-out infinite;
    background: var(--gold);
}

.viz-bar:nth-child(1) { animation-delay: 0s; }
.viz-bar:nth-child(2) { animation-delay: 0.15s; }
.viz-bar:nth-child(3) { animation-delay: 0.3s; }
.viz-bar:nth-child(4) { animation-delay: 0.1s; }
.viz-bar:nth-child(5) { animation-delay: 0.25s; }
.viz-bar:nth-child(6) { animation-delay: 0.05s; }
.viz-bar:nth-child(7) { animation-delay: 0.2s; }
.viz-bar:nth-child(8) { animation-delay: 0.35s; }
.viz-bar:nth-child(9) { animation-delay: 0.12s; }

@keyframes vizPulse {
    0%, 100% { height: 3px; opacity: 0.4; }
    50% { height: 16px; opacity: 1; }
}

/* ============================================
   LEGEND
   ============================================ */
#legend {
    position: fixed;
    top: calc(var(--toolbar-height) + 16px);
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    z-index: 900;
    min-width: 180px;
    backdrop-filter: blur(20px);
    transition: opacity 0.3s, transform 0.3s;
}

#legend.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

#legend h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.8rem;
    color: var(--text);
}

.legend-item:hover {
    color: var(--text-bright);
}

.legend-item.dimmed {
    opacity: 0.3;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   MINIMAP
   ============================================ */
#minimap {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 200px;
    height: 120px;
    background: rgba(15, 12, 9, 0.9);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 900;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
}

#minimap.hidden {
    opacity: 0;
    transform: translate(20px, 20px);
    pointer-events: none;
}

#minimapCanvas {
    width: 100%;
    height: 100%;
}

#minimapViewport {
    position: absolute;
    border: 1.5px solid var(--gold);
    background: rgba(212, 160, 23, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

/* ============================================
   VIEWPORT & WORLD
   ============================================ */
#viewport {
    position: fixed;
    top: var(--toolbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    cursor: grab;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 160, 23, 0.02) 0%, transparent 70%),
        linear-gradient(rgba(61, 46, 30, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 46, 30, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-color: var(--bg-dark);
}

#viewport.grabbing {
    cursor: grabbing;
}

#world {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

/* ============================================
   TIMELINE AXIS
   ============================================ */
.timeline-axis {
    position: absolute;
    top: 400px;
    left: 0;
    width: 6000px;
    height: 4px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 100px;
    right: 100px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--gold-dim) 5%,
        var(--gold) 15%,
        var(--gold) 85%,
        var(--gold-dim) 95%,
        transparent
    );
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.2);
}

/* Timeline Year Markers */
.year-marker {
    position: absolute;
    top: 395px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.year-marker .marker-dot {
    width: 14px;
    height: 14px;
    background: var(--gold);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold-dim), 0 0 15px rgba(212, 160, 23, 0.3);
    z-index: 2;
}

.year-marker .marker-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-top: 10px;
    white-space: nowrap;
}

.year-marker .marker-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    margin-top: 4px;
}

/* ============================================
   TIMELINE CARDS
   ============================================ */
.timeline-card {
    position: absolute;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.timeline-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 160, 23, 0.08);
}

.timeline-card .card-connector {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-card.above .card-connector {
    bottom: -40px;
    height: 40px;
    background: linear-gradient(to top, var(--gold-dim), transparent);
}

.timeline-card.below .card-connector {
    top: -40px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform 0.5s ease;
    filter: brightness(0.85) contrast(1.1);
}

.timeline-card:hover .card-image {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.card-image-container {
    overflow: hidden;
    position: relative;
}

.card-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.card-category-badge.tarih {
    background: rgba(78, 205, 196, 0.2);
    color: var(--cat-tarih);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.card-category-badge.gizli {
    background: rgba(255, 107, 107, 0.2);
    color: var(--cat-gizli);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.card-category-badge.not {
    background: rgba(255, 167, 38, 0.2);
    color: var(--cat-not);
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.card-category-badge.arastirma {
    background: rgba(171, 71, 188, 0.2);
    color: var(--cat-arastirma);
    border: 1px solid rgba(171, 71, 188, 0.3);
}

.card-category-badge.efsane {
    background: rgba(192, 57, 43, 0.2);
    color: var(--cat-efsane);
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.card-body {
    padding: 14px 16px;
}

.card-date {
    font-size: 0.65rem;
    color: var(--gold);
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(61, 46, 30, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-read-more {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.card-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Node dots on timeline */
.timeline-node {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 393px;
    transform: translateX(-50%);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px currentColor, 0 0 12px currentColor;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-node:hover {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 3px currentColor, 0 0 25px currentColor;
}

.timeline-node.tarih { background: var(--cat-tarih); color: var(--cat-tarih); }
.timeline-node.gizli { background: var(--cat-gizli); color: var(--cat-gizli); }
.timeline-node.not { background: var(--cat-not); color: var(--cat-not); }
.timeline-node.arastirma { background: var(--cat-arastirma); color: var(--cat-arastirma); }
.timeline-node.efsane { background: var(--cat-efsane); color: var(--cat-efsane); }

/* ============================================
   CONNECTOR LINES
   ============================================ */
.connector-line {
    position: absolute;
    width: 2px;
    z-index: 1;
    opacity: 0.4;
}

.connector-line.tarih { background: var(--cat-tarih); }
.connector-line.gizli { background: var(--cat-gizli); }
.connector-line.not { background: var(--cat-not); }
.connector-line.arastirma { background: var(--cat-arastirma); }
.connector-line.efsane { background: var(--cat-efsane); }

/* ============================================
   NOTE CARDS (smaller, text-only)
   ============================================ */
.note-card {
    position: absolute;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.note-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.note-card .note-category {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.note-card .note-text {
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.5;
}

.note-card .note-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ============================================
   MODAL
   ============================================ */
#modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#modal.modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    overflow-y: auto;
}

#modal:not(.modal-hidden) .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(212, 160, 23, 0.2);
    border-color: var(--gold-dim);
    color: var(--gold);
}

.modal-image-container {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 8px;
}

.modal-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
}

.modal-extra {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   HINTS
   ============================================ */
#hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    transition: opacity 0.5s ease;
}

#hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-content {
    display: flex;
    gap: 20px;
    background: rgba(15, 12, 9, 0.9);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 20px;
    backdrop-filter: blur(20px);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.hint-key {
    background: rgba(212, 160, 23, 0.12);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

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

.timeline-card, .note-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Category filter dimming */
.timeline-card.filtered-out,
.note-card.filtered-out,
.timeline-node.filtered-out,
.connector-line.filtered-out {
    opacity: 0.1 !important;
    filter: grayscale(1);
    pointer-events: none;
}
