/* Entegrasyon & API hub — marketing-pages koyu tema ile uyumlu */
.hub-page {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--fg);
  min-height: 100vh;
  padding-top: 5.5rem;
}

.hub-page > nav,
.hub-shell {
  position: relative;
  z-index: 1;
}

.hub-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hub-sidebar {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
  backdrop-filter: blur(20px);
}

.hub-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  padding: 0.5rem 0.75rem 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

.hub-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg-3);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.hub-nav-btn:hover {
  background: var(--surface-2);
  color: var(--brand-glow);
}

.hub-nav-btn.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-glow);
  border: 1px solid var(--border-glow);
}

.hub-nav-btn i {
  width: 18px;
  text-align: center;
  color: var(--brand-2);
  opacity: 0.9;
}

.hub-panel {
  display: none;
}

.hub-panel.active {
  display: block;
}

.hub-panel-head {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 112, 74, 0.35));
  border: 1px solid var(--border-glow);
  color: white;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.hub-panel-head h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.hub-panel-head p {
  color: var(--fg-3);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 640px;
}

.hub-muted {
  margin-top: 1.25rem;
  color: var(--fg-4);
  font-size: 0.9rem;
}

.hub-muted strong {
  color: var(--brand-glow);
}

.hub-iframe {
  width: 100%;
  min-height: calc(100vh - 120px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-1);
}

/* API dokümantasyon */
.api-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.api-inner-sidebar {
  position: sticky;
  top: 6rem;
}

.api-inner-sidebar a {
  display: block;
  padding: 0.45rem 0;
  padding-left: 0.7rem;
  color: var(--fg-4);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.api-inner-sidebar a:hover,
.api-inner-sidebar a.active {
  color: var(--brand-glow);
  border-color: var(--brand-2);
}

.doc-section {
  margin-bottom: 2rem;
  scroll-margin-top: 6.5rem;
}

.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.doc-section h2 i {
  color: var(--brand-2);
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(16px);
}

.doc-card p {
  color: var(--fg-3);
  font-size: 0.88rem;
}

.doc-card p + p {
  margin-top: 0.5rem;
}

.doc-card a {
  color: var(--brand-glow);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.platform-card:hover {
  border-color: var(--border-glow);
  background: var(--surface-2);
}

.platform-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-glow);
}

.platform-card span {
  font-size: 0.88rem;
  color: var(--fg-4);
  line-height: 1.45;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.method {
  background: #10b981;
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.method.get {
  background: #3b82f6;
}

.url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: var(--surface-2);
  color: var(--brand-lime);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
}

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

table.doc-table th,
table.doc-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-3);
}

table.doc-table th {
  color: var(--fg-4);
  font-size: 0.75rem;
  text-transform: uppercase;
}

table.doc-table code {
  background: var(--surface-2);
  color: var(--brand-lime);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.required {
  color: #f87171;
  font-weight: 600;
  font-size: 0.72rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.step strong {
  color: white;
  display: block;
}

.step p {
  color: var(--fg-4);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

pre.doc-pre {
  background: #0a0f18;
  color: #e2e8f0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0.65rem 0;
}

body.embed-mode .navbar,
body.embed-mode .ambient,
body.embed-mode .footer {
  display: none !important;
}

body.embed-mode.hub-page {
  padding-top: 0 !important;
}

@media (max-width: 960px) {
  .hub-shell {
    grid-template-columns: 1fr;
  }

  .hub-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .hub-sidebar-title {
    width: 100%;
  }

  .hub-nav-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
    font-size: 0.82rem;
    padding: 0.55rem 0.65rem;
  }

  .api-inner {
    grid-template-columns: 1fr;
  }

  .api-inner-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
  }

  .api-inner-sidebar a {
    border-left: none;
    padding: 0.35rem 0.5rem;
    background: var(--surface-2);
    border-radius: 6px;
    font-size: 0.8rem;
  }
}
