/*
 * Coding Ireland proprietary interactive activity
 * Copyright (c) 2017-2026 Coding Ireland. All rights reserved.
 *
 * Part of the Coding Ireland online learning platform. Licensed for use only
 * as delivered on the platform. Copying, redistributing, or adapting this
 * file, in whole or in part, for use in any other product or service is not
 * permitted. Ref: CI-digital-media-literacy-verdict-reveal
 */
/* verdict-reveal — Digital Media Literacy detective challenge.
 * Builds on activity-common.css + maths-activity.css (header, controls and
 * display-mode header-hiding come from those). These are the component styles. */

.vr-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 2px 8px;
}

/* Navigation between items */
.vr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.vr-nav-btn {
    border: none;
    background: #1d3557;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}
.vr-nav-btn:hover:not(:disabled) { background: #16314f; transform: translateY(-1px); }
.vr-nav-btn:disabled { opacity: .35; cursor: default; }
.vr-counter { font-weight: 700; color: #1d3557; min-width: 92px; text-align: center; }
.vr-dots { display: flex; gap: 7px; }
.vr-dot {
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid #9bb1c9; background: transparent; cursor: pointer; padding: 0;
}
.vr-dot.is-active { background: #2a9d8f; border-color: #2a9d8f; }
.vr-dot:disabled { cursor: default; }

.vr-scenario {
    background: #eef3f8;
    border-left: 5px solid #457b9d;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    color: #1d3557;
}

/* Two-column layout: the exhibit, then the verdict rail */
.vr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}
@media (max-width: 760px) {
    .vr-layout { grid-template-columns: 1fr; }
}

.vr-exhibit-wrap { display: flex; flex-direction: column; gap: 8px; }
.vr-exhibit {
    background: #fff;
    border: 2px solid #d9e2ec;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 6px 18px rgba(29, 53, 87, .07);
}
.vr-exhibit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vr-exhibit-emoji { font-size: 2rem; line-height: 1; }
.vr-exhibit-label { font-weight: 800; color: #1d3557; font-size: 1.15rem; }
.vr-exhibit-content {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #20303f;
    white-space: pre-wrap;
}
.vr-exhibit-source {
    margin-top: 10px;
    font-size: .9rem;
    color: #5b6b7b;
    font-style: italic;
}
.vr-exhibit-tag {
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 700;
    color: #8a5a00;
    background: #fff4d6;
    border-radius: 999px;
    padding: 4px 12px;
}

.vr-tells {
    margin-top: 14px;
    border-top: 1px dashed #cdd9e5;
    padding-top: 12px;
}
.vr-tells-label { font-weight: 700; color: #457b9d; margin-bottom: 6px; }
.vr-tells-list { margin: 0; padding-left: 20px; color: #34495e; }
.vr-tells-list li { margin: 3px 0; }

/* The verdict rail */
.vr-side { display: flex; flex-direction: column; gap: 14px; }
.vr-verdict-label, .vr-tray-label { font-weight: 800; color: #1d3557; margin-bottom: 8px; }
.vr-verdict-options { display: flex; flex-direction: column; gap: 9px; }
.vr-option {
    text-align: left;
    border: 2px solid #c7d4e2;
    background: #fff;
    color: #1d3557;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, transform .1s ease;
}
.vr-option:hover { border-color: #457b9d; transform: translateY(-1px); }
.vr-option.is-chosen { border-color: #1d3557; background: #eef3f8; }
.vr-option.is-answer { border-color: #2a9d8f; background: #e7f6f3; }
.vr-option.is-off.is-chosen { border-color: #e9a23b; background: #fdf3e2; }
.vr-verdict-hint { font-size: .9rem; color: #8a5a00; }

/* The reasoning reveal — the payoff */
.vr-reveal {
    background: #f3f0fb;
    border: 2px solid #d6cdf0;
    border-radius: 14px;
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(6px);
}
.vr-reveal.is-in { animation: vrReveal .35s ease forwards; }
@keyframes vrReveal { to { opacity: 1; transform: translateY(0); } }
.vr-reveal.is-good { background: #e7f6f3; border-color: #9ad9cd; }
.vr-reveal.is-look-again { background: #fdf3e2; border-color: #f0cd93; }
.vr-reveal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.vr-reveal-badge {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #6c4fd1; color: #fff; flex: 0 0 auto;
}
.vr-reveal.is-good .vr-reveal-badge { background: #2a9d8f; }
.vr-reveal.is-look-again .vr-reveal-badge { background: #e9a23b; }
.vr-reveal-label { font-weight: 800; color: #1d3557; }
.vr-reveal-explain { margin: 0; color: #2c3e50; line-height: 1.5; }

/* Talking prompts */
.vr-discuss { border-top: 1px dashed #cdd9e5; padding-top: 12px; }
.vr-discuss-btn {
    border: 2px solid #457b9d; background: #fff; color: #457b9d;
    border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer;
}
.vr-discuss-btn:disabled { opacity: .45; cursor: default; }
.vr-discuss-hint { font-size: .88rem; color: #8a5a00; margin-top: 6px; }
.vr-discuss-list { margin: 10px 0 0; padding-left: 20px; color: #34495e; }
.vr-discuss-list li { margin: 4px 0; }

.vr-empty { text-align: center; color: #5b6b7b; padding: 40px 0; font-style: italic; }

.vr-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Display mode (IWB): enlarge the exhibit, the framework hides the header. */
body.display-mode .vr-exhibit-content { font-size: 1.5rem; }
body.display-mode .vr-exhibit-label { font-size: 1.5rem; }
body.display-mode .vr-option { font-size: 1.2rem; padding: 14px 18px; }
body.display-mode .vr-reveal-explain { font-size: 1.25rem; }
body.display-mode .vr-exhibit-emoji { font-size: 2.6rem; }
