/* hub.css - Research Platform Elevation & 3D Systems */

/* Tabs Navigation */
.hub-tab-btn.active {
    color: #d4af37 !important;
    border-bottom: 2px solid #d4af37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* 3D Timeline Board (Temporal Nexus) */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

#timeline-board.view-3d {
    transform: rotateX(15deg) rotateY(-5deg) translateY(20px);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), 0 30px 60px -30px rgba(212,175,55,0.2);
    transition: transform 0.7s ease-out;
}

#timeline-viewport {
    cursor: grab;
}

#timeline-viewport:active {
    cursor: grabbing;
}

/* Timeline Events (Gameboard Style) */
.event {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.event:hover {
    transform: translateY(-50%) scale(1.1);
    z-index: 20;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.event.cosmic {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #f5c542;
    color: #f5c542;
}

.event.eden {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981;
    color: #10b981;
}

.event.civilization {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: #3b82f6;
    color: #3b82f6;
}

.timeline-line {
    background: repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.1) 50px);
    background-size: 50px 100%;
    pointer-events: none;
}

/* Horizontal Timeline Snap (Sidebar Module) */
.timeline-marker-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: all 0.2s ease;
    z-index: 5;
}

.timeline-marker-dot:hover {
    transform: translateY(-50%) scale(1.5);
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

.tooltip-premium {
    position: absolute;
    bottom: 20px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 50;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.timeline-marker-dot:hover .tooltip-premium {
    opacity: 1;
    transform: translate(-50%, -8px);
}

/* Map Intelligence Module */
#map-ancient, #map-modern {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scholarly Panel & Annotations */
#scholarly-panel {
    box-shadow: -20px 0 50px rgba(0,0,0,0.8);
}

.svg-annotation-trigger {
    cursor: help;
    transition: all 0.2s;
}

.svg-annotation-trigger:hover {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.8));
    stroke-width: 2;
}

/* Typography & Layout */
#section-abstract {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar for Panel */
#scholarly-panel::-webkit-scrollbar {
    width: 4px;
}

#scholarly-panel::-webkit-scrollbar-track {
    background: transparent;
}

#scholarly-panel::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

#scholarly-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}
