/* ============================================================
   MISC.CSS — AstroEdu Brasil
   Gerado por tools/split-css.js
   Não editar manualmente — edite a fonte ou reorganize os slots.
   ============================================================ */
/* ===== STAT BAR ===== */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.stat-item {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ===== BANNER (simulado, jogos) ===== */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  transition: border-color 0.3s;
}

.promo-banner:hover { border-color: var(--border-h); }

.promo-banner-icon { font-size: 2rem; flex-shrink: 0; }

.promo-banner-body { flex: 1; }

.promo-banner-body h3 {
  font-family: var(--font-h);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.promo-banner-body p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ===== GLOSSÁRIO ===== */
.glossary-item {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--azul-brilhante);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.glossary-item:hover {
  border-left-color: var(--roxo-brilhante);
  background: rgba(255,255,255,0.08);
}

.glossary-item h4 {
  color: var(--azul-brilhante);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.glossary-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CONQUISTAS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.achievement {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
  opacity: 0.5;
}

.achievement.unlocked {
  opacity: 1;
  border-color: var(--amarelo-estrela);
  box-shadow: 0 0 20px rgba(241,196,15,0.2);
}

.achievement-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.achievement-name { font-size: 0.85rem; font-weight: 700; color: var(--amarelo-estrela); }
.achievement-desc { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ============================================================
   ESTATÍSTICAS OBA
   ============================================================ */

.est-hero {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.est-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.est-hero p {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.6;
}
.est-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Bar chart */
.est-chart-container {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
}
.est-bar-svg {
  width: 100%;
  max-height: 420px;
}
.est-bar-label {
  fill: var(--text-2);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
}
.est-bar-rect {
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.est-bar-value {
  fill: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: x 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Toggle bar */
.est-toggle-bar {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  margin: 0 auto 1rem;
}
.est-toggle-btn {
  padding: 0.45rem 1rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-2);
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.est-toggle-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.est-toggle-btn.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Heatmap totals */
.est-hm-total {
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow: none !important;
}
.est-hm-total-col > div {
  font-weight: 800;
  color: var(--accent);
}
.est-hm-totals-row .est-hm-year {
  font-weight: 800;
  color: var(--accent);
}
.est-hm-grand {
  color: var(--accent) !important;
  font-size: 0.82rem !important;
}

/* Heatmap */
.est-heatmap-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.est-heatmap {
  border-collapse: separate;
  border-spacing: 3px;
  min-width: fit-content;
  margin: 0 auto;
}
.est-heatmap th,
.est-heatmap td {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  padding: 0;
  text-align: center;
}
.est-hm-year {
  font-weight: 700;
  color: var(--text);
  padding: 0.3rem 0.6rem !important;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 2;
}
.est-hm-subj {
  vertical-align: bottom;
  padding-bottom: 0.4rem !important;
  height: 100px;
}
.est-hm-subj > div {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  color: var(--text-2);
  font-size: 0.65rem;
  font-weight: 600;
  max-height: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.est-hm-cell {
  min-width: 36px;
  height: 36px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
  cursor: default;
}
.est-hm-cell:hover {
  transform: scale(1.15);
  z-index: 3;
  position: relative;
}
.est-hm-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  color: var(--text-2);
}
.est-hm-legend-bar {
  width: 120px;
  height: 10px;
  border-radius: 5px;
}

/* Sparklines / Trends */
.est-trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.est-spark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.6rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.est-spark-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.est-spark-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}
.est-spark-header h4 {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.est-spark-total {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.est-spark-svg {
  width: 100%;
  height: auto;
  display: block;
}
.est-spark-years {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}

/* Responsive */
@media (max-width: 760px) {
  .est-trends-grid {
    grid-template-columns: 1fr;
  }
  .est-hm-cell {
    min-width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }
  .est-hm-subj { height: 70px; }
  .est-hm-subj > div { font-size: 0.55rem; max-height: 65px; }
  .est-bar-label { font-size: 10px; }
  .est-bar-value { font-size: 10px; }
}

