/* ==========================================================================
   SMSINDIAHUB — Developer API Documentation Stylesheet (css/api-docs.css)
   ========================================================================== */

/* Layout & Hero */
.api-hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(37, 145, 225, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 45%),
              #030712;
}

.api-glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Method Badges */
.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.method-get {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

.method-post {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.method-webhook {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Sticky Documentation Sidebar */
.api-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.api-sidebar-link:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
  border-left-color: #0284c7;
  transform: translateX(2px);
}

.api-sidebar-link.active {
  color: #0284c7;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.09);
  border-left-color: #0284c7;
}

/* Parameter Tables */
.api-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.api-param-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.api-param-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

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

.api-param-table tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

/* Code Terminal Window */
.api-code-terminal {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.api-terminal-header {
  background: #0b1329;
  border-bottom: 1px solid #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Language Switcher Tabs */
.api-lang-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.api-lang-tabs::-webkit-scrollbar {
  display: none;
}

.api-lang-tab {
  padding: 4px 9px;
  font-family: var(--mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.api-lang-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.api-lang-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Code Output Pre/Code */
.api-code-content {
  margin: 0;
  padding: 18px 20px;
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  background: #020617;
  overflow-x: auto;
  max-height: 380px;
  white-space: pre;
}

.api-code-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.api-code-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* Response Drawer */
.api-response-drawer {
  background: #030816;
  border-top: 1px solid #1e293b;
  padding: 14px 18px;
}

.api-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: var(--mono, monospace);
  font-weight: 700;
}

.api-response-content {
  margin: 0;
  font-family: "IBM Plex Mono", Consolas, Monaco, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: #34d399;
  background: transparent;
  overflow-x: auto;
  white-space: pre;
}

/* Copy Button */
.api-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-copy-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

.api-copy-btn.copied {
  background: #059669;
  color: #ffffff;
  border-color: #10b981;
}

/* Status Code Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
}

.status-200 {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-400 {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-404 {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   Centered Sticky API Methods Navigation Bar & Pill Buttons
   ========================================================================== */
.api-methods-bar {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.07);
  padding: 10px 0;
  transition: all 0.25s ease;
}

.api-methods-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.api-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.api-nav-pill:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.08);
}

.api-nav-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.api-nav-pill.active .method-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.api-nav-pill.active-intl {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
  transform: translateY(-1px);
}

.api-nav-pill.active-intl .method-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

