/* Progressive Screen-by-Screen Google Stitch Slot & Blueprint Card Styles
 * Extracted companion to voice-discovery-stitch.css (kept strictly <= 1,000 lines).
 */

.vd-stitch-generating-elapsed {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #DBEAFE;
  font-family: var(--vd-font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.vd-stitch-progress-bar.is-determinate {
  position: relative;
  inset: auto;
  height: 100%;
  animation: none;
  background: linear-gradient(90deg, #10B981, #3B82F6);
  transition: width 0.25s ease;
}

/* Slot Status Tab Badges */
.vd-stitch-tab[data-slot-status="queued"] .vd-stitch-tab-index {
  background-color: rgba(100, 116, 139, 0.26);
  color: #E2E8F0;
}

.vd-stitch-tab[data-slot-status="designing"] {
  border-color: rgba(34, 211, 238, 0.5);
}

.vd-stitch-tab[data-slot-status="designing"] .vd-stitch-tab-index {
  background-color: rgba(6, 182, 212, 0.25);
  color: #A5F3FC;
}

.vd-stitch-tab[data-slot-status="ready"] .vd-stitch-tab-index {
  background-color: rgba(16, 185, 129, 0.24);
  color: #A7F3D0;
}

.vd-stitch-tab[data-slot-status="failed"] {
  border-color: rgba(248, 113, 113, 0.55);
  color: #FECACA;
}

.vd-stitch-tab[data-slot-status="failed"] .vd-stitch-tab-index {
  background-color: rgba(239, 68, 68, 0.28);
  color: #FEE2E2;
}

.vd-stitch-tab-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.vd-stitch-tab-status-icon.is-designing svg {
  color: #22D3EE;
  animation: vd-stitch-spin 0.95s linear infinite;
}

.vd-stitch-tab-status-icon.is-ready {
  color: #34D399;
}

.vd-stitch-tab-status-icon.is-failed {
  color: #F87171;
}

.vd-stitch-tab-status-icon.is-queued {
  color: #94A3B8;
}

/* Stage Blueprint Card & Scrollable Loading Overlay */
#vd-stitch-loading {
  overflow-y: auto;
  justify-content: flex-start;
  padding: 24px 20px;
}

#vd-stitch-loading.is-slot-failed > .vd-stitch-spinner-svg {
  display: none;
}

.vd-stitch-blueprint-card {
  width: min(560px, 100%);
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 10px;
  background-color: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.32);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.vd-stitch-blueprint-card.is-failed {
  border-color: rgba(248, 113, 113, 0.58);
  background-color: rgba(45, 18, 24, 0.92);
}

.vd-stitch-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.vd-stitch-blueprint-title {
  margin: 0;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #F9FAFB;
}

.vd-stitch-blueprint-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vd-stitch-blueprint-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-family: var(--vd-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #A5F3FC;
  background-color: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.45);
}

.vd-stitch-blueprint-status.is-queued {
  color: #E2E8F0;
  background-color: rgba(100, 116, 139, 0.24);
  border-color: rgba(148, 163, 184, 0.4);
}

.vd-stitch-blueprint-status.is-failed {
  color: #FEE2E2;
  background-color: rgba(239, 68, 68, 0.26);
  border-color: rgba(248, 113, 113, 0.55);
}

.vd-stitch-blueprint-subtitle {
  margin: 0;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 12.5px;
  color: #E5E7EB;
  line-height: 1.5;
}

.vd-stitch-blueprint-section-label {
  font-family: var(--vd-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93C5FD;
  margin-bottom: 4px;
}

.vd-stitch-blueprint-viz-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #D1D5DB;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 12px;
  line-height: 1.45;
}

.vd-stitch-blueprint-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vd-stitch-blueprint-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  font-family: var(--vd-font-mono, monospace);
  font-size: 11px;
  color: #E2E8F0;
}

.vd-stitch-blueprint-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.vd-stitch-blueprint-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--vd-font-mono, monospace);
  font-size: 11.5px;
  color: #CBD5E1;
}

.vd-stitch-blueprint-reassurance {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #DBEAFE;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 12px;
  line-height: 1.45;
}

.vd-stitch-blueprint-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #FEE2E2;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 12px;
  line-height: 1.45;
}

.vd-stitch-slot-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 140px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  background-color: rgba(220, 38, 38, 0.26);
  color: #FEF2F2;
  font-family: var(--vd-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vd-stitch-slot-retry-btn:hover:not(:disabled) {
  background-color: rgba(220, 38, 38, 0.42);
  border-color: #FCA5A5;
}

.vd-stitch-slot-retry-btn:focus-visible {
  outline: 2px solid var(--vd-border-focus, #60A5FA);
  outline-offset: 2px;
}

.vd-stitch-slot-retry-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .vd-stitch-progress-bar.is-determinate,
  .vd-stitch-slot-retry-btn {
    transition: none !important;
  }
  .vd-stitch-tab-status-icon.is-designing svg {
    animation: none !important;
  }
}
