/* Minimal design system for Dribbble-inspired glassy dark UI */
/* Enhanced with subtle noise texture, ambient depth, and refined glassmorphism */

/* Design tokens (8px grid-based scale) */
:root {
  /* Color tokens - unified anony.store palette */
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-border-top: rgba(255, 255, 255, 0.18);
  --text: #e9e9e9;
  --muted: #999999;
  --accent: #C8FF00; /* neon yellow/lime */
  --accent-2: #FF7B8A; /* pink */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.25);
  --shadow-glass: inset 0 1px 1px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.35);
  --shadow-glass-hover: inset 0 1px 1px rgba(255,255,255,0.08), 0 12px 40px rgba(0,0,0,0.45);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
}

/* Global typography */
html, body {
  height: 100%;
}
body {
  margin: 0;
  background: radial-gradient(1200px circle at 20% -10%, rgba(200,255,0,0.08), transparent 40%),
              radial-gradient(1000px circle at 100% 0%, rgba(255,0,180,0.08), transparent 40%),
              radial-gradient(800px circle at 80% 100%, rgba(200,255,0,0.04), transparent 50%),
              #0a0a0a;
  color: var(--text);
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial;
  position: relative;
}

/* Subtle film grain / noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* Ambient background orbs for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 30%, rgba(200,255,0,0.06), transparent 60%),
    radial-gradient(500px circle at 85% 70%, rgba(255,123,138,0.05), transparent 60%);
}

/* Headings use Orbitron for a bold tech-crisp look */
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 8px 0;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); margin: 0 0 8px 0; }

/* App chrome and layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation pills (active state is pill-shaped with fill) */
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  width: max-content;
}
.nav a {
  color: #e9e9e9;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}
.nav a:hover {
  background: rgba(255,255,255,0.06);
}
.nav a.active {
  background: linear-gradient(135deg, rgba(200,255,0,0.25), rgba(255,123,138,0.25));
  color: #fff;
  border: 1px solid rgba(200,255,0,0.6);
  box-shadow: 0 0 16px rgba(200,255,0,0.15);
}

/* Card styles (enhanced glassmorphism) */
.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border-top);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.28);
  box-shadow: var(--shadow-glass-hover), 0 0 24px rgba(200,255,0,0.08);
}
.glass-card.math { border-radius: 20px; }
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(200,255,0,0.12), transparent 25%),
              linear-gradient(135deg, rgba(12,12,12,0.0), rgba(0,0,0,0.25));
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.glass-card:hover::before {
  opacity: 0.9;
}
.glass-card h4 { margin-top: 0; font-size: 1.05rem; }
.glass-card .row { display: flex; gap: 12px; align-items: center; }
.glass-card .icon { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,0.08); color: #fff; }

/* Background treatment for sections to emulate depth */
.bg-soft-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}
.bg-soft-panel:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: var(--shadow-glass-hover);
}

/* Ambient orb utility classes */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}
.ambient-orb.lime {
  width: 400px; height: 400px;
  background: rgba(200,255,0,0.12);
  top: -100px; left: -100px;
}
.ambient-orb.pink {
  width: 350px; height: 350px;
  background: rgba(255,123,138,0.10);
  bottom: -80px; right: -80px;
}

/* Utilities */
.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Responsive adjustments (mobile-first mindset) */
@media (max-width: 700px) {
  :root { --space-4: 20px; }
  h1 { font-size: 1.75rem; }
  .ambient-orb { display: none; }
}
