/* ============================================
   USE AI SYSTEMS — Terminal Boot Sequence
   ============================================ */

/* --- ASCII Art Block --- */
.ascii-block {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  /* Start hidden, will animate in */
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ascii-block.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* The actual ASCII text */
.ascii-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(5px, 1.5vw, 12px);
  line-height: 1.2;
  font-weight: 700;
  white-space: pre;
  margin: 0;
  padding: 0;
  /* Force consistent character width */
  -webkit-font-feature-settings: "liga" 0;
  font-feature-settings: "liga" 0;
  letter-spacing: 0;
  /* Purple base + shimmer gradient clipped to text only */
  color: #b48bfa;
  background: linear-gradient(
    90deg,
    #b48bfa 0%,
    #b48bfa 35%,
    #ffffff 48%,
    #e8d5ff 50%,
    #ffffff 52%,
    #b48bfa 65%,
    #b48bfa 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer animation on the text gradient */
@keyframes text-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* Initial shimmer once visible */
.ascii-block.visible .ascii-text {
  animation: text-shimmer 2.5s ease-in-out 0.8s forwards;
}

/* No repeat — single sweep only */

/* --- Terminal Lines --- */
.line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.5em;
}

.line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Empty lines need less height */
.line.empty {
  min-height: 0.8em;
}

/* --- Color Classes --- */
.c-green   { color: #28c840; }
.c-cyan    { color: #00d4aa; }
.c-yellow  { color: #febc2e; }
.c-purple  { color: #b48bfa; }
.c-muted   { color: #666; }
.c-white   { color: #e5e5e5; }
.c-red     { color: #ff5f57; }
.c-blue    { color: #5cb3ff; }
.c-bold    { font-weight: 700; }
.c-dim     { color: #3a3a3a; }

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-size: 11px;
  color: #777;
  margin: 2px 3px 2px 0;
  transition: border-color 0.3s ease;
}
.tag:hover {
  border-color: #666;
  color: #aaa;
}

/* --- Blinking cursor --- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: #00d4aa;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 3px;
  border-radius: 1px;
}

/* --- Links --- */
a {
  color: #5cb3ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #7dc4ff;
  text-decoration: underline;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* --- Selection --- */
::selection {
  background: rgba(180, 139, 250, 0.25);
  color: #fff;
}
