/*
 * Page Verify : scène du hero, le popup de l'extension après la vérification d'un fichier local
 * (ResultStage de C2PA_Ext, thème actuel) : en-tête marque + onglets, scène braise avec la photo
 * et son sceau, verdict, trois contrôles, signataire, bouton du rapport complet. Les contrôles
 * apparaissent un à un. Préfixe vr-. Gabarit : product-guide.css.
 */

.vr-pp {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 76, 0.25);
  border-radius: 20px;
  background: #fffaf6;
  box-shadow: var(--ps-shadow-panel);
  color: #1c110b;
}

.vr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.vr-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.vr-icon img {
  width: 26px;
  height: 26px;
}

.vr-brand {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.vr-brand b {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
}

.vr-brand small {
  margin-top: 4px;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.vr-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #edf2f8;
}

.vr-tab {
  padding: 6px 10px;
  border-radius: 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.vr-tab--on {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: #071126;
}

.vr-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 16px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(16, 185, 129, 0.2), transparent 60%),
    #120a06;
  color: #f6ece6;
}

.vr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vr-file-name {
  color: #c7ab9d;
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.vr-x {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 250, 246, 0.16);
  border-radius: 50%;
  color: rgba(255, 250, 246, 0.75);
  font-size: 13px;
  line-height: 1;
}

.vr-photo {
  position: relative;
  display: block;
  height: 132px;
  border-radius: 14px;
  background: #2a1810;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8);
}

.vr-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Sceau du verdict : disque blanc, anneau de la couleur du statut (droit, jamais incliné). */
.vr-seal {
  position: absolute;
  right: -8px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #10b981, 0 10px 22px -8px #10b981;
  color: #10b981;
}

.vr-seal svg {
  width: 24px;
  height: 24px;
}

.vr-verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.vr-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.18);
}

.vr-verdict-text {
  color: #c7ab9d;
  font-size: 12.5px;
  line-height: 1.45;
}

.vr-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.vr-check {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vr-check + .vr-check {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 138, 76, 0.2);
}

.vr-check span {
  color: #a98e80;
  font-family: var(--ps-font-mono);
  font-size: 10px;
}

.vr-check b {
  overflow: hidden;
  color: #34d399;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vr-signed {
  color: #c7ab9d;
  font-size: 12px;
}

.vr-signed b {
  color: #fff;
  font-weight: 800;
}

.vr-btn {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a3d, #f4511e);
  box-shadow: 0 14px 26px -14px rgba(244, 81, 30, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.vr-local {
  color: #34d399;
  font-family: var(--ps-font-mono);
  font-size: 10px;
  text-align: center;
}

/* Les contrôles apparaissent une fois au chargement, comme dans le popup. */
@keyframes vr-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.vr-check {
  animation: vr-in 0.4s var(--ps-ease) both;
}

.vr-c1 { animation-delay: 0.75s; }
.vr-c2 { animation-delay: 0.87s; }
.vr-c3 { animation-delay: 0.99s; }

@media (max-width: 420px) {
  .vr-stage {
    padding: 12px 14px 14px;
  }

  .vr-verdict {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-check {
    animation: none;
  }
}
