/* ============================================
   BASE — CSS Variables, Reset, Typography
   ============================================ */

:root {
  --bg: #000000;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --text: #fff0fa;
  --text-secondary: #a97bb7;
  --text-muted: #bfaed1;
  --accent: #ff4fa3;
  --accent-dark: #c43d7f;
  --accent-gradient: linear-gradient(135deg, #ff4fa3, #c44fff);
  --accent-soft: rgba(255, 79, 163, 0.15);
  --accent-purple: #a084ee;
  --accent-purple-light: #d8b4fe;
  --accent-purple-gradient: linear-gradient(90deg, #a084ee 0%, #d8b4fe 100%);
  --border: rgba(255, 79, 163, 0.3);
  --border-subtle: rgba(180, 180, 200, 0.18);
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 40px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.2s ease;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  border: none !important;
}

body {
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Purple radial gradient blur overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    50% 50% at 50% 42%,
    rgba(160, 132, 238, 0.48) 0%,
    rgba(160, 132, 238, 0.20) 38%,
    rgba(160, 132, 238, 0) 72%
  );
  filter: blur(120px);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

/* Disable tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body, a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a, button, input, textarea, select {
  outline: none;
}

body, a, button {
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Typography */
h1 { font-size: 1.75em; font-weight: 700; }
h2 { font-size: 1.35em; font-weight: 700; }
h3 { font-size: 1.15em; font-weight: 600; }

p {
  color: var(--text-muted);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 132, 238, 0.3);
  border-radius: 4px;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
