/* ============================================================
   CHEAT STORE — Base Reset & Body
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

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

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

body {
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: var(--fs);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(124, 106, 247, 0.3);
    border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ──────────────────────────────────────────── */
::selection { background: var(--accent-glow); color: var(--text-primary); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font);
    outline: none;
}

/* ── Material Icons Fix ─────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
    line-height: 1;
}

/* ── Utility Classes ────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap { gap: var(--sp); }
.flex-1 { flex: 1; min-width: 0; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-teal { color: var(--teal); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }

/* ── Neumorphism Mixins (utility classes) ───────────────── */
.neu-raised  { box-shadow: var(--shadow-raised); }
.neu-raised-lg { box-shadow: var(--shadow-raised-lg); }
.neu-inset   { box-shadow: var(--shadow-inset); }
.neu-float   { box-shadow: var(--shadow-float); }

/* ── Loading Spinner ────────────────────────────────────── */
@keyframes cs-spin {
    to { transform: rotate(360deg); }
}
.cs-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: cs-spin 0.75s linear infinite;
    margin: 24px auto;
}
