/* docs.css uses theme variables from theme.css */

.content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px 60px;
  box-sizing: border-box;
}

/* HERO */
.docs-hero {
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--table-border);
  background: var(--container-bg);
  position: relative;
  overflow: hidden;
}

/* subtle accent wash that adapts to theme */
.docs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.10),
    rgba(0, 0, 0, 0.00) 55%
  );
  pointer-events: none;
}

/* slightly different wash for dark theme */
[data-theme="dark"] .docs-hero::before {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.16),
    rgba(0, 0, 0, 0.00) 55%
  );
}

.docs-hero-inner {
  position: relative;
  z-index: 1;
}

.docs-hero-inner h2 {
  margin: 0;
  font-size: 34px;
  color: var(--heading-color);
}

.docs-hero-inner p {
  margin: 10px 0 0;
  max-width: 900px;
  color: var(--text-color);
  opacity: 0.92;
  line-height: 1.6;
}

/* SEARCH */
.docs-search {
  margin-top: 18px;
}

.docs-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--table-border);
  background: var(--toggle-bg);
  color: var(--text-color);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}

.docs-search input::placeholder {
  color: var(--subtle-text-color);
}

.docs-search input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

[data-theme="dark"] .docs-search input:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* QUICK LINKS PILLS */
.docs-quicklinks {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  border: 1px solid var(--table-border);
  background: var(--toggle-bg);
}

.docs-pill:hover {
  border-color: var(--accent-color);
  color: var(--heading-color);
}

/* GRID */
.docs-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* CARDS */
.docs-card {
  background: var(--container-bg);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--table-border);
  box-shadow: var(--box-shadow);
  min-height: 150px;
}

.docs-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--heading-color);
}

.docs-card p {
  margin: 8px 0 0;
  color: var(--text-color);
  opacity: 0.92;
  line-height: 1.5;
}

.docs-card-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.docs-card-links a {
  color: var(--link-color);
  font-weight: bold;
  text-decoration: none;
}

.docs-card-links a:hover {
  text-decoration: underline;
}

/* FOOTER CTA */
.docs-footer-cta {
  margin-top: 22px;
  background: var(--main-section-bg);
  border: 1px solid var(--table-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--box-shadow);
}

.docs-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-footer-cta h3 {
  margin: 0;
  font-size: 18px;
  color: var(--heading-color);
}

.docs-footer-cta p {
  margin: 8px 0 0;
  color: var(--text-color);
  opacity: 0.92;
}

.docs-footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.secondary-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}

.secondary-link:hover {
  text-decoration: underline;
}

.cta-button {
  color: var(--link-color);
  text-decoration: none;
}

.cta-button:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-hero-inner h2 {
    font-size: 28px;
  }
}

/* Additions for individual docs pages */

.docs-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-top: 22px;
  align-items: start;
}

.docs-page-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.docs-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.docs-page-sidebar a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}

.docs-page-sidebar a:hover {
  text-decoration: underline;
}

.docs-card ol,
.docs-card ul {
  padding-left: 20px;
  line-height: 1.7;
}

.docs-card pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--toggle-bg);
  border: 1px solid var(--table-border);
}

.docs-card code {
  font-family: monospace;
}

@media (max-width: 900px) {
  .docs-page-shell {
    grid-template-columns: 1fr;
  }

  .docs-page-sidebar {
    position: static;
  }
}
