@import "tailwindcss";

@theme {
  --color-cj: #16a34a;
  --color-cj-light: #22c55e;
  --font-sans: "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

::selection {
  background-color: color-mix(in srgb, var(--color-cj) 30%, transparent);
}

.cj-gradient {
  background: linear-gradient(135deg, #16a34a, #22c55e, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.code-block {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  position: relative;
}

.code-block code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  background: #334155;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: #475569;
  color: #e2e8f0;
}

.copy-btn.copied {
  background: var(--color-cj);
  color: white;
}