/* Interactive Shopify -> Amazon MCF Live Sync Simulator */

.simulator-container {
  background: rgba(11, 21, 40, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  backdrop-filter: var(--backdrop-blur);
  position: relative;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sim-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.simulator-pipeline {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .simulator-pipeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
  }
}

.sim-node {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition-fast);
}

.sim-node.active {
  border-color: var(--brand-cyan-light);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  background: rgba(30, 58, 138, 0.3);
}

.sim-node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.sim-node-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-node-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sim-param-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sim-param-group select {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  outline: none;
  font-size: 0.85rem;
}

/* Console Log & Code Output */
.sim-console {
  background: #040914;
  border: 1px solid rgba(45, 85, 145, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.825rem;
  color: #a7f3d0;
  max-height: 180px;
  overflow-y: auto;
}

.console-line {
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.75rem;
}

.console-time {
  color: #64748b;
  flex-shrink: 0;
}

.console-msg {
  word-break: break-all;
}

.console-msg.info { color: #38bdf8; }
.console-msg.success { color: #34d399; }
.console-msg.warn { color: #fbbf24; }
