/* --- START OF FILE static/ai.css --- */

:root {
    --ai-bg: #0b0c10;           /* Industrial Black */
    --ai-border: #2a2a2e;       /* Standard Dark Border (как везде) */
    --ai-accent: #ff793f;       /* Amber/Orange Signal */
    --ai-grid: rgba(255, 177, 66, 0.03); /* Faint Amber Grid */
}

/* --- MAIN CONTAINER --- */
.ai-window {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: var(--ai-bg);
    border: 1px solid var(--ai-border);

    /* ИСПРАВЛЕНО: Стандартное закругление и тень, как у других окон */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* ИСПРАВЛЕНО: Отступ снизу, чтобы теги не прилипали */
    margin-bottom: 1.5rem;

    overflow: hidden;

    /* Tech Grid Background */
    background-image:
        linear-gradient(var(--ai-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ai-grid) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;

    /* Typography */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    user-select: none;

    /* Анимации при наведении (как у остальных) */
    transition: border-color 0.3s ease, transform 0.3s ease;
    transform: translateZ(0);
}

.ai-window:hover {
    border-color: #555;
    transform: translateY(-2px);
}

/* --- CANVAS LAYER --- */
#ai-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* --- DECORATIONS (VFX) --- */

/* 1. Vignette (Dark edges) */
.ai-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* 2. Scanlines (CRT Monitor Effect) */
.ai-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.3) 3px
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
}

/* --- HIDDEN STATUS BAR --- */
.ai-status {
    display: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .ai-window {
        /* На мобильных убираем скругления, если так сделано в других окнах,
           но обычно лучше оставить как есть для консистентности */
        border-radius: 8px;
    }
}