/* Journey map + XP header on the subject page */

#journey-map {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 1rem;
    background: #fbf9f6;
    border: 1px solid #e8e2d9;
    border-radius: 10px;
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.journey-streak {
    font-weight: 700;
    color: #aaa;
    white-space: nowrap;
}
.journey-streak-live {
    color: #e25822;
}
.journey-streak .fa-fire {
    margin-right: 2px;
}

.journey-level {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 220px;
}
.journey-level-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #4e342e;
    white-space: nowrap;
}
.journey-level-en {
    font-weight: 500;
    color: #8a7f73;
}
.journey-xp-bar {
    flex: 1;
    height: 8px;
    background: #e8e2d9;
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
}
.journey-xp-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #81c784, #2e7d32);
    border-radius: 4px;
}
.journey-xp-label {
    font-size: 0.78rem;
    color: #8a7f73;
    white-space: nowrap;
}
.journey-today-row {
    margin-bottom: 0.5rem;
}
.journey-today {
    font-size: 0.82rem;
    font-weight: 700;
    color: #5d5348;
    white-space: nowrap;
}
.journey-today-up {
    color: #2e7d32;
}
.journey-today-down {
    color: #c0392b;
}

.journey-ladder {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.3rem;
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #d8cfc2;
}
.journey-ladder-step {
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
}
.journey-ladder-step .fa-check {
    font-size: 0.7em;
    margin-right: 2px;
    vertical-align: 1px;
}
.journey-ladder-done {
    color: #2e7d32;
}
.journey-ladder-current {
    font-weight: 800;
    color: #e25822;
    background: #fdeee7;
    border-radius: 4px;
    padding: 1px 6px;
}
.journey-ladder-future {
    color: #b0a698;
}
.journey-ladder-arrow {
    color: #c9bfb2;
}

.journey-path {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.journey-cefr {
    font-size: 0.72rem;
    font-weight: 800;
    color: #8a7f73;
    border-left: 2px solid #d8cfc2;
    padding: 0.25rem 0.35rem 0 0.5rem;
    margin-left: 0.35rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.journey-cefr:first-child {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}
.journey-cefr-pct {
    font-weight: 700;
    color: #b0a698;
}

.journey-pill {
    align-self: center;
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: #8a7f73;
    border: 1px solid #d8cfc2;
    border-radius: 14px;
    padding: 4px 10px;
    margin-left: 0.4rem;
    cursor: pointer;
    white-space: nowrap;
}
.journey-pill:hover {
    border-color: #b0a698;
    color: #5d5348;
}
.journey-pill .fa-check {
    color: #2e7d32;
    font-size: 0.85em;
}

.journey-unit {
    text-align: center;
    min-width: 74px;
    max-width: 92px;
    flex-shrink: 0;
}

.journey-unit-node {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 3px solid transparent;
}
.journey-unit-done .journey-unit-node {
    background: #2e7d32;
    color: #fff;
}
.journey-unit-active .journey-unit-node {
    background: #fff;
    border-color: #e25822;
    color: #e25822;
}
.journey-unit-name {
    font-size: 0.68rem;
    line-height: 1.15;
    margin-top: 0.3rem;
    color: #5d5348;
}

.journey-unit {
    cursor: pointer;
}
.journey-unit:hover .journey-unit-node {
    box-shadow: 0 0 0 3px rgba(226, 88, 34, 0.25);
}

/* Unit drill-down panel */
#journey-unit-detail {
    margin-top: 0.75rem;
    border-top: 1px dashed #d8cfc2;
    padding-top: 0.6rem;
}
.judetail-header {
    font-size: 0.85rem;
    color: #4e342e;
    margin-bottom: 0.5rem;
}
.judetail-gate {
    display: block;
    font-size: 0.78rem;
    color: #8a7f73;
    margin-top: 2px;
}
.judetail-gate .fa-key { color: #e25822; }
.judetail-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
}
.judetail-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #5d5348;
    text-decoration: none;
    min-width: 220px;
}
a.judetail-row:hover {
    color: #e25822;
    text-decoration: none;
}
.judetail-row-static {
    opacity: 0.6;
}
.judetail-today {
    font-size: 0.7rem;
    color: #2e7d32;
    white-space: nowrap;
}
.judetail-today .fa-check {
    font-size: 0.85em;
}
.judetail-score {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 1px 4px;
    border-radius: 4px;
    background: #f3d9ce;
    color: #b34700;
}
.judetail-score-good {
    background: #d7e8d8;
    color: #2e7d32;
}
.judetail-score-none {
    background: #eee9e2;
    color: #b0a698;
}
