/* ============================================================
   AGUIA-CIBERNETICA AIOS — Custom Styles
   ============================================================ */

/* ── Variáveis de cor customizadas ─────────────────────────── */
:root {
  --aios-purple: #7c3aed;
  --aios-cyan: #06b6d4;
  --aios-dark: #0f0f1a;
  --aios-card-bg: rgba(124, 58, 237, 0.05);
  --aios-border: rgba(124, 58, 237, 0.2);
}

/* ── Hero section na home ───────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #1a0533 0%, #0a1628 50%, #001a2e 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid var(--aios-border);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-banner p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── Cards de feature ───────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--aios-card-bg);
  border: 1px solid var(--aios-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
  border-color: var(--aios-purple);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ── Badges de status ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-done    { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-wip     { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-planned { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-paused  { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

/* ── Tier badges ────────────────────────────────────────────── */
.tier-0 { background: rgba(239, 68, 68, 0.1);   color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.tier-1 { background: rgba(245, 158, 11, 0.1);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.tier-2 { background: rgba(16, 185, 129, 0.1);  color: #34d399; border: 1px solid rgba(16,185,129,0.3); }

/* ── Tabelas melhoradas ─────────────────────────────────────── */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--aios-border);
}

.md-typeset table:not([class]) th {
  background: rgba(124, 58, 237, 0.12);
  font-weight: 700;
}

/* ── Blocos de código melhorados ────────────────────────────── */
.md-typeset .highlight {
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ── Admonitions customizadas ───────────────────────────────── */
.md-typeset .admonition.security {
  border-color: #ef4444;
}
.md-typeset .admonition.security > .admonition-title {
  background-color: rgba(239, 68, 68, 0.1);
}
.md-typeset .admonition.security > .admonition-title::before {
  background-color: #ef4444;
  -webkit-mask-image: var(--md-admonition-icon--warning);
  mask-image: var(--md-admonition-icon--warning);
}

/* ── Header fixo com gradiente ──────────────────────────────── */
.md-header {
  background: linear-gradient(90deg, #1a0533 0%, #0a1628 100%);
}

/* ── Navigation tabs ────────────────────────────────────────── */
.md-tabs {
  background: rgba(15, 15, 26, 0.95);
}

/* ── Footer ─────────────────────────────────────────────────── */
.md-footer {
  background: var(--aios-dark);
}

/* ── Scrollbar customizada ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--aios-purple); border-radius: 999px; }

/* ── Responsivo mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-banner h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
