/* OnchainAI generated CSS — Tailwind output stub */
/* Replace with full Tailwind build when tooling is wired. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  line-height: 1.5;
  color: #1A1A1A;
  background-color: #FFFFFF;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bg-white {
  background-color: #FFFFFF;
}

.text-\[\#1A1A1A\] {
  color: #1A1A1A;
}

.text-\[\#6B6B6B\] {
  color: #6B6B6B;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.min-h-screen {
  min-height: 100vh;
}

.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}

.py-8 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.py-12 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.max-w-\[720px\] {
  max-width: 720px;
}

.max-w-\[960px\] {
  max-width: 960px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-\[20px\] {
  font-size: 20px;
}

.text-\[28px\] {
  font-size: 28px;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.leading-tight {
  line-height: 1.2;
}

.leading-relaxed {
  line-height: 1.6;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* Layout */
.max-w-\[1200px\] { max-width: 1200px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.mb-3 { margin-bottom: 12px; }
.mb-6 { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }
.mt-4 { margin-top: 16px; }
.no-underline { text-decoration: none; }
.text-inherit { color: inherit; }
.text-\[14px\] { font-size: 14px; }
.text-\[16px\] { font-size: 16px; }
.text-\[13px\] { font-size: 13px; }
.h-12 { height: 48px; }
.h-10 { height: 40px; }
.h-14 { height: 56px; }
.w-full { width: 100%; }
.flex { display: flex; }
.hidden { display: none; }
.grid { display: grid; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.overflow-x-auto { overflow-x: auto; }
.rounded-lg { border-radius: 8px; }
.rounded-md { border-radius: 6px; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-\[\#E5E5E5\] { border-color: #E5E5E5; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:px-6 { padding-left: 24px; padding-right: 24px; }
  .md\:py-12 { padding-top: 48px; padding-bottom: 48px; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
}

/* Category grid: 5 / 4 / 2 columns */
.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #FFFFFF;
  transition: border-color 200ms;
}
.category-card:hover { border-color: #D1D1D1; }
.category-label { font-size: 14px; font-weight: 600; }
.category-count { font-size: 13px; color: #6B6B6B; }

/* Tool cards */
.tool-list { display: flex; flex-direction: column; gap: 12px; }
.tool-card {
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #FFFFFF;
  transition: border-color 200ms;
}
.tool-card:hover { border-color: #D1D1D1; }
.tool-card-inner { display: flex; gap: 16px; padding: 20px; }
.tool-logo {
  width: 48px; height: 48px; border-radius: 8px;
  background: #F5F5F0; border: 1px solid #E5E5E5;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.tool-name { font-size: 16px; font-weight: 600; margin: 0; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-desc { font-size: 14px; color: #6B6B6B; margin: 0 0 8px; line-height: 1.5; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: #6B6B6B; }
.tool-chains { display: flex; flex-wrap: wrap; gap: 4px; }
.chain-pill {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #D1D1D1; background: #FAFAFA;
}
.tool-install { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.install-cmd {
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  padding: 8px 12px; border: 1px solid #E5E5E5; border-radius: 6px;
  background: #FAFAFA; flex: 1; overflow-x: auto;
}
.copy-btn {
  height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #E5E5E5; background: #FFFFFF;
  font-size: 13px; cursor: pointer;
}
.copy-btn:hover { background: #FAFAFA; }
.copy-btn:focus-visible { outline: 2px solid #E76F00; outline-offset: 2px; }

.badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #D1D1D1; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-verified { background: #F5F5F0; border-color: #1A1A1A; color: #1A1A1A; }
.badge-neutral { background: #FAFAFA; color: #1A1A1A; }
.badge-official { background: #1A1A1A; color: #FFFFFF; border-color: #1A1A1A; }
.badge-x402 { background: #1A1A1A; color: #FFFFFF; }

.search-input:focus { border-color: #E76F00; outline: 2px solid rgba(231, 111, 0, 0.2); outline-offset: 0; }

/* Tools list layout */
.tools-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  gap: 24px;
}
@media (min-width: 1024px) {
  .tools-layout { grid-template-columns: 240px 1fr; }
}
.tools-sidebar {
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 16px;
  background: #FAFAFA;
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  width: 240px;
  flex-shrink: 0;
  transition: width 150ms ease, padding 150ms ease;
}
.tools-sidebar-collapsed {
  width: 40px;
  padding: 8px 4px;
  overflow: hidden;
}
.tools-sidebar-collapsed .sidebar-title-text,
.tools-sidebar-collapsed .sidebar-clear,
.tools-sidebar-collapsed .sidebar-body {
  display: none;
}
.sidebar-rail-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.sidebar-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6B6B6B; margin: 0 0 12px; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px; font-size: 14px; color: #1A1A1A; text-decoration: none;
}
.sidebar-link:hover { color: #E76F00; }
.sidebar-link.active { color: #E76F00; font-weight: 600; }
.sidebar-count { font-size: 12px; color: #999999; }

.tools-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #E5E5E5; margin-bottom: 16px;
}
.sticky-toolbar { position: sticky; top: 56px; background: #FFFFFF; z-index: 40; }
.toolbar-search input {
  height: 40px; padding: 0 12px; border: 1px solid #E5E5E5; border-radius: 8px;
  font-size: 14px; min-width: 200px;
}
.toolbar-sort { display: flex; gap: 8px; }
.sort-link { font-size: 13px; color: #6B6B6B; text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.sort-link:hover { color: #1A1A1A; background: #FAFAFA; }
.tool-count { font-size: 13px; color: #6B6B6B; margin-left: auto; }
.empty-state { color: #6B6B6B; font-size: 14px; padding: 24px 0; }

/* Detail page */
.detail-page { }
.back-link { font-size: 14px; color: #6B6B6B; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.back-link:hover { color: #E76F00; }
.detail-title { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.detail-desc { font-size: 14px; line-height: 1.6; color: #1A1A1A; margin-bottom: 16px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 14px; }
.external-link { color: #E76F00; text-decoration: none; }
.external-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .tool-card-inner { padding: 16px; }
  .tool-logo { width: 40px; height: 40px; }
}

/* Sidebar extensions */
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sidebar-heading { font-size: 14px; font-weight: 600; }
.sidebar-clear { font-size: 12px; color: #E76F00; text-decoration: none; }
.sidebar-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #E5E5E5; }
.sidebar-dot { width: 6px; height: 6px; border-radius: 50%; background: #E76F00; }

/* Detail content shared */
.detail-content.compact .detail-title { font-size: 20px; }
.detail-header { display: flex; gap: 16px; margin-bottom: 12px; }
.detail-logo {
  width: 64px; height: 64px; border-radius: 8px; background: #F5F5F0;
  border: 1px solid #E5E5E5; display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex-shrink: 0;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-pill { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid #D1D1D1; }
.install-heading { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.install-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.install-tab { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid #E5E5E5; }
.install-tab.active { border-color: #E76F00; color: #E76F00; }
.trust-section { margin-top: 16px; }
.trust-list { margin: 0; padding-left: 18px; font-size: 13px; color: #6B6B6B; }
.full-page-link {
  display: inline-block; margin-top: 16px; font-size: 14px; color: #E76F00; text-decoration: none;
}
.full-page-link:hover { text-decoration: underline; }

/* Preview panel (desktop) */
.preview-desktop { display: none; }
.preview-mobile { display: block; }
@media (min-width: 1024px) {
  .preview-desktop { display: block; }
  .preview-mobile { display: none; }
}
.preview-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.2); z-index: 200;
}
.preview-panel {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 100vw; height: 100vh;
  background: #FFFFFF; border-left: 1px solid #E5E5E5; z-index: 210;
  animation: slide-in-right 200ms ease-out; display: flex; flex-direction: column;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.preview-panel-header { display: flex; justify-content: flex-end; padding: 12px 16px; border-bottom: 1px solid #E5E5E5; }
.preview-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; text-decoration: none; color: #6B6B6B; border-radius: 8px;
}
.preview-close:hover { background: #FAFAFA; color: #1A1A1A; }
.preview-panel-body { padding: 16px; overflow-y: auto; flex: 1; }

/* Bottom sheet (mobile) */
.bottom-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px); z-index: 200; display: block;
}
.bottom-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; height: 60vh; max-height: 90vh;
  background: #FFFFFF; border-top: 1px solid #E5E5E5; border-radius: 12px 12px 0 0;
  z-index: 210; animation: slide-up 250ms ease-out; display: flex; flex-direction: column;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.bottom-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px; background: #D1D1D1;
  margin: 8px auto 0;
}
.bottom-sheet-body { padding: 16px; overflow-y: auto; flex: 1; }
.bottom-sheet-full { height: 92vh; }

/* Skeleton loaders */
.skeleton-card { pointer-events: none; }
.skeleton-block {
  background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line {
  height: 12px; border-radius: 4px; margin-bottom: 8px;
  background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-title { width: 55%; height: 16px; }
.skeleton-desc { width: 90%; }
.skeleton-meta { width: 40%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty / error states */
.empty-state-panel, .error-state-panel {
  padding: 32px 16px; text-align: center; border: 1px dashed #E5E5E5;
  border-radius: 8px; margin: 16px 0;
}
.empty-state-message, .error-state-message { font-size: 14px; color: #6B6B6B; margin: 0 0 16px; }
.error-state-message { color: #C0392B; }
.error-retry-btn {
  height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid #E5E5E5;
  background: #FFFFFF; font-size: 14px; cursor: pointer;
}
.error-retry-btn:hover { background: #FAFAFA; }

/* Sidebar collapse */
.sidebar-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.sidebar-chevron { font-size: 12px; color: #999999; }
.sidebar-panel.collapsed { display: none; }
.sidebar-panel.open { display: block; }

/* Tool card actions */
.tool-card { position: relative; }
.tool-card-actions {
  position: absolute; top: 12px; right: 12px; z-index: 2;
}
.card-action-btn {
  background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 6px;
  width: 32px; height: 32px; font-size: 16px; cursor: pointer;
}
.card-action-btn:hover { background: #FAFAFA; }

.home-tools-section { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.tools-main-full { width: 100%; }
.chains-wrap { flex-wrap: wrap; }
.detail-meta-wrap { flex-wrap: wrap; }
.links-section { margin-top: 16px; }
.badge-verified { background: #E8F5E9; color: #2E7D32; }
.badge-official { background: #E3F2FD; color: #1565C0; }
.badge-x402 { background: #FFF3E6; color: #E76F00; }
