/* MAGNE.AI DR Site — Dark Institutional Theme */

:root {
  --bg-primary: #0a0a0d;
  --bg-secondary: #131318;
  --bg-tertiary: #1c1c24;
  --bg-card: #181820;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.7);
  --text-tertiary: rgba(245, 245, 247, 0.5);
  --accent: #00d4d4;
  --accent-dim: rgba(0, 212, 212, 0.15);
  --warn: #ff9500;
  --error: #ff453a;
  --success: #4caf50;
  --radius: 12px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

/* Navigation */
header.dr-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.hero .meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Sections */
.section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section h3 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}
.section h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

p, li {
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}
ul { padding-left: 1.4rem; }
ol { padding-left: 1.4rem; }

strong {
  color: var(--text-primary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.card-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
}
.card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.badge-public { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.badge-summary { background: rgba(255, 149, 0, 0.15); color: #ff9500; }
.badge-nda { background: rgba(0, 212, 212, 0.15); color: #00d4d4; }
.badge-private { background: rgba(255, 69, 58, 0.15); color: #ff453a; }
.badge-pending { background: rgba(255, 149, 0, 0.15); color: #ff9500; }
.badge-progress { background: rgba(0, 212, 212, 0.15); color: #00d4d4; }
.badge-tbc { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Tables */
.dr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.dr-table th,
.dr-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.dr-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.dr-table tr:hover {
  background: var(--bg-card);
}

/* CTA */
.cta {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
  transition: opacity 0.2s;
}
.cta:hover { opacity: 0.85; }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Disclaimer */
.disclaimer {
  background: rgba(255, 149, 0, 0.08);
  border-left: 3px solid var(--warn);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-size: 0.92rem;
}
.disclaimer strong { color: var(--warn); }

/* Footer */
footer.dr-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-container { padding: 0.8rem 1rem; }
  .nav-links { gap: 0.6rem; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
  .container { padding: 1rem; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 1.2rem; }
  .dr-table { font-size: 0.82rem; }
  .dr-table th, .dr-table td { padding: 0.5rem; }
}

/* Filter input */
.filter-input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Last-updated footer text */
.last-updated {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-style: italic;
}
