﻿/* ==========================================================================
   detetive-phishing.css — Detetive do Phishing (Segurança Digital F5)
   Design System Oficial F5 com Simulador de E-mails, Links e Inspetor de URL
   ========================================================================== */

:root {
  --dp-bg: #07111e;
  --dp-surface: #0b1a2d;
  --dp-surface-hover: #10243e;
  --dp-cyan: #38bdf8;
  --dp-cyan-glow: rgba(56, 189, 248, 0.4);
  --dp-yellow: #facc15;
  --dp-yellow-glow: rgba(250, 204, 21, 0.4);
  --dp-green: #22c55e;
  --dp-green-glow: rgba(34, 197, 94, 0.4);
  --dp-red: #ef4444;
  --dp-red-glow: rgba(239, 68, 68, 0.4);
  --dp-text: #f8fafc;
  --dp-text-muted: #94a3b8;
  --dp-font: 'Barlow', -apple-system, sans-serif;
  --dp-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(--dp-bg);
  font-family: var(--dp-font);
  color: var(--dp-text);
  user-select: none;
  -webkit-user-select: none;
}

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

/* ── Topbar ── */
.dp-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;
}

.dp-back-btn {
  color: var(--dp-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;
}
.dp-back-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  transform: translateX(-2px);
}

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

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

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

/* ── HUD ── */
.dp-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dp-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;
}
.dp-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dp-text-muted);
  letter-spacing: 0.05em;
}
.dp-stat-val {
  font-family: var(--dp-font-cond);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.dp-stat-val.gold { color: var(--dp-yellow); text-shadow: 0 0 10px var(--dp-yellow-glow); }
.dp-stat-val.cyan { color: var(--dp-cyan); }

.dp-lives-box {
  display: flex;
  gap: 3px;
  margin-top: 1px;
}
.dp-heart {
  font-size: 0.9rem;
  transition: transform 0.2s, filter 0.2s;
}
.dp-heart.lost {
  filter: grayscale(1) opacity(0.3);
  transform: scale(0.85);
}

.dp-level-badge {
  font-family: var(--dp-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);
}

.dp-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dp-combo-badge {
  font-family: var(--dp-font-cond);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dp-yellow);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 0.15rem 0.65rem;
  border-radius: 7px;
  text-transform: uppercase;
}
.dp-btn-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--dp-yellow);
  padding: 0.2rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dp-btn-hint:hover {
  background: rgba(250, 204, 21, 0.25);
  transform: translateY(-1px);
}

/* ── Container do E-mail / Mensagem Simulada ── */
.dp-mail-container {
  flex: 1;
  background: linear-gradient(180deg, #0e223d 0%, #081628 100%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(56, 189, 248, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 240px;
}

.dp-mail-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(7, 17, 31, 0.85);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.dp-mail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #143152;
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dp-mail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.dp-mail-sender-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dp-mail-sender-row strong {
  font-size: 0.95rem;
  color: #fff;
}
.dp-sender-email {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--dp-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.dp-mail-subject-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dp-subject-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--dp-text-muted);
}
.dp-subject-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-mail-body {
  flex: 1;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
}
.dp-mail-body p { margin-bottom: 0.75rem; }
.dp-mail-body strong { color: #fff; }

.dp-mock-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  margin: 0.5rem 0;
  border: 1px solid #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dp-mock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
}

.dp-attachment-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  margin-top: 0.5rem;
}
.dp-attachment-box span { font-size: 0.82rem; color: #fff; font-family: monospace; }

/* ── Inspetor de Link no Rodapé ── */
.dp-url-inspector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(4, 10, 19, 0.95);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.76rem;
}
.dp-url-label {
  font-weight: 800;
  color: var(--dp-yellow);
  flex-shrink: 0;
}
.dp-url-text {
  font-family: monospace;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Painel de Decisão (2 Botões Gigantes) ── */
.dp-decision-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.dp-btn-verdict {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  border: 2px solid transparent;
}
.dp-verdict-icon { font-size: 1.8rem; flex-shrink: 0; }
.dp-verdict-text { display: flex; flex-direction: column; }
.dp-verdict-text strong {
  font-family: var(--dp-font-cond);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dp-verdict-text span {
  font-size: 0.72rem;
  opacity: 0.85;
}

.dp-btn-scam {
  background: linear-gradient(145deg, #7f1d1d, #450a0a);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}
.dp-btn-scam:hover {
  background: linear-gradient(145deg, #991b1b, #5a0c0c);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.45);
}

.dp-btn-safe {
  background: linear-gradient(145deg, #14532d, #052e16);
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}
.dp-btn-safe:hover {
  background: linear-gradient(145deg, #166534, #0b3d1f);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.45);
}

/* ── Modais e Overlays ── */
.dp-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;
}
.dp-overlay.hidden { display: none !important; }

.dp-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(--dp-cyan-glow);
}

.dp-result-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

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

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

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

.dp-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(--dp-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);
}
.dp-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(250, 204, 21, 0.5);
}

.dp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.dp-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;
}
.dp-btn-share:hover { background: #16a34a; }
.dp-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(--dp-text);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dp-cyan);
}

.dp-gameover-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.dp-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;
}
.dp-go-label {
  font-size: 0.62rem;
  color: var(--dp-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.dp-go-val {
  font-family: var(--dp-font-cond);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.dp-go-val.highlight { color: var(--dp-yellow); }

.dp-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(--dp-yellow);
  color: var(--dp-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ── Toast no Canto Superior Direito ── */
.dp-toast {
  position: absolute;
  top: 65px;
  right: 25px;
  background: rgba(14, 34, 61, 0.95);
  border: 1px solid var(--dp-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(--dp-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;
}
.dp-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .dp-decision-panel {
    grid-template-columns: 1fr;
  }
}
