/* Styles for the unlisted 'How AI Actually Works' article.
 * Linked from src/content/articles/how-ai-actually-works.mdx
 * (extracted out of the MDX so MDX doesn't try to parse the {} as JSX). */

/* ─── Prediction demo (Chapter 1) ─── */
  .ai-demo {
    background: white;
    border: 1px solid rgb(var(--gray-light));
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    margin: 1.5rem 0 2rem !important;
  }
  .ai-demo-label {
    margin: 0 0 0.85rem 0 !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
  }
  .ai-demo-window {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 5em;
    color: rgb(var(--gray-dark));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  .ai-demo-prompt {
    color: rgb(var(--gray));
  }
  .ai-demo-continuation {
    color: rgb(var(--black));
    font-weight: 500;
  }
  .ai-demo-cursor {
    color: var(--accent);
    font-weight: 700;
    margin-left: 1px;
    animation: ai-demo-blink 0.85s steps(2, end) infinite;
  }
  @keyframes ai-demo-blink {
    to { opacity: 0; }
  }
  .ai-demo-footer {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .ai-demo-hint {
    font-size: 0.85rem;
    color: rgb(var(--gray));
    font-style: italic;
  }
  .ai-demo-next {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
  }
  .ai-demo-next:hover:not(:disabled) {
    background: var(--accent);
    color: white;
  }
  .ai-demo-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

/* ─── SVG figures (Chapter 2 timeline + Chapter 3 attention) ─── */
  /* Shared styles for the two SVG figures (timeline + attention). */
  .ai-figure {
    margin: 1.5rem 0 2rem !important;
    background: white;
    border: 1px solid rgb(var(--gray-light));
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
  }
  .ai-figure svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .ai-figure figcaption {
    margin-top: 0.85rem;
    font-size: 0.92rem;
    color: rgb(var(--gray-dark));
    line-height: 1.5;
    text-align: center;
  }
  .ai-timeline svg {
    max-width: 720px;
  }
  .ai-attention svg {
    max-width: 640px;
  }
