/*
 * Kuvera-MCP — Custom CSS
 * Extends Tailwind utility classes with tab switching, dark theme overrides,
 * and code block styles.
 */

/* ---- Tab system ---- */
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  border-bottom: none;
}

.tab-btn:hover {
  color: #e5e7eb;
  background-color: #1f2937;
}

.tab-btn.active {
  color: #e5e7eb;
  background-color: #1f2937;
  border-color: #374151;
  border-bottom-color: #1f2937;
  position: relative;
  z-index: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-panel-wrapper {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0 0.375rem 0.375rem 0.375rem;
  padding: 1.5rem;
}

/* ---- Code blocks ---- */
pre {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  color: #a5b4fc;
  background-color: #1e1b4b;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* ---- Dark theme body defaults ---- */
body {
  background-color: #0f0f0f;
  color: #e5e7eb;
}

/* ---- Navigation ---- */
nav {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Scrolling target offset (sticky nav) ---- */
[id] {
  scroll-margin-top: 4.5rem;
}

/* ---- Cards ---- */
.card {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
}

/* ---- Accent / CTA button ---- */
.btn-primary {
  display: inline-block;
  background-color: #6366f1;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #4f46e5;
}

/* ---- Steps / numbered list ---- */
.steps-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.steps-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---- Badge row ---- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #1e1b4b;
  color: #a5b4fc;
  border: 1px solid #312e81;
}

/* ---- Section divider ---- */
.section-divider {
  border: none;
  border-top: 1px solid #1f2937;
  margin: 3rem 0;
}

/* ---- Privacy page ---- */
.privacy-section {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.privacy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #374151;
}

.privacy-section p,
.privacy-section li {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* ---- How it works flow ---- */
.how-step {
  text-align: center;
  flex: 1;
}

.how-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #1e1b4b;
  border: 2px solid #4f46e5;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
}

.how-arrow {
  color: #4b5563;
  font-size: 1.5rem;
  align-self: center;
  flex-shrink: 0;
  margin: 0 0.5rem;
}

/* ---- Screenshots ---- */
.screenshot-hero {
  border-radius: 0.75rem;
  border: 1px solid #1f2937;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: block;
}

.screenshot-inline {
  border-radius: 0.5rem;
  border: 1px solid #374151;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  display: block;
}

/* ---- Footer ---- */
footer {
  background-color: #111827;
  border-top: 1px solid #1f2937;
  color: #6b7280;
}
