/* Beacon Türkiye, journey module (checkpoint demonstration screens).
   Uses only the design tokens defined in styles.css :root. */

/* ---------- scanner frame ---------- */
.jn-frame {
  position: relative;
  margin-top: 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  min-height: 300px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jn-frame.off { opacity: 0.92; }

.jn-c {
  position: absolute;
  width: 32px; height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.jn-c.c1 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.jn-c.c2 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.jn-c.c3 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.jn-c.c4 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.jn-frame.ok .jn-c { border-color: rgba(255, 255, 255, 0.55); }

.jn-scanline {
  position: absolute;
  left: 26px; right: 26px;
  height: 3px; border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 16px rgba(198, 32, 46, 0.85);
  top: 18%;
  animation: jnscan 2.6s ease-in-out infinite;
}
.jn-frame.scanning .jn-scanline { animation-duration: 0.9s; }
@keyframes jnscan {
  0%, 100% { top: 16%; }
  50% { top: 82%; }
}

.jn-center {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}
.jn-passicon {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.35rem;
}
.jn-passicon svg { width: 30px; height: 30px; }
.jn-word {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.jn-framesub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 30ch;
}

.jn-seal {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: jnpop 0.35s ease;
}
.jn-seal svg { width: 40px; height: 40px; }
.jn-seal.ok { background: var(--ok); }
.jn-seal.bad { background: var(--red); }
@keyframes jnpop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- disclosed claims / summary rows ---------- */
.jn-claims { margin-top: 0.4rem; }
.jn-claim {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.jn-claim:last-child { border-bottom: 0; }
.jn-claim span { color: var(--slate); }
.jn-claim b { font-weight: 700; text-align: right; word-break: break-word; }

.jn-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

/* ---------- data dump ---------- */
.jn-dump {
  background: var(--white);
  border: 1.5px solid var(--pale-sea);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.7rem;
  overflow: auto;
  margin-top: 0.7rem;
  max-height: 260px;
}

/* ---------- journey-done pin motif ---------- */
.jn-pinhero {
  position: relative;
  width: 150px; height: 150px;
  margin: 1.2rem auto 0.4rem;
  display: flex; align-items: center; justify-content: center;
}
.jn-pinhero .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pale-sea);
  animation: jnpulse 2.8s ease-out infinite;
}
.jn-pinhero .ring.r2 { animation-delay: 0.9s; }
.jn-pinhero .ring.r3 { animation-delay: 1.8s; }
@keyframes jnpulse {
  from { transform: scale(0.55); opacity: 0.9; }
  to { transform: scale(1.12); opacity: 0; }
}
.jn-pinhero .core {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.jn-pinhero .core svg { width: 40px; height: 40px; }

.jn-bigword {
  text-align: center;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .jn-scanline, .jn-pinhero .ring, .jn-seal { animation: none; }
}
