/* ══════════════════════════════════════════════════════════════
   BUILD WAIT THEATER — CRT Aesthetic Enhanced Wait Experience
   ══════════════════════════════════════════════════════════════ */

.bwt-container {
  margin: 16px 0 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(74, 255, 204, 0.06);
  animation: bwt-fade-in 0.6s ease-out;
}
.bwt-container--exit {
  animation: bwt-fade-out 0.6s ease-out forwards;
}

@keyframes bwt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bwt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ── ASCII Module Art ────────────────────────────────────── */
.bwt-ascii-wrap {
  text-align: center;
  margin: 12px 0 20px;
}

.bwt-ascii {
  font-family: 'VT323', 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.35;
  color: var(--accent2, #4affcc);
  text-shadow: 0 0 8px rgba(74, 255, 204, 0.25),
               0 0 20px rgba(74, 255, 204, 0.08);
  display: inline-block;
  text-align: left;
  background: rgba(2, 1, 10, 0.5);
  padding: 12px 20px;
  border: 1px solid rgba(74, 255, 204, 0.08);
  border-radius: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: pre;
  letter-spacing: 1px;
}

.bwt-ascii--updating {
  opacity: 0.3;
  transform: scale(0.98);
}

.bwt-ascii-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(74, 255, 204, 0.3);
  margin-top: 8px;
  animation: bwt-label-pulse 3s ease-in-out infinite;
}

@keyframes bwt-label-pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.6; }
}

/* ── Synthesis Fact Ticker ───────────────────────────────── */
.bwt-fact-wrap {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(180, 138, 255, 0.03);
  border-left: 2px solid rgba(180, 138, 255, 0.2);
  border-radius: 0 4px 4px 0;
}

.bwt-fact-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(180, 138, 255, 0.4);
  margin-bottom: 6px;
}

.bwt-fact-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(224, 216, 240, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 1.5em;
}

.bwt-fact-text--exit {
  opacity: 0;
  transform: translateY(-4px);
}

.bwt-fact-text--enter {
  animation: bwt-fact-enter 0.5s ease-out;
}

@keyframes bwt-fact-enter {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Category Flavor Lines ───────────────────────────────── */
.bwt-flavor-wrap {
  margin: 12px 0 4px;
  min-height: 80px;
  position: relative;
}

.bwt-flavor-line {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: rgba(74, 255, 204, 0.35);
  padding: 2px 0 2px 8px;
  border-left: 1px solid rgba(74, 255, 204, 0.08);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

.bwt-flavor-line--visible {
  opacity: 1;
  transform: translateX(0);
}

.bwt-flavor-line--exit {
  opacity: 0;
  transform: translateX(8px);
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease,
              padding 0.3s ease, margin 0.3s ease;
}

/* Highlight newest flavor line */
.bwt-flavor-line:last-child {
  color: rgba(74, 255, 204, 0.55);
}

/* ── ETA Display ─────────────────────────────────────────── */
.bwt-eta {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
  text-align: right;
  margin-top: 8px;
}

/* ── Scanline overlay for extra CRT feel ─────────────────── */
.bwt-ascii::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  border-radius: 4px;
}

/* Make ASCII wrap relative for scanline overlay */
.bwt-ascii {
  position: relative;
  overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .bwt-ascii {
    font-size: 10px;
    padding: 8px 12px;
  }
  .bwt-fact-wrap {
    padding: 10px 12px;
  }
  .bwt-fact-text {
    font-size: 10px;
  }
}
