/**
 * Terminal Overlay Styles
 * Light scientific annotation style matching reference image
 */

.terminal-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(58, 58, 58, 0.3);
    border-radius: 2px;
    padding: 8px 12px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 9px;
    line-height: 1.5;
    color: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    max-width: 220px;
    z-index: 100;
}

.terminal-overlay.visible {
    opacity: 1;
}

/* Simple fade in */
.terminal-overlay.typing .terminal-content {
    animation: simpleFadeIn 0.5s ease;
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Content */
.terminal-content {
    position: relative;
    z-index: 2;
}

/* Annotation header - subtle */
.terminal-header {
    color: #3A3A3A;
    font-weight: 600;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(58, 58, 58, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 8px;
}

/* Content styling - clean and minimal */
.terminal-code {
    color: #3A3A3A;
    margin: 4px 0;
    white-space: pre-wrap;
    font-size: 9px;
    line-height: 1.4;
}

/* Metadata - very subtle */
.terminal-meta {
    font-size: 7px;
    color: #8B9B9B;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(58, 58, 58, 0.1);
    font-style: italic;
}

/* Type-based subtle color accents */
.terminal-overlay.type-core .terminal-header {
    color: #FF8354;
}

.terminal-overlay.type-architecture .terminal-header {
    color: #FF4828;
}

.terminal-overlay.type-warmth .terminal-header {
    color: #FDDB64;
}

.terminal-overlay.type-uncertainty .terminal-header {
    color: #98D3A1;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-overlay {
        font-size: 8px;
        padding: 6px 10px;
        max-width: 180px;
    }
    
    .terminal-header {
        font-size: 7px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .terminal-overlay.typing .terminal-content {
        animation: none;
    }
    
    .terminal-overlay {
        transition: opacity 0.01ms;
    }
}
