/* TaleNode docs — dark game dev aesthetic with amber accents */

/* ---- Hero section ---- */
.tx-hero {
  margin: 0 -0.8rem;
  padding: 5rem 1rem 4rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Dark mode hero — slightly darker than page with amber glow at bottom */
[data-md-color-scheme="slate"] .tx-hero {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 193, 7, 0.12);
}

/* Light mode hero — dark banner with amber warmth, intentionally contrasts white page */
[data-md-color-scheme="default"] .tx-hero {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #181818 0%, #242424 100%);
  border: 1px solid rgba(255, 193, 7, 0.15);
  color: #e0e0e0;
}

.tx-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tx-hero .tx-hero__tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero buttons — amber primary, ghost secondary */
.tx-hero .md-button {
  margin: 0.25rem;
}

.tx-hero .md-button--primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #1a1a1a;
  font-weight: 600;
}

.tx-hero .md-button--primary:hover {
  background-color: #ffca28;
  border-color: #ffca28;
}

.tx-hero .md-button:not(.md-button--primary) {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

.tx-hero .md-button:not(.md-button--primary):hover {
  border-color: #ffc107;
  color: #ffc107;
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ---- Node color badges ---- */
.node-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.node-badge--start     { background: #4CAF50; }
.node-badge--dialogue  { background: #4285F4; }
.node-badge--choice    { background: #FBBC04; color: #1a1a1a; }
.node-badge--condition { background: #FF9800; }
.node-badge--event     { background: #AB47BC; }
.node-badge--random    { background: #9E9E9E; }
.node-badge--end       { background: #F44336; }
.node-badge--subgraph  { background: #00BCD4; }

/* Keyboard shortcut styling */
.shortcut-table td:first-child {
  white-space: nowrap;
}

/* Tighter admonition spacing */
.md-typeset .admonition {
  margin-bottom: 1rem;
}

/* Port direction indicators */
.port-in::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.port-out::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6cf;
  margin-right: 0.4rem;
  vertical-align: middle;
}
