/* ==========================================================================
   App 3: Grok Bot Super User Command Center — Solar Amber + Command Cyan
   ========================================================================== */

.super-hero {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.super-hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.14;
}

.super-summary-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 300px;
}

.super-summary-box > div {
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 26, 0.82);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.super-summary-box strong {
  font-size: 1.08rem;
  color: var(--accent-1);
}

/* Visual Workflow Chain */
.chain-track {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.5rem 0.15rem 0.75rem;
}

.chain-node {
  min-width: 210px;
  flex: 1 0 210px;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 26, 0.84);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
}

.chain-node.disabled {
  opacity: 0.45;
  border-style: dashed;
}

.chain-node.running {
  border-color: #f59e0b;
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
  animation: flowPulse 1s ease-in-out infinite;
}

.chain-node.done {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.11);
}

.chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chain-arrow.lit {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

.macro-console {
  background: rgba(3, 6, 18, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 135px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Cron Timeline */
.cron-display {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(4, 8, 22, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.run-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.run-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 26, 0.78);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

/* Toggle Switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 26, 0.76);
  border: 1px solid var(--border);
}

.switch-btn {
  min-width: 66px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.switch-btn.on {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

/* Command Palette */
.palette-panel {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.palette-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}

.palette-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 12, 28, 0.8);
  color: var(--text-0);
  text-align: left;
}

.palette-item:hover {
  border-color: var(--accent-1);
  background: rgba(245, 158, 11, 0.12);
}

/* ROI Table */
.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.roi-table th,
.roi-table td {
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.roi-table th {
  color: var(--text-2);
  font-size: 0.74rem;
  text-transform: uppercase;
}

/* Challenge Cards */
.challenge-card {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 26, 0.8);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.challenge-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.challenge-opt {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-1);
  font-size: 0.83rem;
}

.challenge-opt:hover { border-color: var(--accent-1); color: var(--text-0); }
.challenge-opt.correct { border-color: #34d399; background: rgba(16, 185, 129, 0.18); color: #ecfdf5; }
.challenge-opt.wrong { border-color: #fb7185; background: rgba(244, 63, 94, 0.18); color: #fff1f2; }

@media (max-width: 900px) {
  .super-summary-box { width: 100%; min-width: 0; }
  .challenge-opts { grid-template-columns: 1fr; }
}
