/* Auxilium Docs — Stripe-inspired theme */

:root {
  --color-accent: #0D7377;
  --color-accent-light: #14919B;
  --color-accent-dark: #0A5C5F;
  --color-accent-bg: rgba(13, 115, 119, 0.06);
  --color-secondary: #D4882B;
  --color-text: #1A1D21;
  --color-text-heading: #1A1D21;
  --color-text-light: #5F6368;
  --color-text-disabled: #9CA3AF;
  --color-border: #E3E8EE;
  --color-border-default: #D8DEE4;
  --color-bg: #FFFFFF;
  --color-bg-sidebar: #F7F8FA;
  --color-bg-code: #F7F8FA;
  --color-bg-callout: rgba(13, 115, 119, 0.06);
  --color-success: #2E7D32;
  --color-warning: #E6890E;
  --color-danger: #C62828;
  --color-info: #0277BD;
  --shadow-xs: 0px 1px 1px rgba(18, 42, 66, 0.04);
  --shadow-sm: 0px 1px 1px rgba(18, 42, 66, 0.03), 0px 3px 6px rgba(18, 42, 66, 0.02);
  --shadow-md: 0px 2px 4px rgba(18, 42, 66, 0.04), 0px 6px 12px rgba(18, 42, 66, 0.03);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, monospace;
  --sidebar-width: 260px;
  --header-height: 56px;
  --content-max-width: 780px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text-heading);
  letter-spacing: -0.3px;
}

.site-header .logo-icon {
  width: 28px;
  height: 28px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header .nav-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav a:hover {
  color: var(--color-accent);
}

/* ── Layout ── */
.site-wrapper {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-title {
  display: block;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-light);
}

.sidebar-section-title a {
  color: inherit;
  text-decoration: none;
}

.sidebar-section-title a:hover {
  color: var(--color-accent);
}

.sidebar a {
  display: block;
  padding: 6px 24px 6px 32px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.12s;
  border-left: 2px solid transparent;
}

.sidebar a:hover {
  color: var(--color-accent);
  background: rgba(13, 115, 119, 0.04);
}

.sidebar a.active {
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
  background: rgba(13, 115, 119, 0.06);
}

/* ── Main content ── */
.content-area {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px 48px 80px;
  max-width: calc(var(--content-max-width) + var(--sidebar-width) + 96px);
}

.content {
  max-width: var(--content-max-width);
}

/* ── Typography ── */
.content h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.content .subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.5;
}

.content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.2px;
}

.content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin: 32px 0 12px;
}

.content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin: 24px 0 8px;
}

.content p {
  margin-bottom: 16px;
}

.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
}

.content a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.content a:hover {
  text-decoration: underline;
}

.content strong {
  color: var(--color-text-heading);
  font-weight: 600;
}

/* ── Code ── */
.content code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--color-bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text-heading);
}

.content pre {
  background: #1A1D21;
  color: #e3e8ee;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── Tables ── */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.content th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--color-text-heading);
  border-bottom: 2px solid var(--color-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

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

/* ── Images / Screenshots ── */
.content img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 16px 0 24px;
  box-shadow: var(--shadow-sm);
}

/* ── Callouts ── */
.callout {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.callout-info {
  background: rgba(2, 119, 189, 0.06);
  border-left: 3px solid var(--color-info);
}

.callout-info .callout-title { color: var(--color-info); }

.callout-warning {
  background: rgba(230, 137, 14, 0.06);
  border-left: 3px solid var(--color-warning);
}

.callout-warning .callout-title { color: #B56B0A; }

.callout-danger {
  background: rgba(198, 40, 40, 0.06);
  border-left: 3px solid var(--color-danger);
}

.callout-danger .callout-title { color: var(--color-danger); }

.callout-success {
  background: rgba(46, 125, 50, 0.06);
  border-left: 3px solid var(--color-success);
}

.callout-success .callout-title { color: #1B5E20; }

/* ── Cards grid (for section listings) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

.card-title {
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 6px;
  font-size: 15px;
}

.card-description {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  color: var(--color-border);
}

/* ── Steps ── */
.steps {
  counter-reset: step-counter;
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
  min-height: 32px;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ── API endpoint badges ── */
.method-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.method-get { background: rgba(46, 125, 50, 0.08); color: var(--color-success); }
.method-post { background: rgba(2, 119, 189, 0.08); color: var(--color-info); }
.method-patch { background: rgba(230, 137, 14, 0.08); color: var(--color-warning); }
.method-delete { background: rgba(198, 40, 40, 0.08); color: var(--color-danger); }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-heading);
  background: var(--color-bg-code);
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ── Footer ── */
.site-footer {
  margin-left: var(--sidebar-width);
  padding: 32px 48px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 13px;
}

/* ── Home page ── */
.hero {
  text-align: center;
  padding: 80px 0 48px;
}

.hero h1 {
  font-size: 44px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.hero-cta:hover {
  background: var(--color-accent-light);
  text-decoration: none;
  color: #fff;
}

.home-sections {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .content-area { margin-left: 0; }
  .site-footer { margin-left: 0; }
}

@media (max-width: 640px) {
  .content-area { padding: 24px 20px 60px; }
  .content h1 { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 0 32px; }
}
