/* Terminal Interface Styling */

/* Terminal Container */
.terminal-interface {
  background: transparent;
  font-family: 'Courier New', monospace;
  margin-top: 30px;
  width: 100%;
}

/* Terminal Output */
.terminal-output {
  margin-bottom: 20px;
}

.terminal-line {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.terminal-prompt {
  color: #808080;
  font-weight: bold;
}

.terminal-text {
  color: #C0C0C0;
  margin-left: 8px;
}

/* Terminal Input Line */
.terminal-input-line {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #C0C0C0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  flex: 1;
  margin: 0 8px;
  padding: 0;
}

.terminal-input::placeholder {
  color: transparent;
}

.terminal-cursor {
  color: #C0C0C0;
  font-weight: bold;
  animation: blink 1s infinite;
}

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

/* Terminal Suggestions */
.terminal-suggestions {
  margin-top: 15px;
  font-size: 13px;
}

.suggestion-link {
  color: #A0A0A0;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.suggestion-link:hover {
  color: #FFFFFF;
}

/* AI Response Styling */
.ai-response {
  color: #C0C0C0;
  margin-left: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Typing Indicator */
.typing-indicator {
  color: #808080;
  margin-left: 8px;
}

.typing-dots {
  display: inline-block;
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #808080;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Contact Form Integration */
.terminal-form-field {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.terminal-form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #808080;
  color: #C0C0C0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  outline: none;
  padding: 4px 0;
  margin-left: 8px;
  min-width: 200px;
}

.terminal-form-input:focus {
  border-bottom-color: #C0C0C0;
}

.terminal-submit {
  background: transparent;
  border: 1px solid #808080;
  color: #C0C0C0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.terminal-submit:hover {
  border-color: #C0C0C0;
  background: rgba(192, 192, 192, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .terminal-interface {
    margin-top: 20px;
  }
  
  .terminal-line,
  .terminal-input-line {
    font-size: 13px;
  }
  
  .terminal-input {
    font-size: 13px;
  }
  
  .terminal-suggestions {
    font-size: 12px;
  }
  
  .suggestion-link {
    display: inline-block;
    margin: 2px 4px;
  }
  
  .terminal-form-input {
    font-size: 13px;
    min-width: 150px;
  }
}

/* Error States */
.terminal-error {
  color: #FF6B6B;
}

.terminal-success {
  color: #A8E6A3;
}

/* Focus States */
.terminal-input:focus + .terminal-cursor {
  animation: fast-blink 0.5s infinite;
}

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