/* ============================================================
   Global Styles — j1.silva Portfolio
   ============================================================ */

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

:root {
  --bg-light:           #dadbca;
  --bg-dark:            #000000;
  --neon:               #ccff00;
  --ink-light:          #0a0a0a;
  --ink-dark:           #e2e6e3;
  --muted-light:        #888888;
  --muted-dark:         hsla(135, 7%, 89%, 0.5);
  --surface-dark:       hsla(135, 7%, 89%, 0.1);
  --surface-dark-hover: hsla(135, 7%, 89%, 0.15);
  --grid-gap:           8px;
  --card-radius:        8px;
  --font-display:       'Space Grotesk', system-ui, sans-serif;
  --font-base:          'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-dark) transparent;
}

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-thumb { background: var(--surface-dark); border-radius: 4px; }
body::-webkit-scrollbar-track { background: transparent; }

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

/* ── Loading state ── */
.loading-skeleton {
  background: var(--surface-dark);
  border-radius: var(--card-radius);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ── Toast / notificações ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink-dark);
  color: var(--bg-dark);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-base);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
