/* ===== Public Journey View Page ===== */

.journey-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* ── Back link ─────────────────────────────────────────────────── */
.journey-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}

.journey-back:hover {
    color: rgba(255,255,255,0.8);
}

/* ── Header ────────────────────────────────────────────────────── */
.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.journey-header-left {
    flex: 1;
    min-width: 0;
}

.journey-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.jbadge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.jbadge-journey {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #c4b5fd;
}

.jbadge-trek {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #67e8f9;
}

.jbadge-module {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.journey-title {
    font-family: 'Lexend Giga', sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
}

.journey-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 14px;
}

.journey-cta {
    flex-shrink: 0;
}

/* ── Module list ───────────────────────────────────────────────── */
.journey-modules-section {
    margin-top: 4px;
}

.journey-modules-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.journey-modules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jbiome-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.jbiome-bar {
    width: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    opacity: 0.88;
    pointer-events: none;
}

.jbiome-bar-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.55);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    max-height: calc(100% - 16px);
}

.jbiome-group-modules {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jmodule-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.jmodule-pos {
    min-width: 22px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-align: right;
    flex-shrink: 0;
}

.jmodule-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.journey-empty {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    padding: 16px 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .journey-header {
        flex-direction: column;
    }

    .journey-cta {
        width: 100%;
    }

    .journey-cta .btn-start {
        width: 100%;
        justify-content: center;
    }
}
