/* AI Context HUD Stylesheet */
:root {
    --ai-hud-bg: rgba(8, 18, 37, 0.94);
    --ai-hud-border: rgba(100, 116, 139, 0.2);
    --ai-hud-cyan: #22d3ee;
}

.ai-hud-btn {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(20, 184, 166, 0.15));
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ai-hud-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(20, 184, 166, 0.25));
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

/* Slide-out Overlay Panel */
.ai-overlay {
    position: fixed;
    top: 64px;
    right: -550px;
    bottom: 0;
    width: 500px;
    background: var(--ai-hud-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--ai-hud-border);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    color: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    text-align: left;
}

.ai-overlay.open {
    right: 0;
}

.ai-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ai-hud-border);
    padding-bottom: 1rem;
}

.ai-overlay-header h3 {
    margin: 0;
    color: #22d3ee;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ai-close:hover {
    color: #f1f5f9;
}

.schema-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    font-family: 'JetBrains Mono', Courier, monospace;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    margin-right: 6px;
}

.ai-overlay pre {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--ai-hud-border);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

.ai-overlay code {
    font-family: 'JetBrains Mono', Courier, monospace;
    font-size: 0.78rem;
    color: #38bdf8;
    white-space: pre;
}

@media (max-width: 900px) {
    .ai-overlay {
        width: 100%;
        right: -100%;
        top: 60px;
    }
}
