/* ==========================================================================
   GMR KIT v7.0 · DISCORD EMBED, TERMINAL & GMR-BOT HUD STYLES
   ========================================================================== */

/* Discord-Style Rich Embed Container */
.discord-embed {
  background: rgba(13, 17, 26, 0.88);
  border-left: 4px solid var(--tac-orange);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--tac-orange);
}

.embed-author {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tac-orange-bright);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.embed-author-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

.embed-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.embed-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.embed-field-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.embed-field-value {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
}

.embed-footer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Efecto de escritura en Terminal */
.terminal-typing::after {
  content: '▋';
  color: var(--tac-orange-bright);
  animation: blinkTerminal 0.8s infinite;
}

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

/* Estado de Inyección WebSocket Exitosa (Verde Neón Militar) */
.command-code-box.inject-success,
.cart-terminal-footer.inject-success {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.08) !important;
  transition: all 0.3s ease;
}

/* Panel GMR-BOT NLP & Linter */
.gmr-bot-panel {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 10px 0 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.gmr-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gmr-bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tac-orange-bright);
  letter-spacing: 0.8px;
}

.gmr-bot-input-group {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.gmr-bot-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #fff;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.gmr-bot-input:focus {
  border-color: var(--tac-orange);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.2);
}

.btn-gmr-bot-submit {
  background: var(--grad-orange);
  border: none;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-gmr-bot-submit:hover {
  background: var(--grad-orange-hover);
  box-shadow: 0 0 12px var(--tac-orange-glow);
}

/* Linter Metrics HUD */
.linter-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.linter-info-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.linter-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.linter-progress-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.2s, background 0.2s;
}

.linter-progress-fill.warn {
  background: #f59e0b;
}

.linter-progress-fill.danger {
  background: #ef4444;
}

/* Barra de Telemetría Pterodactyl */
.telemetry-strip-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 7, 12, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.telemetry-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.telemetry-stats-group {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
}

.tele-stat-item b {
  color: #fff;
}

/* Botón de Inyección Directa en Pterodactyl */
.btn-inject-pterodactyl {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid #34d399;
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  margin-top: 6px;
  width: 100%;
}

.btn-inject-pterodactyl:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.btn-inject-pterodactyl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Botones de Exportar / Importar Staff Config */
.staff-portability-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-staff-portability {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-staff-portability:hover {
  background: rgba(255, 106, 0, 0.15);
  border-color: var(--tac-orange);
  color: #fff;
}
