/**
 * AI Store Theme - Reset & Base Styles
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ai-bg);
  color: var(--ai-text);
  font-family: var(--ai-font-secondary);
  font-size: var(--ai-text-body);
  font-weight: var(--ai-weight-regular);
  line-height: var(--ai-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  /* NOTE: Do NOT use display:flex on body — it creates a new stacking context
     that breaks position:fixed for modals and spotlight overlays */
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.site-main {
  flex: 1;
}

/* Custom Text Selection */
::selection {
  background-color: var(--ai-accent-soft);
  color: var(--ai-text);
}

/* Base Form Elements Reset */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* Custom Scrollbar for Dark UI */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ai-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--ai-surface-strong);
  border-radius: var(--ai-radius-pill);
  border: 2px solid var(--ai-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ai-text-muted);
}
