/* Botnest base — resets, focus, selection, scrollbars, motion. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--bn-action-subtle-hover); }

/* Focus — glacier ring + gentle aurora glow, on every interactive element */
:focus-visible {
  outline: 2px solid var(--bn-focus-ring);
  outline-offset: 2px;
  box-shadow: var(--bn-focus-glow);
  transition: box-shadow var(--bn-dur-1) var(--bn-ease);
}

/* Quiet scrollbars for hours-long sessions */
* { scrollbar-width: thin; scrollbar-color: var(--bn-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--bn-border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* Identity-zone utilities */
.bn-chrome {
  background: var(--bn-chrome-bg);
  background-image: var(--bn-grad-aurora-rose), var(--bn-grad-aurora);
  color: var(--bn-chrome-text);
}
.bn-hero {
  background: var(--bn-chrome-bg);
  background-image: var(--bn-grad-aurora-rose), var(--bn-grad-hero);
  color: var(--bn-chrome-text);
}
.bn-glass {
  background: var(--bn-glass);
  -webkit-backdrop-filter: blur(var(--bn-blur));
  backdrop-filter: blur(var(--bn-blur));
}

/* Photography treatment — imagery never fights content */
.bn-photo {
  position: relative; overflow: hidden; border-radius: var(--bn-radius-lg);
}
.bn-photo > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(0.95); }
.bn-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, var(--bn-overlay));
}

/* Keyframes (referenced by components.css) */
@keyframes bn-spin { to { transform: rotate(360deg); } }
@keyframes bn-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes bn-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bn-scale-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bn-slide-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes bn-glow-pulse { 0%, 100% { box-shadow: var(--bn-glow-green); } 50% { box-shadow: 0 0 34px rgba(76,203,151,0.30); } }

/* Full reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
