/* Termiflow — Sovereign Console Design System */
/* Shared styles across all pages */

body {
    background-color: #131313;
    color: #e5e2e1;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Terminal cursor blink */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #f5a623;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Amber glow on hover */
.amber-glow:hover {
    box-shadow: 0 0 12px 0px #f5a623;
}

/* Terminal glow on hover (border + shadow) */
.terminal-glow:hover {
    box-shadow: 0 0 8px 0px #f5a623;
    border-color: #f5a623;
}

/* Double border (Bloomberg-style) */
.double-border {
    border-top: 3px double rgba(245, 166, 35, 0.3);
}

/* Entry border (changelog) */
.entry-border {
    border-left: 2px solid #2a2a2a;
}

/* Terminal dot grid background */
.terminal-grid {
    background-image: radial-gradient(#2A2A2A 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Scrollbar — terminal feel */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: #f5a623; }

/* Monospace utility */
.monospace {
    font-family: 'Space Grotesk', monospace;
}

/* Cursor blink (alternate, for inline blocks) */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* Feed item fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item.revealed {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Scroll-triggered section reveals */
.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Copy button on terminal blocks */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: #666666;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn span.copy-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.copy-parent:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: #f5a623;
    border-color: #f5a623;
}

.copy-btn.copied {
    color: #00ff00;
    border-color: #00ff00;
    opacity: 1;
}

/* Docs sidebar scroll tracking */
.sidebar-link-active {
    background: #f5a623 !important;
    color: #131313 !important;
    font-weight: bold !important;
    border-left: 4px solid #f5a623;
    margin-left: -4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    .feed-item {
        opacity: 1 !important;
    }
}
