/* 1688 Supplier Intelligence — Custom Styles */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Card hover effects */
.card {
  transition: all 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
}

/* Trust score colors */
.score-excellent { color: #22c55e; }
.score-good { color: #16a34a; }
.score-average { color: #eab308; }
.score-caution { color: #f97316; }
.score-risk { color: #ef4444; }

/* Tables in reports */
.report-table td:first-child {
  font-weight: 500;
  color: #6b7280;
}

/* Search bar focus */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

/* Footer stickiness */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Search insights */
.search-result-card.border-warning {
  box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.35) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
#search-sort-bar .btn {
  border-radius: 999px;
}

/* Compact guidance strips (activation / plan / precheck) */
.si-compact-card {
  background: #fff;
  border: 1px solid #d9e2dd;
  border-radius: 12px;
  border-left: 3px solid #0f766e;
  box-shadow: 0 1px 2px rgba(20, 32, 28, 0.04);
}
.si-compact-card.si-compact-ok {
  border-left-color: #16a34a;
  background: #f0fdf4;
}
.si-compact-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
  background: #d9f3ef;
  border-radius: 999px;
  padding: 2px 8px;
}
.si-compact-toggle:hover {
  background: #f7fbf9 !important;
  border-radius: 12px 12px 0 0;
}

/* Trust score drivers */
.si-score-drivers {
  border: 1px solid #d9e2dd;
  border-radius: 12px;
}
.si-driver-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
}
.si-driver-strong { background: #dcfce7; color: #166534; }
.si-driver-moderate { background: #d9f3ef; color: #0f766e; }
.si-driver-weak { background: #fef3c7; color: #a16207; }
.si-driver-missing { background: #eef2f0; color: #5d6b66; }
.si-driver-track {
  height: 6px;
  background: #e7eeea;
  border-radius: 999px;
  overflow: hidden;
}
.si-driver-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.si-driver-fill-strong { width: 88%; background: linear-gradient(90deg, #0f766e, #22c55e); }
.si-driver-fill-moderate { width: 58%; background: #0d9488; }
.si-driver-fill-weak { width: 32%; background: #d97706; }
.si-driver-fill-missing { width: 10%; background: #94a3b8; }

/* Onboarding tour */
.si-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 28, 0.45);
  z-index: 1080;
  pointer-events: auto;
}
.si-tour-spotlight {
  position: relative !important;
  z-index: 1085 !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.55), 0 12px 40px rgba(0, 0, 0, 0.25) !important;
  border-radius: 10px;
}
.si-tour-tip {
  position: fixed;
  z-index: 1090;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 48px rgba(15, 32, 28, 0.28);
  border: 1px solid #d9e2dd;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.si-tour-tip-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 6px;
}
.si-tour-tip-title {
  font-size: 16px;
  font-weight: 700;
  color: #14201c;
  margin-bottom: 6px;
}
.si-tour-tip-body {
  font-size: 13px;
  line-height: 1.5;
  color: #5d6b66;
  margin: 0 0 12px;
}
.si-tour-tip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.si-tour-tip-links {
  font-size: 12px;
}
.si-tour-tip-links a {
  color: #0f766e;
  font-weight: 600;
}

/* Badge refinements */
.badge { font-weight: 500; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.5rem; }
  .display-6 { font-size: 1.25rem; }
}

/* Print styles for reports */
@media print {
  nav, footer, .btn, form { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  body { font-size: 12pt; }
}
