/* ──────────────────────────────────────────────
   Sightable — Component library
   (Tailwind CDN handles utilities; this file
   adds reusable component classes using plain CSS.)
   ────────────────────────────────────────────── */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #6366f1;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background-color: #4f46e5; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: #6366f1; color: #6366f1; }

/* Card */
.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
}

/* Input */
.input-field {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  color: #111827;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: #fff;
}
.input-field::placeholder { color: #9ca3af; }
.input-field:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f3f4f6; color: #4b5563; }

/* Score ring */
.score-ring {
  transform-origin: center;
  transform: rotate(-90deg);
  stroke-dasharray: 251.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

/* Report prose */
.report-prose h3  { font-size: 1rem; font-weight: 600; color: #111827; margin-bottom: 0.25rem; }
.report-prose ul  { list-style: disc inside; font-size: 0.875rem; color: #374151; }
.report-prose ul li { margin-bottom: 0.25rem; }
.report-prose pre { background: #111827; color: #4ade80; font-size: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; overflow-x: auto; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 0.8s linear infinite; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Details/summary marker */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
