/* ==========================================================================
   AgentNexus - AI Education Stylesheet (100% Independent)
   Aesthetics: Neural Academy, Deep Cosmic Indigo, Neon Violet, Futuristic Pedagogical
   ========================================================================== */

:root {
  --e-bg: #090614;
  --e-card-bg: rgba(22, 16, 38, 0.7);
  --e-card-hover: rgba(32, 22, 56, 0.88);
  --e-border: rgba(168, 85, 247, 0.18);
  --e-border-glow: rgba(168, 85, 247, 0.45);
  --e-violet: #a855f7;
  --e-violet-glow: rgba(168, 85, 247, 0.25);
  --e-fuchsia: #e879f9;
  --e-text-main: #f5f3ff;
  --e-text-muted: #a78bfa;
  --e-text-faint: #6d589e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Outfit", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--e-bg);
  color: var(--e-text-main);
  line-height: 1.6;
  padding-bottom: 96px;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 80% 15%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 70%, rgba(232, 121, 249, 0.05) 0%, transparent 40%),
    linear-gradient(to bottom, #090614 0%, #100a24 100%);
}

.neural-network-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-size: 48px 48px;
  background-image: radial-gradient(circle, rgba(168, 85, 247, 0.25) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  z-index: 0;
}

.edu-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Header */
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--e-card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--e-border);
  border-radius: 16px;
  margin-bottom: 32px;
}

.edu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edu-badge {
  font-size: 1.4rem;
  background: rgba(168, 85, 247, 0.15);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--e-border);
}

.edu-title h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.edu-title p {
  font-size: 0.76rem;
  color: var(--e-text-muted);
  font-family: var(--font-mono);
}

.edu-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Header Dropdown Menu */
.edu-dropdown {
  position: relative;
  display: inline-block;
}

.edu-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--e-border);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.edu-dropdown-trigger:hover,
.edu-dropdown:hover .edu-dropdown-trigger {
  background: rgba(168, 85, 247, 0.22);
  border-color: var(--e-border-glow);
  box-shadow: 0 0 16px -2px var(--e-violet-glow);
}

.edu-dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  color: var(--e-violet);
}

.edu-dropdown:hover .edu-dropdown-arrow {
  transform: rotate(180deg);
}

.edu-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: rgba(16, 11, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--e-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px -4px var(--e-violet-glow);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 999;
  animation: dropdown-fade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.edu-dropdown:hover .edu-dropdown-menu,
.edu-dropdown:focus-within .edu-dropdown-menu {
  display: flex;
}

.edu-dropdown-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--e-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px 4px 12px;
}

.edu-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.edu-dropdown-item:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateX(2px);
}

.dropdown-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.dropdown-badge.google {
  background: rgba(66, 133, 244, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(66, 133, 244, 0.4);
}

.dropdown-badge.adk {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.dropdown-badge.hot {
  background: rgba(0, 240, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.dropdown-item-desc {
  font-size: 0.78rem;
  color: var(--e-text-muted);
  line-height: 1.45;
}

.edu-stat-item {
  text-align: right;
}

.edu-stat-item .val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--e-violet);
  font-family: var(--font-mono);
}

.edu-stat-item .lbl {
  font-size: 0.72rem;
  color: var(--e-text-muted);
}

/* Hero */
.edu-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(22, 16, 38, 0.9) 100%);
  border: 1px solid var(--e-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 36px;
  position: relative;
}

.edu-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--e-border);
  border-radius: 9999px;
  color: var(--e-fuchsia);
  font-weight: 600;
  margin-bottom: 14px;
}

.edu-hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.edu-hero p {
  color: var(--e-text-muted);
  font-size: 1rem;
  max-width: 760px;
  margin-bottom: 28px;
}

.edu-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.edu-kpi-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--e-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.edu-kpi-card .lbl {
  font-size: 0.72rem;
  color: var(--e-text-muted);
  text-transform: uppercase;
}

.edu-kpi-card .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--e-violet);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Sections */
.section-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--e-border);
  padding-bottom: 10px;
}

.section-nav-wrap h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edu-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.edu-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* Course / Track Card */
.course-card {
  background: var(--e-card-bg);
  border: 1px solid var(--e-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  background: var(--e-card-hover);
  border-color: var(--e-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px var(--e-violet-glow);
}

.course-level {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--e-fuchsia);
  display: inline-block;
  margin-bottom: 10px;
}

.course-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.course-card p {
  font-size: 0.88rem;
  color: var(--e-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.course-topics {
  list-style: none;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.course-topics li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-topics li::before {
  content: "✦";
  color: var(--e-violet);
  font-size: 0.7rem;
}

/* Formula Box */
.formula-card {
  background: var(--e-card-bg);
  border: 1px solid var(--e-border);
  border-radius: 16px;
  padding: 24px;
}

.formula-card h4 {
  color: var(--e-fuchsia);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.formula-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e9d5ff;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .edu-kpi-grid, .edu-grid-3, .edu-grid-2 {
    grid-template-columns: 1fr;
  }
  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
