/* Moon Rush Launchpad — documentation (extends launch.css) */

.docs-hero {
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(77, 232, 255, 0.06) 0%, rgba(155, 109, 255, 0.05) 55%, rgba(8, 12, 28, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.docs-hero .eyebrow {
  margin-bottom: 0.65rem;
}

.docs-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.docs-hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.docs-hero .lead {
  max-width: 52rem;
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.docs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.docs-pill:hover {
  border-color: var(--border-bright);
  background: rgba(77, 232, 255, 0.08);
  color: var(--cyan);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .docs-sidebar {
    position: static !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.25rem 0.5rem;
  }
  .docs-sidebar h4 {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
  .docs-sidebar h4:first-child {
    margin-top: 0;
  }
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  background: rgba(8, 12, 28, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 0.85rem;
}

.docs-sidebar h4 {
  margin: 1rem 0 0.5rem 0.55rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar a {
  display: block;
  padding: 0.42rem 0.65rem;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  border-left: 2px solid transparent;
}

.docs-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-sidebar a.active {
  color: var(--cyan);
  background: rgba(77, 232, 255, 0.07);
  border-left-color: var(--cyan);
}

.docs-content {
  min-width: 0;
}

.docs-content section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(120, 160, 255, 0.08);
  scroll-margin-top: 5.5rem;
}

.docs-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.docs-section-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.docs-content h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.docs-content h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.55rem;
  color: var(--gold);
  font-weight: 600;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.2rem;
  margin: 0.65rem 0 1rem;
}

.docs-content li + li {
  margin-top: 0.35rem;
}

.docs-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em;
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(120, 160, 255, 0.12);
  color: #d4e4ff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}

.trust-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  transition: border-color 0.15s;
}

.trust-card:hover {
  border-color: rgba(77, 232, 255, 0.22);
}

.trust-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.trust-card span,
.trust-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.docs-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.docs-flow-step {
  position: relative;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.docs-flow-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  background: rgba(77, 232, 255, 0.14);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
}

.docs-flow-step strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.docs-flow-step p {
  margin: 0;
  font-size: 0.8rem;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.88rem;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid rgba(120, 160, 255, 0.1);
  padding: 0.7rem 0.95rem;
  text-align: left;
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table th {
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.docs-table td strong {
  color: var(--text);
}

.docs-callout {
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.docs-callout.info {
  background: rgba(77, 232, 255, 0.06);
  border: 1px solid rgba(77, 232, 255, 0.2);
  color: #b8e8f5;
}

.docs-callout.warn {
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.22);
  color: #f0dfa8;
}

.docs-callout.success {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.22);
  color: #b8f0c4;
}

.docs-callout strong {
  color: var(--text);
}

.docs-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  vertical-align: middle;
}

.docs-badge.live {
  background: rgba(76, 175, 80, 0.16);
  color: #8dffb0;
}

.docs-badge.soon {
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
}

.address-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.address-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.address-panel-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.address-panel-body {
  padding: 0.25rem 0;
}

.address-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(120, 160, 255, 0.08);
}

.address-row:last-child {
  border-bottom: none;
}

.address-row .chain-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
}

.address-field {
  margin-bottom: 0.55rem;
}

.address-field:last-child {
  margin-bottom: 0;
}

.address-field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.address-field-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.address-field-value code {
  word-break: break-all;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  flex: 1;
  min-width: 0;
}

.btn-copy-addr {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy-addr:hover {
  color: var(--cyan);
  border-color: rgba(77, 232, 255, 0.35);
}

.address-explorer {
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
}

.solana-programs {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(77, 232, 255, 0.03);
}

.solana-programs h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 720px) {
  .address-row {
    grid-template-columns: 1fr;
  }
  .address-explorer {
    justify-self: start;
  }
}

.contract-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.contract-tab {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.contract-tab:hover {
  color: var(--text);
}

.contract-tab.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(77, 232, 255, 0.1);
}

.code-panel {
  background: #04060f;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
}

.code-panel-header code {
  color: var(--gold);
}

.code-panel pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  max-height: 520px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #c8d4f0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.code-panel .kw { color: #c792ea; }
.code-panel .str { color: #c3e88d; }
.code-panel .com { color: #546e7a; font-style: italic; }
.code-panel .typ { color: #82aaff; }

.contract-links {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.contract-links a {
  margin-right: 0.15rem;
}

.verify-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.verify-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.15rem 0 0.15rem 2.65rem;
  margin-bottom: 0.85rem;
}

.verify-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(77, 232, 255, 0.12);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
}

.manage-tip {
  font-size: 0.88rem;
  line-height: 1.55;
}

.lp-nav a.active-nav {
  color: var(--cyan);
}

.docs-footer-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
