﻿:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #516079;
  --line: #dde5f0;
  --accent: #0ea5a6;
  --accent-2: #f97316;
  --method: #0f766e;
  --danger: #be123c;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Sora", sans-serif;
  background: radial-gradient(circle at 20% -20%, #d7fbf9 0%, transparent 45%),
              radial-gradient(circle at 80% -10%, #ffe7d2 0%, transparent 43%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.bg-orb { position: fixed; z-index: -1; filter: blur(56px); opacity: .45; }
.orb-a { width: 220px; height: 220px; background: #2dd4bf; top: 8%; left: -45px; }
.orb-b { width: 260px; height: 260px; background: #fb923c; right: -65px; top: 20%; }

.hero { max-width: 1280px; margin: 0 auto; padding: 34px 24px 18px; }
.eyebrow {
  display: inline-block; margin: 0; padding: 6px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; background: #ccfbf1;
}
.hero h1 { margin: 10px 0 8px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
.hero h1 span { color: #334155; font-weight: 600; }
.subtitle { margin: 0 0 18px; color: var(--muted); max-width: 780px; }

.controls { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
label {
  display: grid; gap: 6px; font-size: 12px; color: #334155; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
select, input {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; font-family: inherit; font-size: 14px;
  color: var(--ink); background: #fff;
}
input:focus, select:focus { outline: none; border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .2); }

.base-url-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(6px);
}
.base-url-box span { color: #334155; font-weight: 700; font-size: 13px; }
code {
  font-family: "Space Mono", monospace; background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4;
  border-radius: 10px; padding: 4px 8px; font-size: 12px;
}
.ghost-btn {
  border: 1px solid #0f766e; background: transparent; color: #0f766e; border-radius: 10px; padding: 7px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.ghost-btn:hover { background: #ccfbf1; }

.layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px 24px;
  display: block;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-left { padding: 18px; }
.panel h2 { margin: 0 0 8px; }
.panel-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.count-pill { padding: 4px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 12px; font-weight: 700; }

.module-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}
.module-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.module-title { margin: 0; font-size: 17px; font-weight: 800; }
.module-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.module-badge {
  display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #dcfce7; color: #15803d;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}

.endpoint-explorer {
  display: grid;
  gap: 10px;
  max-height: none;
}
.endpoint-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.endpoint-trigger {
  width: 100%; border: 0; background: #fff; text-align: left; cursor: pointer; padding: 11px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.endpoint-trigger:hover { background: #f8fafc; }
.endpoint-left { display: flex; align-items: center; gap: 9px; }
.method { display: inline-flex; padding: 3px 8px; border-radius: 8px; background: #ccfbf1; color: var(--method); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.path { font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; color: #0f172a; }
.endpoint-name { font-size: 12px; color: #64748b; }
.arrow { color: #64748b; font-weight: 700; }

.endpoint-details { border-top: 1px solid var(--line); padding: 12px; display: none; background: #fbfdff; }
.endpoint-details.open { display: grid; gap: 10px; }
.endpoint-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.param-grid { display: grid; gap: 8px; }
.param-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; align-items: center; }
.param-label { font-size: 12px; font-weight: 700; color: #334155; }
.param-label span { color: #0f766e; font-weight: 700; }

.built-url { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.url-input {
  width: 100%;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fff; font-family: "Space Mono", monospace;
  font-size: 12px; color: #0f172a;
}

.endpoint-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  border: 0; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.btn-copy { background: #e2e8f0; color: #0f172a; }
.btn-curl { background: #ffe3c3; color: #9a3412; }
.btn-try { background: #0ea5a6; color: #fff; }

.endpoint-live {
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}
.endpoint-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.endpoint-meta {
  display: grid;
  gap: 8px;
}
.endpoint-meta div {
  display: grid;
  gap: 4px;
}
.endpoint-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 700;
}
.endpoint-meta code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.endpoint-response-box {
  margin: 0;
  min-height: 200px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  background: #0b1020; color: #b9f8ee; font-family: "Space Mono", monospace; font-size: 12px; line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.tips { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tips h3 { margin: 0 0 8px; font-size: 15px; }
.tips ul { margin: 0; padding-left: 18px; color: #334155; }
.tips li { margin-bottom: 6px; font-size: 13px; }
.endpoint-tips {
  margin-top: 14px;
}

.footer { max-width: 1280px; margin: 0 auto; padding: 0 24px 28px; display: flex; justify-content: space-between; color: #64748b; font-size: 12px; }

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
  .endpoint-explorer { max-height: none; }
}
@media (max-width: 760px) {
  .controls { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .param-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; }
}
