﻿/* ==========================================================================
   missoes-produtividade.css — Missões de Produtividade no Trabalho (F5)
   Design System Oficial F5 com Simulador de Escritório & Tomada de Decisão
   ========================================================================== */

:root {
  --mp-bg: #07111e;
  --mp-surface: #0b1a2d;
  --mp-surface-hover: #10243e;
  --mp-cyan: #38bdf8;
  --mp-cyan-glow: rgba(56, 189, 248, 0.4);
  --mp-yellow: #facc15;
  --mp-yellow-glow: rgba(250, 204, 21, 0.4);
  --mp-green: #4ade80;
  --mp-purple: #c084fc;
  --mp-orange: #fb923c;
  --mp-text: #f8fafc;
  --mp-text-muted: #94a3b8;
  --mp-font: 'Barlow', -apple-system, sans-serif;
  --mp-font-cond: 'Barlow Condensed', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--mp-bg);
  font-family: var(--mp-font);
  color: var(--mp-text);
  user-select: none;
  -webkit-user-select: none;
}

.mp-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background: radial-gradient(circle at 50% 15%, #0e223d 0%, #050d18 100%);
}

/* ── Topbar ── */
.mp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.2rem;
  background: rgba(7, 17, 30, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  z-index: 20;
}

.mp-back-btn {
  color: var(--mp-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
}
.mp-back-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  transform: translateX(-2px);
}

.mp-top-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mp-top-title span:first-child {
  font-family: var(--mp-font-cond);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.mp-top-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--mp-yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-top-controls {
  display: flex;
  gap: 0.5rem;
}
.mp-btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mp-text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-btn-icon:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--mp-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}
.mp-btn-icon svg { width: 16px; height: 16px; }

/* ── Palco Principal ── */
.mp-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4rem 1.2rem 0.6rem;
  overflow: hidden;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  gap: 0.45rem;
}

/* ── HUD ── */
.mp-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mp-stat-box {
  background: rgba(11, 26, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 0.25rem 0.7rem;
  display: flex;
  flex-direction: column;
  min-width: 75px;
}
.mp-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mp-text-muted);
  letter-spacing: 0.05em;
}
.mp-stat-val {
  font-family: var(--mp-font-cond);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.mp-stat-val.gold { color: var(--mp-yellow); text-shadow: 0 0 10px var(--mp-yellow-glow); }
.mp-stat-val.cyan { color: var(--mp-cyan); }

.mp-mission-badge {
  font-family: var(--mp-font-cond);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
  letter-spacing: 0.04em;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* ── Card do Cenário da Empresa ── */
.mp-scenario-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(11, 26, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
}
.mp-app-icon {
  font-size: 1.8rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mp-scenario-info { flex: 1; min-width: 0; }
.mp-app-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}
.mp-app-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--mp-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mp-priority-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
}
.mp-scenario-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0.1rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-scenario-desc {
  font-size: 0.78rem;
  color: var(--mp-text-muted);
  line-height: 1.35;
}

/* ── Área de Decisões de Trabalho ── */
.mp-work-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mp-steps-panel {
  background: linear-gradient(180deg, #0e223d 0%, #081628 100%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow-y: auto;
  gap: 0.55rem;
  height: 100%;
}

.mp-panel-title {
  font-family: var(--mp-font-cond);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mp-yellow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3rem;
}

.mp-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp-step-box {
  background: rgba(7, 17, 31, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mp-step-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-step-num {
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.2);
  color: var(--mp-cyan);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.mp-step-question {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.mp-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem;
}

.mp-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(11, 26, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-option-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}
.mp-option-item.selected {
  background: rgba(250, 204, 21, 0.15);
  border-color: var(--mp-yellow);
  box-shadow: 0 0 10px var(--mp-yellow-glow);
}

.mp-radio {
  margin-top: 2px;
  accent-color: var(--mp-yellow);
  cursor: pointer;
}

.mp-option-text {
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.mp-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 42px;
  background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #eab308 100%);
  color: #08111e;
  border: 1px solid rgba(254, 240, 138, 0.6);
  border-radius: 10px;
  font-family: var(--mp-font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(250, 204, 21, 0.35);
  transition: all 0.2s ease;
  margin-top: 0.2rem;
}
.mp-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.5);
}

/* ── Modais e Overlays ── */
.mp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 19, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}
.mp-overlay.hidden { display: none !important; }

.mp-card {
  background: linear-gradient(145deg, #0e223d 0%, #081628 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--mp-cyan-glow);
}

.mp-result-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.mp-stars-display { font-size: 1.8rem; margin: 0.4rem 0 0.8rem; }

.mp-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-cyan);
  margin-bottom: 0.2rem;
  display: inline-block;
}

.mp-title {
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: #fff;
}

.mp-feedback-box {
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 1.1rem;
}
.mp-feedback-box strong { color: var(--mp-yellow); }
.mp-feedback-box ul { margin-left: 1.2rem; margin-top: 0.4rem; }
.mp-feedback-box li { margin-bottom: 0.3rem; }

.mp-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #eab308 100%);
  color: #08111e;
  border: 1px solid rgba(254, 240, 138, 0.6);
  border-radius: 12px;
  font-family: var(--mp-font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mp-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(250, 204, 21, 0.5);
}

.mp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.mp-btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 42px;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-btn-share:hover { background: #16a34a; }
.mp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mp-text);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mp-cyan);
}

.mp-gameover-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.mp-go-stat {
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
}
.mp-go-label {
  font-size: 0.62rem;
  color: var(--mp-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.mp-go-val {
  font-family: var(--mp-font-cond);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.mp-go-val.highlight { color: var(--mp-yellow); }

.mp-record-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid var(--mp-yellow);
  color: var(--mp-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ── Toast no Canto Superior Direito ── */
.mp-toast {
  position: absolute;
  top: 65px;
  right: 25px;
  background: rgba(14, 34, 61, 0.95);
  border: 1px solid var(--mp-yellow);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--mp-yellow-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
.mp-toast.show {
  opacity: 1;
  transform: translateY(0);
}
