@import "tailwindcss";

:root {
  --background: #030712;
  --foreground: #f8fafc;
  --primary: #10b981;
  --primary-light: #34d399;
  --accent: #f59e0b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --glow-emerald: rgba(16, 185, 129, 0.35);
  --glow-amber: rgba(245, 158, 11, 0.25);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-outfit);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-outfit), system-ui, sans-serif;
  overflow-x: hidden;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 2s infinite;
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.6s ease-out forwards;
}

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-bar {
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-bar-scrolled {
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
              0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.35) 30%,
    rgba(6, 182, 212, 0.35) 70%,
    transparent 100%
  );
}

.text-gradient {
  background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-glow {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--glow-emerald), transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 20%, var(--glow-amber), transparent 50%),
              radial-gradient(ellipse 40% 30% at 10% 60%, rgba(6, 182, 212, 0.15), transparent 50%);
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.search-glow:focus-within {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4),
              0 0 40px rgba(16, 185, 129, 0.15),
              0 20px 60px rgba(0, 0, 0, 0.4);
}

.category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(16, 185, 129, 0.1);
}

.chip {
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  transform: scale(1.03);
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

.prose-content {
  color: #94a3b8;
  line-height: 1.75;
}

.prose-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #f8fafc;
}

.prose-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.prose-content p {
  margin-bottom: 1rem;
}

.prose-content ul,
.prose-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content ul li {
  list-style-type: disc;
}

.prose-content ol li {
  list-style-type: decimal;
}

.prose-content a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-content a:hover {
  color: #6ee7b7;
}

.prose-content strong {
  color: #e2e8f0;
  font-weight: 600;
}

.content-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
}

