/* ── Journey Layer ── */
.journey-container { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem; }
.journey-onboarding { text-align: center; padding: 2rem 1rem; }
.journey-onboarding h2 { font-size: 1.8rem; color: #fff; margin-bottom: 0.5rem; }
.journey-onboarding p { color: #888; margin-bottom: 2rem; font-size: 0.95rem; }
.journey-step { display: none; }
.journey-step.active { display: block; }
.journey-step-indicator { display: flex; justify-content: center; gap: 8px; margin-bottom: 2rem; }
.journey-step-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2d3a; }
.journey-step-dot.active { background: #2a6cb0; }
.journey-step-dot.done { background: #4caf50; }
.journey-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 600px; margin: 0 auto; }
.journey-choice-card { background: #1a1d2e; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 24px 16px; cursor: pointer; text-align: center; transition: all 0.2s; }
.journey-choice-card:hover { border-color: #3a3d4a; transform: translateY(-2px); }
.journey-choice-card.selected { border-color: #3a3d4a; background: #2a2d3a; }
.journey-choice-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.journey-choice-label { font-size: 0.9rem; font-weight: 600; color: #e0e0e0; }
.journey-choice-desc { font-size: 0.72rem; color: #888; margin-top: 4px; }
.journey-next-btn { display: inline-block; margin-top: 1.5rem; padding: 12px 32px; border-radius: 10px; background: #2a6cb0; color: #fff; border: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.journey-next-btn:hover { background: #3a7cc0; }
.journey-next-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Journey Dashboard */
.journey-dashboard { padding: 0.5rem 0; }
.journey-dash-header { text-align: center; margin-bottom: 1.5rem; }
.journey-dash-header h2 { font-size: 1.4rem; color: #fff; margin-bottom: 0.3rem; }
.journey-dash-header p { color: #666; font-size: 0.82rem; }
.journey-stats-row { display: flex; gap: 12px; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center; }
.journey-stat-card { background: #1a1d2e; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 16px 20px; text-align: center; min-width: 100px; flex: 1; }
.journey-stat-value { font-size: 1.5rem; font-weight: 700; color: #7cb8ff; }
.journey-stat-label { font-size: 0.72rem; color: #666; text-transform: uppercase; margin-top: 4px; letter-spacing: 0.5px; }
.journey-streak { font-size: 0.85rem; color: #ffd700; text-align: center; margin-bottom: 1rem; }
.journey-badge-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 1.5rem; }
.journey-badge { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: #1a1d2e; border: 1.5px solid #2a2d3a; opacity: 0.3; transition: all 0.3s; }
.journey-badge.earned { opacity: 1; border-color: #ffd700; background: #2a2510; box-shadow: 0 0 10px rgba(255,215,0,0.2); }
.journey-reset-btn { display: block; margin: 1rem auto 0; padding: 6px 16px; border-radius: 10px; background: none; border: 1.5px solid #2a2d3a; color: #555; font-size: 0.7rem; cursor: pointer; }
.journey-reset-btn:hover { color: #f44336; border-color: #f44336; }

/* Journey Path tabs */
.journey-path-tabs { display: flex; gap: 0; justify-content: center; margin-bottom: 1.5rem; border-radius: 10px; overflow: hidden; border: 1.5px solid #2a2d3a; }
.journey-path-tab { flex: 1; padding: 10px 16px; background: #13151f; border: none; color: #666; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: center; }
.journey-path-tab:hover { color: #aaa; }
.journey-path-tab.active { background: #2a2d3a; color: #ccc; }
.journey-path-tab.locked { opacity: 0.4; cursor: not-allowed; }
.journey-path-tab .path-lock { margin-left: 4px; font-size: 0.7rem; }
.journey-path-content { display: none; }
.journey-path-content.active { display: block; }
.journey-path-progress { height: 6px; background: #1a1d2e; border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.journey-path-progress-fill { height: 100%; background: linear-gradient(90deg, #2a6cb0, #4caf50); border-radius: 10px; transition: width 0.5s; }

/* Journey Lesson list */
.journey-lesson-list { display: flex; flex-direction: column; gap: 8px; }
.journey-lesson-card { background: #13151f; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.2s; }
.journey-lesson-card:hover { border-color: #3a3d4a; }
.journey-lesson-card.completed { border-left: 3px solid #4caf50; }
.journey-lesson-card.current { border-left: 3px solid #2a6cb0; background: #151a2a; }
.journey-lesson-card.locked { opacity: 0.45; cursor: default; }
.journey-lesson-num { width: 32px; height: 32px; border-radius: 50%; background: #1a1d2e; border: 1.5px solid #2a2d3a; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: #888; flex-shrink: 0; }
.journey-lesson-card.completed .journey-lesson-num { background: #1a3a1a; border-color: #4caf50; color: #4caf50; }
.journey-lesson-card.current .journey-lesson-num { background: #1c3a5a; border-color: #2a6cb0; color: #7cb8ff; }
.journey-lesson-info { flex: 1; }
.journey-lesson-title { font-size: 0.9rem; font-weight: 600; color: #e0e0e0; }
.journey-lesson-desc { font-size: 0.72rem; color: #666; margin-top: 2px; }
.journey-lesson-check { color: #4caf50; font-size: 1.1rem; }

/* Journey Lesson Detail */
.journey-lesson-detail { display: none; }
.journey-lesson-detail.active { display: block; }
.journey-back-btn { background: none; border: none; color: #7cb8ff; font-size: 0.82rem; cursor: pointer; padding: 4px 0; margin-bottom: 1rem; display: flex; align-items: center; gap: 4px; }
.journey-back-btn:hover { color: #fff; }
.journey-lesson-detail h2 { font-size: 1.3rem; color: #fff; margin-bottom: 0.3rem; }
.journey-lesson-detail .lesson-desc { color: #888; font-size: 0.85rem; margin-bottom: 1rem; }
.journey-theory-section { background: #13151f; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 16px; margin-bottom: 1rem; }
.journey-theory-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.journey-theory-toggle h3 { font-size: 0.9rem; color: #7cb8ff; margin: 0; }
.journey-theory-toggle .toggle-icon { color: #555; font-size: 1rem; transition: transform 0.2s; }
.journey-theory-body { display: none; margin-top: 12px; color: #b0b8d0; font-size: 0.85rem; line-height: 1.7; }
.journey-theory-body.open { display: block; }
.journey-theory-body p { margin-bottom: 0.8rem; }
.journey-theory-body code { background: #0d1020; padding: 2px 6px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; color: #7cb8ff; font-size: 0.8rem; }
.journey-theory-body ul { margin: 0.5rem 0 0.8rem 1.2rem; }
.journey-theory-body li { margin-bottom: 0.3rem; }
.journey-try-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; background: #1c3a5a; color: #7cb8ff; border: 1px solid #2a6cb0; font-size: 0.85rem; font-weight: 600; cursor: pointer; margin-bottom: 1rem; transition: all 0.15s; }
.journey-try-btn:hover { background: #2a4a6a; }

/* Journey Quiz */
.journey-quiz { background: #13151f; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 16px; margin-bottom: 1rem; }
.journey-quiz h3 { font-size: 0.9rem; color: #ffd700; margin: 0 0 12px; }
.journey-quiz-progress { font-size: 0.72rem; color: #555; margin-bottom: 8px; }
.journey-quiz-q { color: #e0e0e0; font-size: 0.9rem; margin-bottom: 10px; line-height: 1.5; }
.journey-quiz-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.journey-quiz-opt { padding: 10px 14px; border: 1.5px solid #2a2d3a; border-radius: 10px; background: #1a1d2e; color: #ccc; cursor: pointer; font-size: 0.82rem; transition: all 0.15s; text-align: left; }
.journey-quiz-opt:hover { border-color: #3a3d4a; }
.journey-quiz-opt.correct { border-color: #4caf50; background: #1a3a1a; color: #4caf50; cursor: default; }
.journey-quiz-opt.wrong { border-color: #f44336; background: #3a1a1a; color: #f44336; cursor: default; }
.journey-quiz-opt.disabled { pointer-events: none; opacity: 0.6; }
.journey-quiz-feedback { font-size: 0.82rem; padding: 8px; border-radius: 10px; margin-bottom: 8px; }
.journey-quiz-feedback.correct { background: #1a3a1a; color: #4caf50; }
.journey-quiz-feedback.wrong { background: #3a1a1a; color: #f44336; }
.journey-quiz-next { padding: 8px 16px; border-radius: 10px; background: #2a6cb0; color: #fff; border: none; font-size: 0.82rem; cursor: pointer; }
.journey-quiz-next:hover { background: #3a7cc0; }
.journey-complete-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px; border-radius: 10px; background: #4caf50; color: #fff; border: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 0.5rem; transition: all 0.15s; }
.journey-complete-btn:hover { background: #5cbf60; }
.journey-complete-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Journey Quiz Progress Bar */
.journey-quiz-progress-text { font-size: 0.75rem; color: #888; margin-bottom: 6px; text-align: center; }
.journey-quiz-progress-bar { width: 100%; height: 6px; background: #2a2d3a; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.journey-quiz-progress-fill { height: 100%; background: linear-gradient(90deg, #2a6cb0 0%, #7cb8ff 50%, #4caf50 100%); border-radius: 10px; transition: width 0.4s ease; }
.journey-quiz-question-card { background: #13151f; border: 1.5px solid #2a2d3a; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.journey-quiz-explanation { background: #2a2510; border: 1px solid #665520; border-radius: 10px; padding: 14px 18px; margin-top: 14px; font-size: 0.82rem; color: #ffd699; line-height: 1.5; }
.journey-hint-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: transparent; border: 1px solid #555; border-radius: 10px; color: #aaa; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.journey-hint-btn:hover { background: #1a1c26; border-color: #777; color: #ddd; }
.journey-hint-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 17, 23, 0.94); z-index: 500; overflow-y: auto; padding: 40px 20px; }
.journey-hint-overlay-content { max-width: 700px; margin: 0 auto; color: #b0b8d0; line-height: 1.7; font-size: 0.95rem; }
.journey-hint-overlay-content p { margin-bottom: 0.8rem; }
.journey-hint-overlay-content code { background: #0d1020; padding: 2px 6px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; color: #7cb8ff; font-size: 0.8rem; }
.journey-hint-overlay-content ul { margin: 0.5rem 0 0.8rem 1.2rem; }
.journey-hint-overlay-content li { margin-bottom: 0.3rem; }
.journey-start-quiz-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: #2a6cb0; color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 1rem; }
.journey-start-quiz-btn:hover { background: #357ac8; transform: translateY(-1px); }
.journey-summary { text-align: center; padding: 40px 20px; }
.journey-summary h3 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.journey-summary-score { font-size: 2.5rem; font-weight: 700; color: #7cb8ff; margin-bottom: 24px; }
.journey-summary-points { text-align: left; list-style: disc; margin: 24px auto; max-width: 500px; padding-left: 24px; }
.journey-summary-points li { margin-bottom: 8px; color: #b0b8d0; line-height: 1.5; }
.journey-summary-btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* XP Popup */
.journey-xp-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(42, 108, 176, 0.95); color: #fff; padding: 20px 40px; border-radius: 10px; font-size: 1.5rem; font-weight: 700; z-index: 1000; animation: xpPop 1.5s ease-out forwards; pointer-events: none; text-align: center; }
.journey-xp-popup .xp-sub { font-size: 0.8rem; font-weight: 400; opacity: 0.8; margin-top: 4px; }
@keyframes xpPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 40% { transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }

/* Tool Hint Bar */
.tool-hint-bar { position: fixed; top: 160px; left: 50%; transform: translateX(-50%); background: #2a6cb0; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 0.82rem; z-index: 200; box-shadow: 0 4px 20px rgba(0,0,0,0.4); animation: hintSlide 0.3s ease-out; max-width: 500px; display: flex; align-items: center; gap: 8px; }
.tool-hint-bar .hint-icon { font-size: 1rem; }
.tool-hint-bar .hint-close { margin-left: 12px; cursor: pointer; opacity: 0.7; font-size: 1rem; }
.tool-hint-bar .hint-close:hover { opacity: 1; }
@keyframes hintSlide { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
