/* ═══ FEATURE PAGE COMPONENTS — User Journey Layout ═══ */

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition); margin-bottom: 24px; text-decoration: none;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Detail header */
.detail-header {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; margin-bottom: 32px; border: 1px solid var(--border);
}
.detail-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.detail-header p { color: var(--text-secondary); font-size: 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-tag { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--primary-light); color: var(--primary-dark); }
.detail-tag.figma { background: #EDE7F6; color: #5E35B1; }

/* ═══ JOURNEY NAV (sticky) ═══ */
.journey-nav {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; margin: 0 -24px;
}
.journey-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
}
.journey-nav a {
  padding: 14px 20px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
  white-space: nowrap; border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.journey-nav a:hover { color: var(--primary); }
.journey-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ═══ OVERVIEW CARDS ═══ */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 40px; }
.overview-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: var(--transition); cursor: pointer; text-align: center;
}
.overview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.overview-card .ov-icon { font-size: 32px; margin-bottom: 12px; }
.overview-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.overview-card p { font-size: 13px; color: var(--text-secondary); }
.overview-card .ov-steps { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 8px; }

/* ═══ LIFECYCLE ═══ */
.lifecycle {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 28px; margin: 24px 0 48px;
}
.lifecycle h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.lifecycle-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
}
.lc-node {
  padding: 10px 18px; border-radius: 10px; font-size: 12px; font-weight: 700;
  text-align: center; min-width: 100px; position: relative;
}
.lc-node.submit { background: var(--primary-gradient); color: #fff; }
.lc-node.pending { background: #FFF3E0; color: #E65100; border: 2px solid #FFE082; }
.lc-node.processing { background: #E3F2FD; color: #1565C0; border: 2px solid #90CAF9; }
.lc-node.supplement { background: #FFF8E1; color: #F57F17; border: 2px solid #FFD54F; }
.lc-node.rejected { background: #FFEBEE; color: #C62828; border: 2px solid #EF9A9A; }
.lc-node.completed { background: #E8F5E9; color: #2E7D32; border: 2px solid #A5D6A7; }
.lc-arrow { font-size: 18px; color: #9E9E9E; flex-shrink: 0; }
.lc-branch { display: flex; align-items: center; gap: 6px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.lc-label { font-size: 11px; color: var(--text-secondary); text-align: center; margin-top: 4px; }

/* ═══ JOURNEY SECTION ═══ */
.journey-section { padding: 48px 0 24px; border-top: 2px solid var(--primary-light); }
.journey-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
}
.journey-title .jt-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.journey-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }

/* ═══ STEP — LEFT IMAGE + RIGHT TEXT ═══ */
.step {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  align-items: start; margin-bottom: 48px; position: relative;
  padding-left: 60px;
}
.step::before {
  content: attr(data-step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px rgba(233,30,99,0.3);
}
.step::after {
  content: ''; position: absolute; left: 21px; top: 48px; bottom: -44px;
  width: 2px; background: var(--primary-light);
}
.step:last-child::after { display: none; }
.step.step-final::before { content: '🎉'; font-size: 20px; background: linear-gradient(135deg, #4CAF50, #2E7D32); }

/* Phone column */
.step-phone { display: flex; flex-direction: column; gap: 16px; }
.phone-frame {
  width: 100%; max-width: 280px; background: #1A1A2E;
  border-radius: 36px; padding: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
}
.phone-notch {
  width: 120px; height: 28px; background: #1A1A2E;
  border-radius: 0 0 16px 16px; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%); z-index: 3;
}
.phone-notch::after {
  content: ''; position: absolute; width: 60px; height: 4px;
  background: #333; border-radius: 2px; top: 10px; left: 50%; transform: translateX(-50%);
}
.phone-screen {
  border-radius: 24px; overflow: hidden; background: #fff;
  max-height: 540px; overflow-y: auto;
}
.phone-screen::-webkit-scrollbar { width: 0; }
.phone-screen img { width: 100%; display: block; object-fit: contain; cursor: zoom-in; }
.phone-label { text-align: center; font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Multi-phone row */
.phone-row { display: flex; gap: 16px; flex-wrap: wrap; }
.phone-row .phone-frame { max-width: 200px; }
.phone-row .phone-screen { max-height: 400px; }

/* Text column */
.step-text {}
.step-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); line-height: 1.4; }
.step-text p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.step-text ol, .step-text ul { padding-left: 20px; margin-bottom: 14px; }
.step-text li { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.6; }
.step-text strong { color: var(--text); }

/* Action highlight */
.action-highlight {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
}

/* Tips / Rules */
.tip-box {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9); border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 12px;
}
.tip-box h4 { font-size: 13px; font-weight: 600; color: #2E7D32; margin-bottom: 8px; }
.tip-box li { font-size: 13px; color: #33691E; }

.warn-box {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0); border: 1px solid #FFE082;
  border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 12px;
}
.warn-box h4 { font-size: 13px; font-weight: 600; color: #E65100; margin-bottom: 8px; }
.warn-box li, .warn-box p { font-size: 13px; color: #5D4037; }
.warn-box ul { padding-left: 18px; }

.figma-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px; background: #EDE7F6; color: #5E35B1;
  text-decoration: none; font-size: 12px; font-weight: 500; margin-top: 12px; transition: var(--transition);
}
.figma-link:hover { background: #D1C4E9; }

/* ═══ FAQ ═══ */
.faq-section { padding: 48px 0; }
.faq-item {
  background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--border);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 24px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-q:hover { background: rgba(233,30,99,0.03); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--primary); font-weight: 700; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 18px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; padding-left: 56px; gap: 20px; }
  .phone-frame { max-width: 260px; }
  .phone-row .phone-frame { max-width: 180px; }
  .overview-grid { grid-template-columns: 1fr; }
  .lifecycle-flow { flex-direction: column; }
  .lc-arrow { transform: rotate(90deg); }
  .journey-nav a { padding: 12px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .step { padding-left: 48px; }
  .step::before { width: 36px; height: 36px; font-size: 14px; }
  .step::after { left: 17px; top: 40px; }
  .phone-frame { max-width: 240px; }
}

/* ═══ ANIMATIONS ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
