/* ==========================================================================
   Spot the NOVA Group — Standalone Stylesheet (style.css)
   Ready for GitHub Pages / Static Web Hosting
   ========================================================================== */

:root {
  --nova-1: #10b981;
  --nova-2: #f59e0b;
  --nova-3: #f97316;
  --nova-4: #ef4444;
  --bg-deep: #050811;
  --bg-panel: #0f172a;
  --bg-card: #020617;
  --border-muted: #1e293b;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 15% 15%, #0f172a 0%, #090d16 60%, #050811 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Nutrition & Back-of-Pack Label Styling */
.nutrition-card {
  background: #fffdf9;
  color: #111827;
  border: 3px solid #111827;
  box-shadow: 6px 6px 0px rgba(15, 23, 42, 0.75);
}

/* NOVA Group Classification Buttons */
.nova-btn {
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.14s ease,
              border-color 0.14s ease,
              background-color 0.14s ease;
  cursor: pointer;
}

.nova-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5);
}

.nova-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.nova-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Interactive Ingredient Chips */
.ingredient-chip {
  transition: all 0.18s ease;
  cursor: pointer;
}

.ingredient-chip:hover {
  transform: translateY(-1px);
}

/* Product Photo Showcase Frame */
.specimen-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 2px solid rgba(51, 65, 85, 0.9);
  background: #020617;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65);
}

.specimen-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.specimen-photo-img.redacted-blur {
  filter: blur(22px) brightness(0.35) grayscale(0.6);
  transform: scale(1.12);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.6);
  border-radius: 9999px;
}

/* Next Specimen Pulse Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.pulse-next {
  animation: pulseGlow 1.8s infinite;
}

/* Code Viewer Block for GitHub Export Tab */
.code-viewer-pre {
  background: #020617;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 440px;
}
