/* =========================================================
   Dashboard Hub — um CTA principal (Sprint 2)
   Escopo: body.dashboard + .dashboard-main-card
========================================================= */

/* —— Ritual em destaque —— */
.dash-hub--ritual .daily-ritual--hero {
  margin-bottom: 12px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border-width: 1.5px;
  box-shadow:
    0 12px 32px rgba(99, 102, 241, 0.14),
    0 0 0 1px rgba(99, 102, 241, 0.08);
}

.dash-hub--ritual .daily-ritual--hero .daily-ritual-streak {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.dash-hub--ritual .daily-ritual--hero .daily-ritual-cta {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.dash-hub--ritual .daily-ritual--urgent {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08));
}

.dash-hub--ritual .daily-ritual--urgent .daily-ritual-review-chip {
  animation: dashHubUrgentPulse 2s ease-in-out infinite;
}

@keyframes dashHubUrgentPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  }
}

.daily-ritual-fill--pulse {
  animation: dashHubGoalPulse 1.8s ease-in-out infinite;
}

@keyframes dashHubGoalPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

/* —— Secundário recolhível (modo ritual) —— */
.dash-hub-secondary {
  opacity: 1;
  pointer-events: auto;
}

.dash-hub-expand-btn {
  display: none !important;
}

/* —— Modo combate: ritual compacto, arena hero —— */
.dash-hub--combat .daily-ritual--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-head {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-kicker {
  font-size: 10px;
  margin-bottom: 2px;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-streak {
  font-size: 13px;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-progress-row {
  flex: 0 0 auto;
  margin-bottom: 0;
  min-width: 100px;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-hint,
.dash-hub--combat .daily-ritual--compact .daily-ritual-exam {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
}

.dash-hub--combat .daily-ritual--compact .daily-ritual-cta {
  flex: 1 1 100%;
  padding: 10px 14px;
  font-size: 13px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.dash-hub--combat .combat-card {
  border-radius: 20px;
  box-shadow:
    0 16px 40px rgba(99, 102, 241, 0.12),
    0 0 0 1.5px rgba(99, 102, 241, 0.15);
}

.dash-hub--combat #btnBattle.pvp-btn {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  animation: dashHubCtaGlow 3s ease-in-out infinite;
}

@keyframes dashHubCtaGlow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-ritual-fill--pulse,
  .dash-hub--ritual .daily-ritual--urgent .daily-ritual-review-chip,
  .dash-hub--combat #btnBattle.pvp-btn {
    animation: none;
  }
}

/* —— Zonas em segundo plano —— */
.dash-hub--ritual .dash-zone-nav {
  opacity: 0.78;
  transform: scale(0.98);
  transform-origin: top center;
}

.dash-hub--ritual .dash-zone-panels {
  opacity: 0.88;
}

.dash-hub--combat .dash-zone-nav {
  margin-top: 4px;
}
