/* story-interactions.css — SecurityForMe Interactive Story Engine
   Light theme matching scenario.php: navy #0E3A6B + gold #D4AF37 */

.sfmi { margin: 2rem 0; }

.sfmi-header { margin-bottom: 1rem; }
.sfmi-title { font-size: 1.15rem; font-weight: 800; color: #0E3A6B; }
.sfmi-sub { font-size: .85rem; color: #64748b; margin-top: .15rem; }
.sfmi-progress { display: flex; gap: 6px; margin-top: .6rem; }
.sfmi-dot { width: 26px; height: 6px; border-radius: 4px; background: #e2e8f0; transition: background .3s; }
.sfmi-dot.on { background: #D4AF37; }

.sfmi-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 1.2rem 1.3rem; margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(11,45,90,.06);
}
.sfmi-in { animation: sfmi-slide .35s ease; }
@keyframes sfmi-slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sfmi-locked { opacity: .92; }

.sfmi-badge {
  display: inline-block; background: #0E3A6B; color: #fff; font-size: .72rem;
  font-weight: 700; letter-spacing: .05em; padding: .25rem .7rem; border-radius: 20px;
  margin-bottom: .8rem;
}
.sfmi-question { font-size: 1.02rem; font-weight: 600; color: #1e293b; margin-bottom: .9rem; line-height: 1.55; }
.sfmi-hint { font-size: .85rem; color: #64748b; margin: 0 0 .8rem; }

/* options / buttons */
.sfmi-options { display: flex; flex-direction: column; gap: .55rem; }
.sfmi-opt {
  text-align: start; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: .75rem 1rem; font-size: .93rem; color: #1e293b; cursor: pointer;
  transition: border-color .12s, background .12s; font-family: inherit;
}
.sfmi-opt:hover:not(:disabled) { border-color: #0E3A6B; background: #f1f6fc; }
.sfmi-opt:disabled { cursor: default; }
.sfmi-opt.ok  { border-color: #16a34a; background: #dcfce7; font-weight: 600; }
.sfmi-opt.bad { border-color: #dc2626; background: #fee2e2; }

.sfmi-btn {
  background: #D4AF37; color: #0f1117; border: 0; border-radius: 10px;
  padding: .65rem 1.6rem; font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: transform .12s;
}
.sfmi-btn:hover { transform: translateY(-1px); }
.sfmi-actions { margin-top: .9rem; }

.sfmi-feedback {
  margin-top: .9rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; line-height: 1.55;
}
.sfmi-feedback.ok  { background: #dcfce7; color: #14532d; }
.sfmi-feedback.bad { background: #fee2e2; color: #7f1d1d; }

.sfmi-done {
  background: #dcfce7; color: #14532d; border-radius: 12px; padding: 1rem 1.2rem;
  font-weight: 700; text-align: center; margin-top: .3rem;
}

/* ── chat simulator ── */
.sfmi-phone {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 16px;
  overflow: hidden; max-width: 420px;
}
.sfmi-phone-bar {
  background: #0E3A6B; color: #fff; padding: .55rem .9rem; font-size: .85rem;
  font-weight: 600; display: flex; align-items: center; gap: .5rem;
}
.sfmi-avatar { background: rgba(255,255,255,.18); border-radius: 50%; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.sfmi-chatlog { padding: .9rem; max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .45rem; }
.sfmi-bubble {
  max-width: 82%; padding: .55rem .85rem; border-radius: 14px; font-size: .88rem; line-height: 1.45;
  animation: sfmi-slide .25s ease;
}
.sfmi-bubble.them { background: #fff; border: 1px solid #e2e8f0; color: #1e293b;
  align-self: flex-start; border-start-start-radius: 4px; }
.sfmi-bubble.me { background: #0E3A6B; color: #fff;
  align-self: flex-end; border-start-end-radius: 4px; }
.sfmi-typing { color: #94a3b8; font-style: italic; }
.sfmi-reply-prompt { font-size: .75rem; color: #94a3b8; text-align: center; margin-top: .3rem; }
.sfmi-replies { display: flex; flex-direction: column; gap: .4rem; }
.sfmi-reply {
  background: #fff; border: 1.5px dashed #0E3A6B; color: #0E3A6B; border-radius: 12px;
  padding: .55rem .85rem; font-size: .86rem; cursor: pointer; font-family: inherit;
  text-align: start; transition: background .12s;
}
.sfmi-reply:hover { background: #f1f6fc; }

/* ── email inspector ── */
.sfmi-email {
  border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
  font-size: .9rem; background: #fff;
}
.sfmi-email-row { padding: .55rem .95rem; border-bottom: 1px solid #eef2f7; color: #334155; }
.sfmi-email-label { color: #94a3b8; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; margin-inline-end: .35rem; }
.sfmi-email-body { padding: .9rem .95rem; color: #1e293b; line-height: 1.6; }
.sfmi-email-body p { margin: 0 0 .6rem; }
.sfmi-email-link { font-weight: 600; }
.sfmi-email-sig { color: #64748b; font-size: .85rem; }

.sfmi-flag {
  display: inline; padding: .1rem .3rem; border-radius: 6px; cursor: pointer;
  border-bottom: 2px dotted #94a3b8; transition: background .12s, border-color .12s;
}
.sfmi-flag:hover { background: #fef9c3; }
.sfmi-flag.flagged { background: #fde68a; border-bottom-color: #D4AF37; font-weight: 600; }
.sfmi-flag.is-bad { background: #fee2e2; border-bottom-color: #dc2626; }
.sfmi-flag.is-safe { background: #dcfce7; border-bottom-color: #16a34a; }

.sfmi-whys { margin-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.sfmi-whys-title { font-weight: 700; color: #0E3A6B; font-size: .9rem; }
.sfmi-why { display: flex; gap: .55rem; font-size: .85rem; line-height: 1.5;
  background: #f8fafc; border-radius: 10px; padding: .6rem .8rem; color: #334155; }
.sfmi-why.bad { background: #fef2f2; }
.sfmi-why em { color: #64748b; font-style: normal; font-size: .78rem; }

@media (max-width: 560px) {
  .sfmi-card { padding: .9rem; }
  .sfmi-phone { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sfmi * { animation: none !important; transition: none !important; }
}
