/* ============================================================
   JOURNEY.CSS — Normal Stacked User Journey Section & Persona Modal
   ============================================================ */

/* ─── SECTION SHELL ──────────────────────────────────────── */
#journey {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}

.journey-stacked-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.journey-card-block {
  background: linear-gradient(
    160deg,
    rgba(15, 33, 56, 0.85),
    rgba(7, 15, 30, 0.95)
  );
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.journey-card-block::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--persona-accent-glow, rgba(9, 128, 214, 0.12)) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.journey-card-block:hover {
  border-color: var(--persona-accent, var(--primary-light));
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.persona-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Left: text */
.persona-text {
  position: relative;
  z-index: 2;
}
.persona-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  border: 1px solid;
}
.persona-text h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.persona-tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
}
.persona-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.persona-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}
.persona-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

/* Right: 3D-styled Summary Box */
.persona-card-3d {
  position: relative;
  z-index: 2;
}
.persona-card-inner {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.persona-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--persona-accent, #0980d6), #0284c7);
  box-shadow: 0 4px 16px var(--persona-accent-glow, rgba(9, 128, 214, 0.4));
}
.persona-card-name {
  font-size: 16px;
  font-weight: 700;
}
.persona-card-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.persona-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 12px;
  border-radius: 20px;
}
.persona-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}
.persona-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.persona-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}
.persona-metric-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--persona-accent, var(--primary-light));
  display: block;
  margin-bottom: 4px;
}
.persona-metric-label {
  font-size: 12px;
  color: var(--text-muted);
}
.persona-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: linear-gradient(135deg, var(--persona-accent, #0980d6), #0284c7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--persona-accent-glow, rgba(9, 128, 214, 0.35));
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.persona-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--persona-accent-glow, rgba(9, 128, 214, 0.5));
}

/* ─── PERSONA DETAIL MODAL ───────────────────────────────── */
.persona-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.persona-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.persona-modal-card {
  background: linear-gradient(145deg, #0e1e36, #071224);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  max-width: 620px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
}
.persona-modal-backdrop.open .persona-modal-card {
  transform: scale(1) translateY(0);
}

.persona-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.persona-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

.persona-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.persona-modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 128, 214, 0.18);
  border: 1px solid rgba(9, 128, 214, 0.3);
  color: var(--primary-light);
  flex-shrink: 0;
}
.persona-modal-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
.persona-modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.persona-modal-body {
  margin-bottom: 28px;
}
.persona-modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.persona-modal-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.persona-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.persona-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.persona-modal-list li i {
  color: var(--accent);
  margin-top: 3px;
  font-size: 13px;
}

.persona-modal-sec-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(6, 198, 178, 0.08);
  border: 1px solid rgba(6, 198, 178, 0.2);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
}
.persona-modal-sec-box i {
  font-size: 20px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.persona-modal-sec-box strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 2px;
}
.persona-modal-sec-box p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.persona-modal-actions {
  display: flex;
  gap: 14px;
}

/* ─── RTL MODAL ───────────────────────────────────────────── */
[dir="rtl"] .persona-modal-header {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .persona-modal-close {
  right: auto;
  left: 20px;
}
[dir="rtl"] .persona-modal-list li {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .persona-modal-sec-box {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .persona-modal-actions {
  flex-direction: row-reverse;
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #journey {
    padding: 60px 0;
  }
  .journey-card-block {
    padding: 28px 20px;
  }
  .persona-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .persona-text h3 {
    font-size: 24px;
  }
  .persona-modal-card {
    padding: 24px 20px;
  }
  .persona-modal-actions {
    flex-direction: column;
  }
}
