@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --pl-purple: #37003c;
  --pl-dark: #0f0018;
  --pl-card: #1c0028;
  --pl-green: #00ff85;
  --pl-green-dim: rgba(0, 255, 133, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body), system-ui, sans-serif;
  background: var(--pl-dark);
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0018; }
::-webkit-scrollbar-thumb { background: #37003c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5a0068; }

/* ── Keyframes ── */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,133,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,255,133,0);  }
}

/* ── Utility classes ── */
.animate-gradient-shift {
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

.animate-fade-in  { animation: fadeIn  0.25s ease forwards; }
.animate-slide-up { animation: slideUp 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards; }
.animate-spin     { animation: spin    1s linear infinite; }
.animate-pulse-green { animation: pulseGreen 2s ease infinite; }

.skeleton {
  background: linear-gradient(90deg, #1c0028 25%, #2d0040 50%, #1c0028 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
