body {
  margin: 0;
  padding: 20px;
  width: 100vw;
  height: 100vh;
  background: #151212;
  font-family: monospace;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  color: #f1f5f9;
}

#terminal {
  max-width: 1100px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #1f2926;
  background: rgba(21, 18, 18, 0.6);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,255,156,0.05);
}

#terminal.show {
  opacity: 1;
}

pre {
  margin: 0;
  white-space: pre;
  line-height: 1.35;
  font-size: 15px;
  color: #f1f5f9; /* Output padrão em branco */
  overflow-x: auto;
}

pre a {
  color: #f1f5f9;
  text-decoration: underline;
  word-break: break-all;
}

.banner-block {
  font-size: 15px;
}

.name-wrap {
  display: inline-block;
}

.name-break {
  display: inline;
}

#input-area {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#prompt {
  color: #00ff9c; /* Verde terminal */
  margin-right: 6px;
}

#command {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff9c; /* Verde comando */
  font-family: monospace;
  font-size: 15px;
  width: 100%;
  max-width: 700px;
}

/* ASCII do Paulo Costa em itálico */
.paulo-italic {
  font-style: italic;
  display: block;
  color: #00ff9c; /* Verde banner */
}

.banner-desktop {
  display: block;
}

.banner-mobile {
  display: none;
}

/* Deploy overlay */
#deploy-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0,255,156,0.08), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(116,192,252,0.08), transparent 35%),
              #0f0d0d;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 18px;
}

.deploy-card {
  width: min(720px, 100%);
  background: rgba(22, 18, 18, 0.6);
  border: 1px solid rgba(31, 41, 38, 0.8);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,255,156,0.08), 0 24px 60px rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 18px;
}

.deploy-header {
  color: #74c0fc;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.deploy-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.deploy-node {
  color: #00ff9c;
}

.deploy-cloud {
  color: #74c0fc;
}

.deploy-line {
  flex: 1;
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,255,156,0.12), rgba(116,192,252,0.35));
  overflow: hidden;
}

.deploy-line::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -2px;
  width: 20%;
  height: 6px;
  background: linear-gradient(90deg, rgba(0,255,156,0.4), rgba(116,192,252,0.8));
  filter: drop-shadow(0 0 4px rgba(116,192,252,0.8));
  animation: data-pulse 1.2s infinite linear;
}

.deploy-log {
  min-height: 120px;
  max-height: 180px;
  background: #0f0d0d;
  border: 1px solid #1f2926;
  border-radius: 8px;
  padding: 12px;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.deploy-progress {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deploy-bar {
  flex: 1;
  min-width: 160px;
  background: #0f0d0d;
  border: 1px solid #1f2926;
  border-radius: 999px;
  overflow: hidden;
  height: 14px;
  position: relative;
}

.deploy-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff9c, #74c0fc);
  transition: width 0.35s ease;
}

.deploy-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0d0d;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.show {
  opacity: 1;
}

@keyframes data-pulse {
  0% { transform: translateX(0); }
  100% { transform: translateX(600%); }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  pre {
    font-size: 12px;
    line-height: 1.3;
  }

  #command {
    font-size: 16px; /* Keep 16px to prevent mobile zoom on focus */
  }

  .deploy-log {
    font-size: 13px;
  }

  #terminal {
    padding: 12px;
    border-radius: 8px;
  }

  #input-area {
    gap: 4px;
  }

  #prompt {
    margin-right: 4px;
  }

  #deploy-overlay {
    padding: 12px;
  }

  .deploy-card {
    padding: 14px;
  }

  .deploy-visual {
    flex-wrap: wrap;
    font-size: 12px;
  }

  .deploy-progress {
    gap: 8px;
  }

  .banner-block {
    font-size: 13px;
    line-height: 1.3;
  }

  .name-break {
    display: block;
  }

  .banner-desktop {
    display: none;
  }

  .banner-mobile {
    display: block;
    line-height: 1.2;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .banner-block {
    font-size: 12px;
    line-height: 1.25;
  }

  .banner-mobile {
    font-size: 12px;
    line-height: 1.2;
  }
}
