/**
 * TAROT YES / NO — /tarot-yes-no/
 * Kế thừa boi-tarot.css (xào, deck, slot, thẻ chọn số lá, section tĩnh)
 * + lenormand.css (chip câu hỏi, loading) + flow-shell.css. File này chỉ
 * thêm phần riêng: gợi ý câu hỏi, khối trả lời to, lịch sử phiên.
 */

/* Gỡ khung breadcrumb Nevo (giống Lenormand/Bài Tây) — #page-header nằm
   ngoài <main> nên phải bắt theo class body. */
body.page-template-page-tarot-yes-no .page-header,
body.page-template-page-tarot-yes-no .nevo-breadcrumb,
body.page-template-page-tarot-yes-no .rank-math-breadcrumb,
body.page-template-page-tarot-yes-no .breadcrumb {
    display: none !important;
}

/* ---------- Bước 1 ---------- */
.yn-hint {
    margin: 0.55rem 0 1.1rem;
    font-size: var(--fs-small, 0.9rem);
    color: var(--theme-text-muted);
    text-align: center;
    transition: color 0.25s ease;
}
.yn-hint.is-warn { color: var(--theme-gold-text); }

/* Lịch sử trong phiên — dưới nút Xào Bài */
.yn-history-title {
    margin: 2rem 0 0.6rem;
    text-align: center;
    font-size: var(--fs-small, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}
.yn-history { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 0.45rem; }
.yn-history-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-0, rgba(255,255,255,0.04));
    color: var(--theme-text-body);
    font-family: inherit;
    font-size: var(--fs-small, 0.9rem);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease;
}
.yn-history-item:hover { border-color: var(--theme-gold-text); }
.yn-history-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yn-history-verdict {
    flex: none;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid transparent;
}
.yn-history-verdict.is-yes { color: #6fd39a; border-color: rgba(111, 211, 154, 0.5); }
.yn-history-verdict.is-no { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.5); }
.yn-history-verdict.is-maybe { color: var(--theme-gold-text); border-color: var(--theme-border-strong); }

/* ---------- Bước 4: câu trả lời to ---------- */
.yn-verdict {
    width: 100%;
    max-width: var(--flow-w-result, 1500px);
    margin: 0.4rem auto 1.6rem;
    padding: 1.6rem 1.2rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    border: 1.5px solid var(--theme-border);
    background: var(--theme-surface-0, rgba(255,255,255,0.04));
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
}
.yn-verdict-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}
.yn-verdict-label {
    font-family: 'Cinzel', 'Lora', Georgia, serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}
.yn-verdict-note {
    max-width: 720px;
    color: var(--theme-text-soft);
    font-size: var(--fs-body, 1rem);
    line-height: 1.6;
}
.yn-verdict.is-yes { border-color: rgba(111, 211, 154, 0.55); background: rgba(80, 190, 130, 0.10); }
.yn-verdict.is-yes .yn-verdict-label { color: #6fd39a; }
.yn-verdict.is-no { border-color: rgba(255, 138, 138, 0.55); background: rgba(226, 74, 74, 0.10); }
.yn-verdict.is-no .yn-verdict-label { color: #ff8a8a; }
.yn-verdict.is-maybe { border-color: var(--theme-border-strong); background: rgba(212, 165, 116, 0.10); }
.yn-verdict.is-maybe .yn-verdict-label { color: var(--theme-gold-text); }
/* Lượt trả trước: câu trả lời chưa mở — dấu hỏi, viền nét đứt */
.yn-verdict.is-hidden { border-style: dashed; border-color: var(--theme-border-strong); background: rgba(212, 165, 116, 0.06); }
.yn-verdict.is-hidden .yn-verdict-label { color: var(--theme-gold-text); }

:root[data-theme="light"] .yn-verdict.is-yes .yn-verdict-label,
:root[data-theme="light"] .yn-history-verdict.is-yes { color: #1f7a45; }
:root[data-theme="light"] .yn-verdict.is-no .yn-verdict-label,
:root[data-theme="light"] .yn-history-verdict.is-no { color: #b83232; }

.yn-deeper {
    width: 100%;
    max-width: var(--flow-w-result, 1500px);
    margin: 1.2rem auto 0;
    text-align: center;
    color: var(--theme-text-soft);
}
.yn-deeper a { color: var(--theme-gold-text); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .yn-verdict { padding: 1.2rem 0.9rem 1.1rem; border-radius: 14px; }
}
