/* Descope MCP Docs — Refined theme */

:root {
  --font-geist-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  --descope-primary: #0066cc;
  --descope-primary-dim: #0052a3;
  --descope-accent: #0891b2;
  --descope-bg: #0f1419;
  --descope-bg-elevated: #1a2332;
  --descope-bg-subtle: #151c26;
  --descope-border: #2d3a4a;
  --descope-border-subtle: #1e2936;
  --descope-text: #f1f5f9;
  --descope-text-secondary: #94a3b8;
  --descope-text-muted: #64748b;
  --descope-code: #67e8f9;
}

.descope-page {
  background-color: var(--descope-bg);
  color: var(--descope-text);
  min-height: 100vh;
  font-family: var(--font-geist-sans);
}

/* Layout */
.descope-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .descope-container {
    padding: 0 1.5rem;
  }
}

.descope-section {
  padding: 4rem 0 5rem;
}

.descope-section:last-of-type {
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .descope-section {
    padding: 5rem 0 6rem;
  }

  .descope-section:last-of-type {
    padding-bottom: 2.5rem;
  }
}

.descope-section-header {
  margin-bottom: 2rem;
}

.descope-section-header + * {
  margin-top: 0;
}

.descope-section-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--descope-text-muted);
  margin-top: 0.375rem;
  max-width: 36rem;
}

.descope-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .descope-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Hero */
.descope-hero {
  padding: 4rem 0 5rem;
  position: relative;
}

.descope-hero::before,
.descope-hero::after {
  display: none;
}

.descope-hero-content {
  position: relative;
}

.descope-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--descope-text);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .descope-title {
    font-size: 3.5rem;
  }
}

.descope-hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--descope-text-secondary);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.descope-server-url-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-radius: 8px;
  background: var(--descope-bg-elevated);
  border: 1px solid var(--descope-border);
  font-family: var(--font-geist-mono);
  font-size: 0.8125rem;
  color: var(--descope-code);
}

.descope-server-url-pill code {
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.descope-server-url-pill:hover {
  border-color: var(--descope-border);
}

/* Section headings */
.descope-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--descope-text);
  margin: 0;
}

@media (min-width: 768px) {
  .descope-section-title {
    font-size: 1.75rem;
  }
}

.descope-bg-card {
  background: var(--descope-bg-subtle);
}

/* Tool cards */
.descope-tool-card {
  background: var(--descope-bg-elevated);
  border: 1px solid var(--descope-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.descope-tool-card:hover {
  border-color: var(--descope-border);
}

.descope-tool-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--descope-bg-subtle);
  color: var(--descope-text-secondary);
}

.descope-tool-card:hover .descope-tool-icon {
  color: var(--descope-primary);
}

.descope-tool-badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--descope-bg-subtle);
  border: 1px solid var(--descope-border-subtle);
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  max-width: fit-content;
}

.descope-tool-card .descope-tool-desc {
  margin-top: auto;
}

.descope-tool-badge-text {
  color: var(--descope-code);
  font-family: var(--font-geist-mono);
}

.descope-tool-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--descope-text);
  margin: 0 0 0.5rem;
}

.descope-tool-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--descope-text-secondary);
  margin: 0;
}

/* Prompt list */
.descope-prompt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.descope-prompt-list li {
  font-size: 0.875rem;
  font-family: var(--font-geist-mono);
  color: var(--descope-text-secondary);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.375rem;
  background: var(--descope-bg);
  border: 1px solid var(--descope-border-subtle);
  border-radius: 6px;
  line-height: 1.5;
}

.descope-prompt-list li:last-child {
  margin-bottom: 0;
}

/* Prompt categories */
.descope-prompt-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.descope-prompt-category {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.descope-prompt-category-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--descope-text);
  margin: 0;
}

.descope-prompt-category-advanced {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--descope-border-subtle);
}

.descope-prompt-advanced-intro {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--descope-text-secondary);
  margin: 0 0 0.75rem;
}

.descope-prompt-list-advanced li {
  font-size: 0.8125rem;
  padding: 0.625rem 0.75rem;
}

.descope-prompt-tip {
  font-size: 0.8125rem;
  color: var(--descope-text-muted);
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--descope-bg);
  border: 1px solid var(--descope-border-subtle);
  border-radius: 6px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .descope-prompt-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .descope-prompt-category-advanced {
    grid-column: 1 / -1;
  }
}

/* Code blocks */
.descope-code-block {
  position: relative;
  background: var(--descope-bg);
  border: 1px solid var(--descope-border-subtle);
  border-radius: 6px;
  padding: 1rem 3rem 1rem 1.25rem;
  transition: border-color 0.15s ease;
}

.descope-code-block:hover {
  border-color: var(--descope-border);
}

.descope-code-text {
  color: var(--descope-text-secondary);
  font-size: 0.8125rem;
  font-family: var(--font-geist-mono);
  line-height: 1.6;
}

.text-sm { font-size: 0.8125rem; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-all { word-break: break-all; }
.mt-4 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Links */
.descope-link {
  color: var(--descope-primary);
  text-decoration: none;
  font-weight: 500;
}

.descope-link:hover {
  text-decoration: underline;
  color: var(--descope-primary-dim);
}

/* Footer */
.descope-footer {
  padding: 2rem 0;
  margin-top: 0;
  border-top: 1px solid var(--descope-border-subtle);
}

.descope-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .descope-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.descope-footer-brand {
  margin: 0;
}

.descope-footer-text {
  font-size: 0.8125rem;
  color: var(--descope-text-muted);
  margin: 0;
  line-height: 1.5;
}

.descope-footer-text .descope-link {
  color: var(--descope-text-secondary);
}

.descope-footer-text .descope-link:hover {
  color: var(--descope-text);
}

.descope-footer-nav {
  display: flex;
  gap: 1.5rem;
}

.descope-footer-nav .descope-link {
  font-size: 0.8125rem;
  color: var(--descope-text-muted);
}

.descope-footer-nav .descope-link:hover {
  color: var(--descope-text-secondary);
}

.descope-footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--descope-border-subtle);
  width: 100%;
}

.descope-footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--descope-text-muted);
}

/* Install tabs */
.install-tabs {
  width: 100%;
}

.install-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--descope-bg);
  border: 1px solid var(--descope-border-subtle);
  border-radius: 8px;
}

.install-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--descope-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.install-tab:hover {
  color: var(--descope-text-secondary);
  background: var(--descope-bg-subtle);
}

.install-tab-active {
  color: var(--descope-text);
  background: var(--descope-bg-elevated);
  border: 1px solid var(--descope-border);
}

.install-tab-icon {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  opacity: 0.9;
}

.install-tab-icon-placeholder {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 4px;
  background: var(--descope-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--descope-text-muted);
}

.install-tab-label {
  white-space: nowrap;
}

.install-tab-panels {
  min-height: 10rem;
}

.install-panel {
  animation: none;
}

.install-panel-intro {
  color: var(--descope-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.install-panel-intro code {
  background: var(--descope-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--descope-code);
  border: 1px solid var(--descope-border-subtle);
}

.install-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  color: var(--descope-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.install-steps li {
  margin-bottom: 0.375rem;
}

.install-steps code {
  background: var(--descope-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--descope-code);
}

.install-inline-code {
  background: var(--descope-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--descope-code);
  word-break: break-all;
  border: 1px solid var(--descope-border-subtle);
}

/* Copy button */
.descope-copy-button {
  padding: 0.375rem;
  background: var(--descope-bg-elevated);
  border: 1px solid var(--descope-border);
  color: var(--descope-text-muted);
  border-radius: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.descope-copy-button:hover {
  color: var(--descope-text);
  border-color: var(--descope-border);
}

.descope-code-block .descope-copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
