/* AI Robot Analyzer — DOS CRT console */

.ai-robot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0c0c0c;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  /* CRT scanlines */
  background-image:
    linear-gradient(rgba(255,200,0,0.03) 1px, transparent 1px);
  background-size: 100% 3px;
  /* CRT glow */
  box-shadow: inset 0 0 80px rgba(255,200,0,0.04);
  /* For robot face positioning */
  position: absolute;
}

.ai-robot-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Подсказки — строки консоли */
.ai-robot-container .thought-bubbles-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  min-height: auto;
}

.ai-robot-container .ai-thought-bubble {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: none;
  animation: dos-line-appear 0.1s ease forwards;
  display: block;
  box-shadow: none;
}

.ai-robot-container .ai-thought-bubble::before {
  content: '> ';
  color: #cc8800;
}

.ai-robot-container .ai-thought-bubble::after {
  display: none;
}

/* Убираем позиции */
.ai-robot-container .ai-thought-bubble.ai-pos-1,
.ai-robot-container .ai-thought-bubble.ai-pos-2,
.ai-robot-container .ai-thought-bubble.ai-pos-3,
.ai-robot-container .ai-thought-bubble.ai-pos-4,
.ai-robot-container .ai-thought-bubble.ai-pos-5,
.ai-robot-container .ai-thought-bubble.ai-pos-6 {
  position: relative;
  top: auto; left: auto; right: auto; bottom: auto;
}

@keyframes dos-line-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-robot-container .ai-thought-text {
  font-size: 14px;
  color: #ffaa00;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
}

.ai-robot-container .ai-thought-icon {
  display: none;
}

.ai-robot-container .ai-thought-bubble.ai-fade-out {
  animation: dos-line-fade 0.15s ease-out forwards;
}

@keyframes dos-line-fade {
  to { opacity: 0.3; }
}

/* Робот — ASCII art стиль */
.ai-robot-container .robot-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: none;
  margin-top: 8px;
}

.ai-robot-container .robot-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  width: 400px;
  height: 400px;
}

.ai-robot-container .robot-status {
  color: #ffcc00;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  font-family: 'Courier New', Courier, monospace;
  min-height: 20px;
  text-shadow: 0 0 8px rgba(255,200,0,0.5);
}

.ai-robot-container .robot-status::before {
  content: 'DOINGS.PRO /> ';
  color: #cc8800;
}

.ai-robot-container .robot-status::after {
  content: '█';
  animation: blink-block 0.6s infinite;
  color: #ffcc00;
  margin-left: 2px;
}

@keyframes blink-block {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 480px) {
  .ai-robot-overlay {
    padding: 20px;
  }
  .ai-robot-container .ai-thought-text {
    font-size: 12px;
  }
  .ai-robot-container .robot-status {
    font-size: 12px;
  }
}
