/* ============================================================
   /connect/ — MCP Setup & Tool Catalog
   ============================================================ */

.connect-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.connect-hero {
  text-align: center;
  margin-bottom: 64px;
}

.connect-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.connect-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.server-url-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}

.server-url-block code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  color: #3b82f6;
  word-break: break-all;
}

.copy-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(59, 130, 246, 0.25);
}

.setup-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
}

.setup-tab {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.setup-tab:hover {
  color: rgba(255, 255, 255, 0.7);
}

.setup-tab.active {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.setup-panel {
  display: none;
}

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

.setup-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}

.setup-steps li {
  position: relative;
  padding: 16px 0 16px 40px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 12px;
}

.setup-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.setup-steps li:last-child {
  border-left-color: transparent;
}

.setup-steps code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: #3b82f6;
}

.setup-steps pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 0;
  overflow-x: auto;
}

.setup-steps pre code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.connect-section-heading {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.connect-section-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
}

.tool-category {
  margin-bottom: 48px;
}

.tool-category-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b82f6;
  margin-bottom: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}

.tool-name {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.tool-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.tool-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.tool-badge--read {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.tool-badge--write {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.example-prompts {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}

.example-prompts li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.example-prompts li::before {
  content: '\201C';
  color: #3b82f6;
  font-weight: 700;
  margin-right: 4px;
}

.example-prompts li::after {
  content: '\201D';
  color: #3b82f6;
  font-weight: 700;
  margin-left: 2px;
}

.connect-bottom-cta {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.connect-bottom-cta p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  margin-bottom: 24px;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 480px) {
  .server-url-block {
    flex-direction: column;
    text-align: center;
  }

  .copy-btn {
    width: 100%;
  }

  .setup-tab {
    font-size: 13px;
    padding: 10px 8px;
  }
}

/* ============================================================
   Light Theme Compatibility Overrides
   ============================================================ */
.connect-hero h1, .connect-section-heading, .tool-name { color: var(--text) !important; }
.connect-hero p, .connect-section-sub, .setup-tab, .setup-steps li, .setup-steps pre code, .tool-desc, .example-prompts li, .connect-bottom-cta p { color: var(--text-muted) !important; }
.server-url-block, .setup-tabs, .setup-steps pre, .tool-card, .example-prompts li { background: var(--card-bg) !important; border-color: var(--border-subtle) !important; }
.setup-steps li { border-left-color: var(--border-subtle) !important; }
