/* Latsol — latihan soal interaktif (Ganesh, Socratic). Suplemen v3.css, sama pola kayak lab.css. */

[x-cloak] {
    display: none !important;
}

.latsol-bahasan {
    background: #f3f9f8;
    border-left: 4px solid #467d7f;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #33474a;
}

.latsol-bahasan-label {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #467d7f;
    margin-bottom: 6px;
}

.latsol-soal-box {
    background: #fff;
    border: 1px solid #e5eceb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a2b2c;
}

.latsol-options {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.latsol-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border: 2px solid #e5eceb;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.latsol-option-btn:hover:not(:disabled) {
    border-color: #467d7f;
}

.latsol-option-btn.is-selected {
    border-color: #467d7f;
    background: #f3f9f8;
}

.latsol-option-btn.is-correct {
    border-color: #2e9e5b;
    background: #eafaf1;
}

.latsol-option-btn.is-wrong {
    border-color: #d64545;
    background: #fdefef;
}

.latsol-option-btn:disabled {
    cursor: default;
    opacity: .85;
}

/* opsi terkunci di riwayat — tetap jelas kebaca, terutama yang ditandai */
.latsol-option-btn:disabled.is-selected,
.latsol-option-btn:disabled.is-correct,
.latsol-option-btn:disabled.is-wrong {
    opacity: 1;
}

.latsol-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef3f2;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.latsol-ganesh-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff8ec;
    border: 1px solid #f0dfb4;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
}

.latsol-ganesh-avatar {
    width: 56px;
    height: auto;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -2px;
}

.latsol-ganesh-avatar.is-thinking {
    animation: latsol-ganesh-wobble 1.1s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes latsol-ganesh-wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.latsol-ganesh-lg {
    display: block;
    width: 128px;
    height: auto;
    margin: 0 auto 6px;
}

/* Latsol index — hero & step */
.latsol-hero-ganesh {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 2px;
}

@media (max-width: 575px) {
    .latsol-hero-ganesh { width: 120px; }
}

.v3-step-ganesh {
    float: right;
    width: 48px;
    height: auto;
    margin: -4px -4px 0 10px;
}

.latsol-ganesh-text {
    color: #4a3c1a;
    font-size: 15px;
    line-height: 1.5;
}

.latsol-feedback-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
}

.latsol-feedback-box.is-correct {
    background: #eafaf1;
    border: 1px solid #b7e6c9;
}

.latsol-feedback-box.is-wrong {
    background: #fdefef;
    border: 1px solid #f3c6c6;
}

.latsol-pembahasan {
    background: #fff;
    border: 1px solid #e5eceb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.latsol-pembahasan-step {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f2;
}

.latsol-pembahasan-step:last-child {
    border-bottom: none;
}

.latsol-pembahasan-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #467d7f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latsol-locked-box {
    text-align: center;
    background: #f3f9f8;
    border: 1px dashed #467d7f;
    border-radius: 12px;
    padding: 32px 20px;
    margin: 24px 0;
}

.latsol-back {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
}

.latsol-subbab-list,
.latsol-soal-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 14px;
}

.latsol-list-item {
    display: block;
    background: #fff;
    border: 1px solid #e5eceb;
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color .15s;
}

.latsol-list-item:hover {
    border-color: #467d7f;
    text-decoration: none;
}

.latsol-list-item-title {
    font-weight: 700;
    color: #1a2b2c;
    margin-bottom: 4px;
}

.latsol-list-item-desc {
    color: #6b7c7d;
    font-size: 14px;
}
