:root {
  --background: 210 40% 98%;
  --foreground: 222 35% 14%;
  --primary: 187 82% 34%;
  --secondary: 215 30% 92%;
  --muted: 214 24% 95%;
  --destructive: 2 72% 52%;
  --border: 214 22% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 222 36% 10%;
  --foreground: 210 40% 96%;
  --primary: 184 76% 46%;
  --secondary: 222 24% 18%;
  --muted: 222 22% 14%;
  --destructive: 4 70% 56%;
  --border: 221 18% 26%;
  --card: 222 24% 14%;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsla(var(--primary), 0.12), transparent 32%),
    radial-gradient(circle at bottom right, hsla(284, 70%, 55%, 0.1), transparent 28%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#root {
  min-height: 100vh;
}

.card-surface {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

.glass-panel {
  background: linear-gradient(180deg, hsla(var(--card), 0.92), hsla(var(--card), 0.82));
  backdrop-filter: blur(12px);
  border: 1px solid hsla(var(--border), 0.9);
  box-shadow: var(--shadow-md);
}

.focus-ring:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.soft-scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.soft-scrollbar::-webkit-scrollbar-thumb {
  background: hsla(var(--primary), 0.28);
  border-radius: 999px;
}

.animate-rise {
  animation: rise 420ms var(--transition-smooth);
}

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

@keyframes trend-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.trend-track {
  animation: trend-marquee 26s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .trend-track {
    animation: none;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: hsla(var(--secondary), 0.8);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, hsla(var(--card), 0.65), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

button,
input,
select,
textarea {
  font: inherit;
}
