/* AKJ PaisaGyan - learning path page (/learning-path) and the 3 steps on the home page (.hp-*). No continuous animation: hover effects only. */
:root { --lp-bg: #ffffff; --lp-card: #ffffff; --lp-text: #1f2937; --lp-muted: #6b7280; --lp-line: #e5e7eb; --lp-soft: #f5f3ff; }
html[data-theme="dark"] { --lp-bg: #0f1117; --lp-card: #1a1f2e; --lp-text: #e2e8f0; --lp-muted: #94a3b8; --lp-line: #2d3748; --lp-soft: #161b2a; }
html[data-theme="sepia"] { --lp-bg: #f5efe6; --lp-card: #fdf8f0; --lp-text: #3d2b1f; --lp-muted: #7a6350; --lp-line: #e0cdb3; --lp-soft: #efe4d2; }
html[data-theme="ocean"] { --lp-bg: #0b1929; --lp-card: #0f2035; --lp-text: #cdd9e5; --lp-muted: #8aa0b8; --lp-line: #1e3a5f; --lp-soft: #0d2238; }
html[data-theme="sage"] { --lp-bg: #f0f4f1; --lp-card: #f8fbf8; --lp-text: #1c2b1e; --lp-muted: #5b7060; --lp-line: #c8ddc9; --lp-soft: #e3eee4; }

.lp-hero { background: linear-gradient(120deg, #10b981, #f59e0b 50%, #a855f7); color: #fff; padding: 30px 0 28px; text-align: center; }
.lp-hero h1 { font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.lp-hero p { max-width: 720px; margin: 0 auto 16px; color: rgba(255,255,255,.92); }
.lp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-jump a { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--a); font-weight: 800; border-radius: 999px; padding: 8px 18px; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,1.5,.4,1); }
.lp-jump a:hover { transform: translateY(-3px) scale(1.05); }

.lp-wrap { padding-top: 28px; padding-bottom: 40px; max-width: 1000px; }
.lp-level { position: relative; background: var(--lp-card); color: var(--lp-text); border: 2px solid rgba(var(--ar), .35); border-radius: 22px; padding: 18px 18px 14px; margin-bottom: 34px; scroll-margin-top: 80px; box-shadow: 0 10px 28px rgba(var(--ar), .12); }
.lp-level:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -34px; height: 34px; border-left: 4px dotted rgba(var(--ar), .5); }
.lp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin: -18px -18px 16px; border-radius: 20px 20px 0 0; color: #fff; background: linear-gradient(120deg, var(--a), var(--b)); }
.lp-badge { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.22); border-radius: 16px; padding: 6px 12px; line-height: 1.1; }
.lp-e { font-size: 2rem; } .lp-badge small { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.lp-ht { flex: 1 1 200px; } .lp-ht h2 { margin: 0; font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: #fff; } .lp-ht h2 span { font-weight: 600; opacity: .85; font-size: .8em; }
.lp-ht p { margin: 2px 0 0; color: rgba(255,255,255,.92); font-size: .95rem; }
.lp-prog { min-width: 130px; text-align: right; } .lp-prog small { font-weight: 700; }
.lp-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.3); overflow: hidden; margin-bottom: 3px; } .lp-bar i { display: block; height: 100%; background: #fde047; border-radius: 8px; }
.lp-bar.sm { background: rgba(var(--ar), .18); height: 6px; margin: 6px 0 2px; } .lp-bar.sm i { background: linear-gradient(90deg, var(--a), var(--b)); }

.lp-steps { display: grid; gap: 16px; }
.lp-step { border-left: 4px solid rgba(var(--ar), .45); padding-left: 14px; }
.lp-sh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); margin-left: -33px; box-shadow: 0 0 0 4px var(--lp-card); }
.lp-sh b { display: block; font-size: 1.05rem; } .lp-sh b i { color: var(--a); margin-right: 4px; } .lp-sh small { color: var(--lp-muted); }
.lp-grid { display: grid; gap: 10px; } .lp-grid.g2 { grid-template-columns: repeat(2, 1fr); } .lp-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.lp-card { display: flex; flex-direction: column; gap: 3px; background: rgba(var(--ar), .07); border: 1px solid rgba(var(--ar), .25); border-radius: 14px; padding: 11px 13px; text-decoration: none; color: var(--lp-text); transition: transform .25s cubic-bezier(.2,1.4,.4,1), box-shadow .25s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(var(--ar), .25); color: var(--lp-text); }
.lp-card b { font-size: .95rem; line-height: 1.3; } .lp-card span, .lp-card small { color: var(--lp-muted); font-size: .8rem; }
.lp-card em { margin-top: auto; padding-top: 4px; font-style: normal; font-weight: 800; font-size: .82rem; color: var(--a); }
.lp-art img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.lp-type { font-weight: 700; color: var(--a) !important; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--a); border: 2px solid transparent; border-radius: 999px; padding: 5px 13px; background: linear-gradient(var(--lp-card), var(--lp-card)) padding-box, linear-gradient(135deg, var(--a), var(--b)) border-box; transition: transform .25s cubic-bezier(.2,1.5,.4,1), box-shadow .25s; }
.lp-chip:hover { transform: translateY(-3px) scale(1.04); color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 8px 16px rgba(var(--ar), .35); }
.lp-empty { color: var(--lp-muted); font-size: .9rem; margin: 0; }
.lp-next { display: block; width: fit-content; margin: 16px auto 4px; text-decoration: none; color: #fff; font-weight: 800; padding: 9px 22px; border-radius: 999px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 8px 18px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,1.5,.4,1); }
.lp-next:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.lp-done { text-align: center; font-weight: 800; margin-top: 14px; }

/* home page: the 3 steps */
.hp-steps { padding: 26px 0 8px; }
.hp-steps h2 { text-align: center; font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 4px; background: linear-gradient(90deg, #10b981, #f59e0b, #a855f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-steps .lead { text-align: center; color: var(--lp-muted); margin-bottom: 16px; }
.hp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.hp-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 22px; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 24px rgba(var(--ar), .35); overflow: hidden; transition: transform .25s cubic-bezier(.2,1.4,.4,1), box-shadow .25s; }
.hp-step::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -30px; top: -34px; background: rgba(255,255,255,.2); }
.hp-step:hover { transform: translateY(-7px); color: #fff; box-shadow: 0 16px 30px rgba(var(--ar), .5); }
.hp-step .e { font-size: 2.2rem; line-height: 1; } .hp-step small { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .9; font-size: 11px; }
.hp-step b { font-size: 1.25rem; } .hp-step span { font-size: .85rem; opacity: .95; } .hp-step em { margin-top: 6px; font-style: normal; font-weight: 800; font-size: .85rem; }
.hp-all { display: block; width: fit-content; margin: 16px auto 0; font-weight: 800; text-decoration: none; color: #fff; padding: 9px 22px; border-radius: 999px; background: linear-gradient(135deg, #10b981, #a855f7); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.hp-all:hover { color: #fff; transform: translateY(-2px); }
@media (max-width: 767px) { .lp-grid.g2, .lp-grid.g3 { grid-template-columns: 1fr; } .hp-row { grid-template-columns: 1fr; } .lp-prog { text-align: left; width: 100%; } .lp-step { padding-left: 12px; } .lp-n { margin-left: -31px; } }
@media (prefers-reduced-motion: reduce) { .lp-jump a, .lp-card, .lp-chip, .lp-next, .hp-step { transition: none; } .lp-jump a:hover, .lp-card:hover, .lp-chip:hover, .lp-next:hover, .hp-step:hover { transform: none; } }

/* ---- ticks + progress summary (logged-in users; assets/js/learning-progress.js) */
.lp-ci { position: relative; display: flex; } .lp-ci > .lp-card { flex: 1 1 auto; min-width: 0; }
.lp-cw { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.lp-tick { border: 2px solid rgba(var(--ar, 100, 116, 139), .45); background: var(--lp-card, #fff); color: transparent; width: 26px; height: 26px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: .85rem; line-height: 1; flex: 0 0 26px; }
.lp-tick:hover { border-color: var(--a, #16a34a); color: var(--a, #16a34a); }
.lp-tick:focus-visible { outline: 2px solid var(--a, #16a34a); outline-offset: 2px; }
.lp-tick.on { background: linear-gradient(135deg, var(--a, #16a34a), var(--b, #0d9488)); border-color: transparent; color: #fff; }
.lp-ci > .lp-tick { position: absolute; top: 8px; right: 8px; z-index: 2; }
.lp-ci.is-done > .lp-card { opacity: .72; } .lp-cw.is-done > .lp-chip { opacity: .72; text-decoration: line-through; text-decoration-thickness: 1px; }
.lp-sum { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: inherit; max-width: 760px; }
.lp-sum-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lp-sum-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-sum-i { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; font-weight: 700; font-size: .9rem; }
.lp-sum-i small, .lp-sum-n { font-weight: 600; opacity: .9; }
.lp-sum-n { display: block; margin-top: 8px; font-size: .78rem; }
.lp-guest { margin: 14px 0 0; font-size: .92rem; } .lp-guest a { font-weight: 800; color: inherit; text-decoration: underline; }
.lp-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 9px 16px; border-radius: 10px; font-size: .85rem; z-index: 1080; max-width: 90vw; }
.lp-toast[hidden] { display: none; }
@media (max-width: 575px) { .lp-sum-g { grid-template-columns: 1fr; } }
