/* Terminal CSS - Estilo Retro/Cyberpunk */

.terminal-container {
  background: #000;
  border: 2px solid #00ff41;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
  margin: 2rem 0;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.terminal-header {
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00ff41;
}

.terminal-title {
  color: #00ff41;
  font-weight: bold;
  font-size: 0.9rem;
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control.minimize {
  background: #ffbd2e;
  color: #000;
}

.control.maximize {
  background: #28ca42;
  color: #000;
}

.control.close {
  background: #ff5f56;
  color: #000;
}

.control:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.terminal-body {
  padding: 1rem;
  min-height: 400px;
  background: #000;
  position: relative;
}

.terminal-output {
  margin-bottom: 1rem;
  max-height: 350px;
  overflow-y: auto;
}

.output-line {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prompt {
  color: #00ff41;
  font-weight: bold;
}

.command {
  color: #ffffff;
  font-weight: bold;
}

.text {
  color: #cccccc;
}

.error {
  color: #ff4444;
}

.success {
  color: #44ff44;
}

.warning {
  color: #ffaa44;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  outline: none;
  flex: 1;
  caret-color: #00ff41;
}

.terminal-input::placeholder {
  color: #666666;
}

/* Efeitos de digitação */
.typing-effect {
  overflow: hidden;
  border-right: 2px solid #00ff41;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #00ff41; }
}

/* Efeito Matrix */
.matrix-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.matrix-char {
  position: absolute;
  color: #00ff41;
  font-size: 1rem;
  animation: matrix-fall 2s linear infinite;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Modo hacker */
.hacker-mode {
  background: linear-gradient(45deg, #000, #1a1a1a, #000);
  animation: hacker-bg 2s infinite;
}

@keyframes hacker-bg {
  0%, 100% { background: linear-gradient(45deg, #000, #1a1a1a, #000); }
  50% { background: linear-gradient(45deg, #1a1a1a, #000, #1a1a1a); }
}

/* Scrollbar do terminal */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}

/* Responsividade */
@media (max-width: 768px) {
  .terminal-container {
    margin: 1rem 0;
  }
  
  .terminal-body {
    padding: 0.5rem;
    min-height: 300px;
  }
  
  .terminal-input {
    font-size: 0.9rem;
  }
}

/* Efeitos especiais */
.glitch-text {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

/* Cursor piscante */
.cursor-blink {
  animation: cursor-blink 1s infinite;
}

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