/* Documentation hub — page-docs.css
   Self-contained styles for /docs.html. Builds on landing.css aesthetics
   without polluting the global stylesheet. */

.docs-hero {
  position: relative;
  padding: calc(var(--topbar-height, 64px) + 64px) 0 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.95) 0%, rgba(8, 18, 28, 0.98) 100%);
  border-bottom: 1px solid rgba(26, 188, 156, 0.15);
}
.docs-hero h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin: 16px 0 12px;
  color: #e6edf3;
  font-weight: 700;
}
.docs-hero .hero-sub {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(230, 237, 243, 0.7);
}
.docs-hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Docs search */
.docs-search {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 44px;
  height: 50px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(26, 188, 156, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.docs-search:focus-within {
  border-color: #1abc9c;
  box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.15);
}
.docs-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #1abc9c;
  font-size: 14px;
  pointer-events: none;
}
.docs-search input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: 0;
  color: #e6edf3;
  font-size: 14px;
  padding: 0;
  height: 100%;
}
.docs-search input::placeholder { color: rgba(230, 237, 243, 0.4); }
.docs-search-meta { flex: 0 0 auto; font-size: 12px; color: rgba(230, 237, 243, 0.55); white-space: nowrap; }

/* Quickstart steps */
.docs-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 16px;
  max-width: 880px;
}
.docs-steps li {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #c4ced9;
}
.docs-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 188, 156, 0.15);
  color: #1abc9c;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
}
.docs-steps li strong { color: #e6edf3; }
.docs-steps li code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #1abc9c;
}

.docs-callout {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(26, 188, 156, 0.08);
  border: 1px solid rgba(26, 188, 156, 0.2);
  border-radius: 8px;
  color: #c4ced9;
  font-size: 14px;
}
.docs-callout i { color: #1abc9c; margin-right: 8px; }
.docs-callout a { color: #1abc9c; text-decoration: underline; text-underline-offset: 3px; }

/* Doc cards grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.docs-card {
  display: block;
  position: relative;
  padding: 22px 20px 60px;
  background: rgba(17, 34, 54, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
  min-height: 180px;
}
.docs-card:hover {
  border-color: #1abc9c;
  transform: translateY(-3px);
  background: rgba(27, 40, 56, 0.75);
}
.docs-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #e6edf3;
  margin: 12px 0 8px;
}
.docs-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 8px;
}
.docs-card h4 i { color: #1abc9c; margin-right: 8px; }
.docs-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.65);
  margin: 0;
}
.docs-card .docs-meta {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 11.5px;
  color: rgba(230, 237, 243, 0.45);
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  letter-spacing: 0.02em;
}
.docs-card-sm { min-height: 110px; padding: 18px 18px 18px; }
.docs-card-sm p { font-size: 13px; }

.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(230, 237, 243, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-pill-primary { background: rgba(26, 188, 156, 0.18); color: #1abc9c; }
.docs-pill-warn { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }

.docs-subheading {
  font-size: 22px;
  color: #e6edf3;
  margin: 56px 0 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* FAQ */
.docs-faq {
  max-width: 880px;
  margin: 24px 0;
}
.docs-faq details {
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 150ms ease;
}
.docs-faq details[open] {
  border-color: rgba(26, 188, 156, 0.3);
}
.docs-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: #e6edf3;
  position: relative;
  user-select: none;
}
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 188, 156, 0.15);
  color: #1abc9c;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  transition: transform 200ms ease;
}
.docs-faq details[open] summary::after { content: "−"; }
.docs-faq p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(230, 237, 243, 0.7);
}
.docs-faq a { color: #1abc9c; text-underline-offset: 3px; }
.docs-faq code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
}

/* Active topbar link */
.topbar .nav-links li a.active {
  color: #1abc9c;
}

@media (max-width: 720px) {
  .docs-hero h1 { font-size: 1.7rem; }
  .docs-hero .hero-sub { font-size: 0.95rem; }
  .docs-hero-cta { flex-direction: column; }
  .docs-hero-cta .btn { width: 100%; }
  .docs-search { padding-right: 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .docs-search-meta { width: 100%; padding-top: 4px; }
}

/* Hero logo */
.docs-hero-logo {
  display: block;
  margin: 0 auto 16px;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(26, 188, 156, 0.25));
}
