/* ==========================================================================
   Aiversely — MCP Server Registry Stylesheet
   ========================================================================== */

.mcp-reg-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.12) 0%, transparent 60%),
              var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

body.dark .mcp-reg-hero {
  background: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.22) 0%, transparent 60%),
              radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.16) 0%, transparent 60%),
              #12131a;
  border-color: rgba(255, 255, 255, 0.08);
}

.mcp-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--surface-alt-color, #f8fafc);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.mcp-search-box {
  position: relative;
  width: 100%;
}

.mcp-search-box .mcp-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #64748b);
  pointer-events: none;
  font-size: 1.1rem;
}

.mcp-search-box input {
  padding: 0.85rem 1.15rem 0.85rem 2.85rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  color: var(--text-color, #1e293b);
  transition: all 0.2s ease;
}

.mcp-search-box input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

.mcp-filter-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  background: var(--surface-color, #ffffff);
  color: var(--text-color, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mcp-filter-pill:hover {
  background: var(--surface-alt-color, #f1f5f9);
  color: #6366f1;
}

.mcp-filter-pill.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Server Cards */
.mcp-card {
  position: relative;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 1rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

body.dark .mcp-card {
  background: #181924;
  border-color: rgba(255, 255, 255, 0.07);
}

body.dark .mcp-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(99, 102, 241, 0.5);
}

.mcp-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  flex-shrink: 0;
}

.mcp-runtime-badge {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--surface-alt-color, #f8fafc);
}

body.dark .mcp-runtime-badge {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mcp-cmd-snippet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.775rem;
  background: var(--surface-alt-color, #f8fafc);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--text-color, #1e293b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow: hidden;
}

body.dark .mcp-cmd-snippet {
  background: #0f1017;
  border-color: rgba(255, 255, 255, 0.05);
}

.mcp-cmd-snippet code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

/* Copy Toast */
.mcp-copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.mcp-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal details */
.mcp-modal-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  border-radius: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  background: #0d1117;
  color: #c9d1d9;
  padding: 1rem;
}
