/* ============================================================
   LEGACY.CSS — AstroEdu Brasil
   Gerado por tools/split-css.js
   Não editar manualmente — edite a fonte ou reorganize os slots.
   ============================================================ */
/* ================================================================
   HOME DASHBOARD v2 — Minimalist restructure
   ================================================================ */

/* Top panel — level display */
.home-top-level-display { display: flex; align-items: center; gap: 0.6rem; }
.home-top-level-emoji { font-size: 2rem; line-height: 1; }
.home-top-level-text { display: flex; flex-direction: column; gap: 0.2rem; }
.home-top-level-name { font-family: var(--font-h); font-size: 0.95rem; font-weight: 700; color: var(--text); }
.home-top-level-text #home-level-select { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Row mid — quick-q + livros side by side */
.home-row-mid { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .home-row-mid { grid-template-columns: 1fr; } }

/* Quick question single-column body */
.quick-q-card-single .quick-q-body-single { display: flex; flex-direction: column; gap: 1rem; }
.quick-q-prompt { min-height: 0; }
.quick-q-options-wrap { min-height: 0; }

/* Minimalist topic bars */
.topic-mini-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem;
}
.topic-mini {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-width: 80px;
}
.topic-mini:hover, .topic-mini.show-name { border-color: var(--accent); background: rgba(0,212,255,0.06); }
.topic-mini-icon { font-size: 1.1rem; line-height: 1; }
.topic-mini-track {
  flex: 1; min-width: 50px; height: 6px;
  display: flex; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.topic-mini-name {
  font-size: 0.72rem; color: var(--text); white-space: nowrap;
  max-width: 0; overflow: hidden;
  transition: max-width 0.3s var(--ease), margin-left 0.3s var(--ease);
}
.topic-mini:hover .topic-mini-name,
.topic-mini.show-name .topic-mini-name {
  max-width: 140px;
}
@media (hover: none) {
  /* On touch, only show-name class reveals it */
  .topic-mini:hover .topic-mini-name { max-width: 0; }
  .topic-mini.show-name .topic-mini-name { max-width: 140px; }
}

/* ===== DASHBOARD v3 — zones, hero, collapse, tour, metrics ===== */

/* Zone sections */
.dash-zone {
  margin-bottom: 2.5rem;
  padding: 0;
}
.dash-zone-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}
.dash-zone-title {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--text);
  opacity: 0.95;
  position: relative;
  padding-left: 0.75rem;
}
.dash-zone-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2, #9b59b6));
  border-radius: 2px;
}
.dash-zone[data-zone="progresso"] .dash-zone-title { color: #00d4ff; }
.dash-zone[data-zone="aprender"] .dash-zone-title { color: #10b981; }
.dash-zone[data-zone="desafios"] .dash-zone-title { color: #f1c40f; }

.dash-tour-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-h, rgba(255,255,255,0.12));
  color: var(--text-2, #aab);
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; cursor: pointer;
  transition: all 0.2s ease;
}
.dash-tour-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,0.08); }

/* Hero action card */
.dash-hero {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(155,89,182,0.18));
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,212,255,0.1);
}
.dash-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.2); }
.dash-hero-icon { font-size: 2.2rem; flex-shrink: 0; }
.dash-hero-body { flex: 1; min-width: 0; }
.dash-hero-title { font-family: var(--font-h); font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 0.2rem; }
.dash-hero-sub { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.dash-hero-cta {
  background: var(--accent); color: #001020;
  border: 0; padding: 0.6rem 1.1rem; border-radius: 10px;
  font-weight: 800; cursor: pointer; font-size: 0.85rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-hero-cta:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,212,255,0.4); }

/* Pulse effect on quick-q card when hero triggered */
.card-pulse { animation: cardPulse 1.6s ease; }
@keyframes cardPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
  40% { box-shadow: 0 0 0 8px rgba(0,212,255,0.4); }
  80% { box-shadow: 0 0 0 14px rgba(0,212,255,0); }
}

/* Collapse toggle & body */
.carousel-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dash-collapse-toggle {
  background: transparent; border: 1px solid var(--border-h, rgba(255,255,255,0.12));
  color: var(--text-2, #aab); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.dash-collapse-toggle:hover { color: var(--accent); border-color: var(--accent); }
.home-collapsible.collapsed .home-collapsible-body { display: none; }
.home-collapsible.collapsed { background: rgba(13,27,75,0.5); }
.home-collapsible-body { min-height: 260px; display: flex; flex-direction: column; }
.home-collapsible-body > .carousel-scroll,
.home-collapsible-body > .livros-carousel-scroll,
.home-collapsible-body > .jogos-carousel-scroll { flex: 1; }

/* Uniform carousel row heights */
.dash-zone .home-row-mid { grid-auto-rows: 1fr; }
.dash-zone .home-row-mid > * { display: flex; }
.dash-zone .home-row-mid > * > .carousel-card { flex: 1; display: flex; flex-direction: column; }

/* Metric footer */
.home-card-metric {
  font-size: 0.72rem; color: var(--text-2, rgba(255,255,255,0.5));
  padding: 0.5rem 0.1rem 0 0.1rem;
  border-top: 1px dashed rgba(255,255,255,0.08);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Aggregated topics bar */
.topic-aggregate { margin: 0.75rem 0 1rem; }
.topic-agg-track {
  display: flex; height: 14px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.06); margin-bottom: 0.5rem;
}
.topic-agg-label { font-size: 0.88rem; color: var(--text); margin-bottom: 0.5rem; }
.topic-agg-label strong { color: var(--accent); font-size: 1rem; }
.topic-agg-sub { color: var(--text-2); font-size: 0.8rem; font-weight: 400; }
.topic-agg-toggle {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-h, rgba(255,255,255,0.12));
  color: var(--text-2); padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; cursor: pointer;
  transition: all 0.2s ease;
}
.topic-agg-toggle:hover { color: var(--accent); border-color: var(--accent); }
.topic-mini-list-collapsed { display: none !important; }

/* Unified card background (blur) */
.dash-zone .sabidometro-card,
.dash-zone .topic-bars-card,
.dash-zone .quick-q-card,
.dash-zone .carousel-card,
.dash-zone .miniprova-card,
.dash-zone .home-big-btn {
  background: rgba(13,27,75,0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .dash-zone .sabidometro-card,
  .dash-zone .topic-bars-card,
  .dash-zone .quick-q-card,
  .dash-zone .carousel-card,
  .dash-zone .miniprova-card,
  .dash-zone .home-big-btn {
    background: rgba(13,27,75,0.92);
  }
}

/* Tour overlay */
.dash-tour-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dash-tour-spot {
  position: absolute; z-index: 1;
  border: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.65), 0 0 30px rgba(0,212,255,0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}
.dash-tour-tip {
  position: absolute; z-index: 2;
  background: linear-gradient(135deg, #0d1b4b, #1a0533);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  color: #fff;
}
.dash-tour-tip .dash-tour-step {
  font-size: 0.72rem; color: var(--accent); letter-spacing: 2px;
  font-weight: 700; margin-bottom: 0.4rem;
}
.dash-tour-tip h4 { font-family: var(--font-h); font-size: 1rem; margin: 0 0 0.5rem 0; }
.dash-tour-tip p { font-size: 0.88rem; color: rgba(255,255,255,0.82); line-height: 1.45; margin: 0 0 1rem 0; }
.dash-tour-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.dash-tour-actions .btn { font-size: 0.8rem; padding: 0.5rem 1rem; }

/* Mobile: flatten zones and order cards */
@media (max-width: 820px) {
  #home-dashboard { display: flex; flex-direction: column; }
  .dash-zone { display: contents; }
  .dash-zone-head { order: 0; }
  .dash-hero { order: -1; }
  /* Card ordering sequence */
  [data-card="quickq"]    { order: 1; }
  [data-card="miniprova"] { order: 2; }
  [data-card="livros"]    { order: 3; }
  [data-card="sabidometro"] { order: 5; }
  [data-card="topicos"]   { order: 6; }
  [data-card="prova"]     { order: 7; }
  [data-card="jogos"]     { order: 8; }
  [data-card="expo"]      { order: 9; }
  /* Full-width on mobile */
  .home-row { grid-template-columns: 1fr !important; }
  /* Dash-zone-head becomes sticky-ish label */
  .dash-zone-head { padding: 0.5rem; margin-bottom: 0.4rem; }
  .dash-tour-btn { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
}
@media (max-width: 600px) {
  .dash-hero { flex-wrap: wrap; padding: 0.9rem 1rem; }
  .dash-hero-icon { font-size: 1.7rem; }
  .dash-hero-title { font-size: 0.92rem; }
  .dash-hero-sub { font-size: 0.75rem; }
  .dash-hero-cta { width: 100%; margin-top: 0.3rem; }
  .dash-tour-tip { max-width: calc(100vw - 24px); left: 12px !important; }
}

/* ===== DASHBOARD v4 — unified bar, click-to-start, full-bleed expo ===== */

/* Topic unified bar */
.topic-bars-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.topic-agg-num { font-size: 0.95rem; color: var(--text-2); }
.topic-agg-num strong { color: var(--accent); font-size: 1.15rem; font-family: var(--font-h); }

.topic-unified-bar {
  display: flex;
  gap: 2px;
  margin: 0.5rem 0 1rem;
  padding: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  min-height: 60px;
}
.topic-seg {
  min-width: 0;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 4px 2px 4px;
  background: rgba(0,0,0,0.25);
  border-radius: 7px;
  overflow: hidden;
  cursor: help;
  transition: transform 0.15s ease, background 0.15s ease;
}
.topic-seg:hover { transform: translateY(-2px); background: rgba(0,212,255,0.08); z-index: 2; }
.topic-seg-icon {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.topic-seg-fill {
  width: 100%;
  height: 8px;
  display: flex;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  margin-top: auto;
}
.topic-seg-name {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.topic-seg:hover .topic-seg-name { opacity: 1; }

@media (max-width: 600px) {
  .topic-unified-bar { min-height: 70px; }
  .topic-seg-icon { font-size: 0.9rem; }
  .topic-seg-name { display: none; }
}

/* Miniprova click rows */
.miniprova-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  margin: 0.5rem 0;
}
.miniprova-list::-webkit-scrollbar { width: 6px; }
.miniprova-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.miniprova-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.miniprova-row:hover:not(.miniprova-row-disabled) {
  background: rgba(0,212,255,0.12);
  border-color: var(--accent);
  transform: translateX(3px);
}
.miniprova-row-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.miniprova-row-code {
  font-family: var(--font-h); font-size: 0.72rem; font-weight: 700;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 1px;
}
.miniprova-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.miniprova-row-bar {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 140px;
}
.mpb-track {
  position: relative;
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}
.mpb-fill {
  position: absolute; top: 0; height: 100%;
  transition: width 0.4s ease, left 0.4s ease;
}
.mpb-fill.mpb-correct { left: 0; background: linear-gradient(90deg, #10b981, #00d4ff); }
.mpb-fill.mpb-done { background: rgba(241,196,15,0.55); }
.mpb-counter {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  min-width: 44px;
  text-align: right;
}

.lucky-btn-full {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(241,196,15,0.25), rgba(241,130,15,0.18));
  border: 1px solid rgba(241,196,15,0.5);
  color: #fff5c4;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lucky-btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(241,196,15,0.25);
}

/* Inline metric text in carousel headers */
.home-card-metric-inline {
  font-size: 0.72rem;
  color: var(--text-2);
  font-style: italic;
  opacity: 0.8;
}

/* Prova start button full-width */
.prova-start-btn { width: 100%; margin-top: 0.6rem; }

