/* Terminal / editor — global (usado pelo carrossel e por outros blocos da secção técnica) */

.technical-editor {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #0b1220;
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-card),
    0 24px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.technical-editor-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: clamp(0.75rem, 1.5vw, 0.95rem) clamp(1rem, 2vw, 1.35rem);
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.technical-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #475569;
}

.technical-dot--close {
  background: #ef4444;
}

.technical-dot--minimize {
  background: #eab308;
}

.technical-dot--zoom {
  background: #22c55e;
}

.technical-editor-title {
  margin-left: auto;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.technical-editor-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.5rem clamp(1rem, 2vw, 1.35rem);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

.technical-dock-label {
  margin-right: 0.35rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
}

.technical-dock-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.92;
  border-radius: 4px;
}

.technical-dock-icon--svg {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.technical-dock-icon--raster {
  object-fit: contain;
  opacity: 0.95;
  filter: contrast(1.05) brightness(1.08);
}

.technical-dock-fa {
  font-size: 1.1rem;
  color: #94a3b8;
}

.technical-dock-fa.fa-aws {
  color: #ff9900;
}

.technical-dock-fa.fa-github {
  color: #f0f6fc;
}

.technical-dock-fa.fa-python {
  color: #3776ab;
}

.technical-code-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.technical-editor-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 58, 237, 0.07) 45%,
    rgba(56, 189, 248, 0.09) 55%,
    transparent 100%
  );
  opacity: 0;
  z-index: 1;
}

.technical-code {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.84rem, 1.15vw, 0.98rem);
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  overflow-y: visible;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.technical-code-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #a78bfa;
  border-radius: 1px;
  opacity: 0;
}

.code-k {
  color: #c084fc;
}
.code-n {
  color: #93c5fd;
}
.code-m {
  color: #fcd34d;
}
.code-s {
  color: #86efac;
}
.code-c {
  color: rgba(148, 163, 184, 0.85);
}

@media (max-width: 992px) {
  .technical-editor {
    max-width: 100%;
    min-height: 0;
  }

  .technical-code {
    font-size: clamp(0.78rem, 2.8vw, 0.9rem);
    padding: clamp(1.15rem, 4vw, 1.65rem);
  }
}
