/* Mini Interactive Logic Demo for SQGATE Blog */
.sqgate-mini-demo {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.demo-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.demo-title {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.demo-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.demo-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}

.switch-btn {
  width: 40px;
  height: 24px;
  background: #334155;
  border-radius: 12px;
  position: relative;
  transition: 0.3s;
}

.switch-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.demo-switch.active .switch-btn {
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.demo-switch.active .switch-btn::after {
  transform: translateX(16px);
}

.demo-logic-block {
  padding: 20px 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: #fff;
  text-align: center;
  min-width: 150px;
}

.demo-output-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-led {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}

.led-bulb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #1e293b;
  transition: 0.2s;
}

.demo-led.active .led-bulb {
  background: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.8);
  border-color: #22c55e;
}
