@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: 240 30% 5%;
  --foreground: 230 20% 96%;
  --card: 240 25% 8%;
  --card-foreground: 230 20% 96%;
  --popover: 240 30% 7%;
  --popover-foreground: 230 20% 96%;
  --primary: 265 90% 65%;
  --primary-foreground: 240 30% 5%;
  --primary-glow: 280 100% 75%;
  --secondary: 190 95% 55%;
  --secondary-foreground: 240 30% 5%;
  --muted: 240 20% 14%;
  --muted-foreground: 230 15% 65%;
  --accent: 320 90% 65%;
  --accent-foreground: 240 30% 5%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 230 20% 96%;
  --border: 240 25% 16%;
  --input: 240 25% 14%;
  --ring: 265 90% 65%;
  --radius: 1rem;
  --gradient-primary: linear-gradient(135deg, hsl(265 90% 65%), hsl(190 95% 55%));
  --gradient-accent: linear-gradient(135deg, hsl(320 90% 65%), hsl(265 90% 65%));
  --gradient-hero: linear-gradient(135deg, hsl(265 90% 65% / 0.4), hsl(190 95% 55% / 0.3), hsl(320 90% 65% / 0.4));
  --gradient-text: linear-gradient(135deg, hsl(265 90% 75%), hsl(190 95% 65%), hsl(320 90% 75%));
  --shadow-glow: 0 0 60px hsl(265 90% 65% / 0.4);
  --shadow-glow-cyan: 0 0 60px hsl(190 95% 55% / 0.35);
  --shadow-elegant: 0 20px 60px -20px hsl(265 90% 50% / 0.5);
  --shadow-card: 0 8px 32px hsl(240 30% 0% / 0.6);
}

* {
  border-color: hsl(var(--border) / 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background-image:
    radial-gradient(ellipse at top left, hsl(265 90% 25% / 0.25), transparent 50%),
    radial-gradient(ellipse at bottom right, hsl(190 95% 25% / 0.2), transparent 50%),
    radial-gradient(ellipse at center, hsl(320 90% 20% / 0.15), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s ease infinite;
}

.glass {
  background: hsl(240 25% 10% / 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(240 25% 25% / 0.4);
}

.grid-pattern {
  background-image:
    linear-gradient(hsl(240 25% 20% / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, hsl(240 25% 20% / 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-orb {
  animation: orb 20s ease-in-out infinite;
}

[data-navbar].scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

[data-navbar].scrolled [data-navbar-inner] {
  box-shadow: var(--shadow-card);
  background: hsl(240 25% 10% / 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(240 25% 25% / 0.4);
  padding: 0.75rem 1.25rem;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px hsl(265 90% 65% / 0.4); }
  50% { box-shadow: 0 0 60px hsl(265 90% 65% / 0.7), 0 0 80px hsl(190 95% 55% / 0.4); }
}

@keyframes orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.pv-alert-popup {
  background: hsl(240 25% 10% / 0.95) !important;
  border: 1px solid hsl(240 25% 25% / 0.45) !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-card) !important;
  color: hsl(var(--foreground)) !important;
}

.pv-alert-title {
  color: hsl(var(--foreground)) !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
}

.pv-alert-text {
  color: hsl(var(--muted-foreground)) !important;
}

.pv-alert-confirm,
.pv-alert-cancel {
  border: 0;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.7rem 1rem;
}

.pv-alert-confirm {
  background: var(--gradient-accent) !important;
  color: hsl(var(--primary-foreground)) !important;
  box-shadow: var(--shadow-glow-cyan);
}

.pv-alert-cancel {
  background: hsl(var(--muted)) !important;
  color: hsl(var(--foreground)) !important;
}
