/* Ralphify docs — custom styles
   Brand gradient: violet (#8B6CF0) → orange (#E06030)
   Matches the CLI banner colors */

/* ── Landing page hero ─────────────────────────────────────── */

/* Full-width gradient banner behind the hero text on the home page */
.md-content[data-md-component="content"] .md-typeset > p:first-of-type {
  font-size: 1.15em;
  line-height: 1.6;
}

/* Style the CTA buttons row */
.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #8B6CF0 0%, #A78BF5 100%);
  border-color: #8B6CF0;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.md-typeset .md-button--primary:hover {
  background: linear-gradient(135deg, #7c5ce0 0%, #9878e5 100%);
  border-color: #7c5ce0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 108, 240, 0.35);
}

.md-typeset .md-button:not(.md-button--primary) {
  border-color: #8B6CF0;
  color: #8B6CF0;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.md-typeset .md-button:not(.md-button--primary):hover {
  background-color: rgba(139, 108, 240, 0.08);
  transform: translateY(-1px);
}

/* ── Feature cards ─────────────────────────────────────────── */

/* Lift cards on hover with a subtle shadow */
.md-typeset .grid.cards > ul > li {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Give card icons a branded tint */
.md-typeset .grid.cards .twemoji,
.md-typeset .grid.cards .middle {
  color: #8B6CF0;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards .twemoji,
[data-md-color-scheme="slate"] .md-typeset .grid.cards .middle {
  color: #A78BF5;
}

/* ── Code blocks ───────────────────────────────────────────── */

/* Softer border radius on code blocks */
.md-typeset pre > code {
  border-radius: 6px;
}

/* Terminal-style output blocks — distinguish from editable code */
.md-typeset .highlight pre {
  border-radius: 6px;
}

/* ── Admonitions ───────────────────────────────────────────── */

/* Slightly softer border radius */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 6px;
}

/* ── Header ────────────────────────────────────────────────── */

/* Subtle gradient on the header bar */
.md-header {
  background: linear-gradient(90deg,
    rgba(139, 108, 240, 0.95) 0%,
    rgba(124, 77, 255, 0.95) 100%
  );
}

/* ── Navigation tabs ───────────────────────────────────────── */

/* Active tab indicator matches the brand purple */
.md-tabs__link--active {
  font-weight: 600;
}

/* ── Content links ─────────────────────────────────────────── */

/* Branded link color */
.md-typeset a:not(.md-button):not(.md-nav__link):not(.md-source):not(.headerlink) {
  color: #7c5ce0;
}

[data-md-color-scheme="slate"] .md-typeset a:not(.md-button):not(.md-nav__link):not(.md-source):not(.headerlink) {
  color: #A78BF5;
}

/* ── Landing page specifics ────────────────────────────────── */

/* Banner image on the home page */
.md-typeset > p:first-child img {
  max-width: 420px;
  margin: 1.5rem auto 0;
  display: block;
}

/* Home page tagline */
.md-typeset > p:nth-of-type(1) strong code {
  background: linear-gradient(135deg, #8B6CF0 0%, #E87B4A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ── Horizontal rules as section dividers ──────────────────── */

.md-typeset hr {
  border-top: 2px solid rgba(139, 108, 240, 0.15);
  margin: 2.5rem 0;
}

[data-md-color-scheme="slate"] .md-typeset hr {
  border-top: 2px solid rgba(167, 139, 245, 0.2);
}

/* ── Footer ────────────────────────────────────────────────── */

.md-footer {
  background: linear-gradient(90deg,
    rgba(139, 108, 240, 0.08) 0%,
    rgba(232, 123, 74, 0.06) 100%
  );
}

[data-md-color-scheme="slate"] .md-footer {
  background: rgba(0, 0, 0, 0.3);
}

/* ── Scrollbar (Webkit) ────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 108, 240, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 108, 240, 0.5);
}
