/* Styles the flashcard mockup adds on top of Tabler. */

.mock-ribbon {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 1rem;
    font-size: .8rem;
    background: #fff8e1;
    color: #7a5b00;
    border-bottom: 1px solid #f1dfa4;
}
.mock-ribbon a { color: inherit; font-weight: 600; }

.mock-toasts {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    width: min(360px, calc(100vw - 2rem));
}

.cursor-pointer { cursor: pointer; }

/* ── Admin: card preview (front / back side by side) ── */
.fc-preview { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fc-preview-side {
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
    padding: .75rem .9rem;
    background: #fff;
    min-height: 88px;
}
.fc-preview-side:only-child { grid-column: 1 / -1; }
.fc-preview-back { background: #f6f8fb; }
.fc-preview-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    margin-bottom: .35rem;
}
@media (max-width: 575.98px) { .fc-preview { grid-template-columns: 1fr; } }

.fc-blank {
    display: inline-block;
    min-width: 5.5rem;
    border-bottom: 2px solid var(--tblr-primary);
    text-align: center;
    line-height: 1.2;
}
.fc-blank.is-filled {
    color: var(--tblr-green);
    border-color: var(--tblr-green);
    font-weight: 700;
    padding: 0 .35rem;
}

.fc-choice {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .65rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
    margin-top: .35rem;
    background: #fff;
    font-size: .9rem;
}
.fc-choice-key {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--tblr-bg-surface-secondary, #f1f5f9);
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fc-choice.is-correct { border-color: var(--tblr-green); background: #eaf7ec; }
.fc-choice.is-correct .fc-choice-key { background: var(--tblr-green); color: #fff; }
.fc-choice.is-wrong { border-color: var(--tblr-red); background: #fdecec; }
.fc-choice.is-wrong .fc-choice-key { background: var(--tblr-red); color: #fff; }

/* ── Admin: review queue ── */
.review-item { transition: opacity .25s, transform .25s; }
.review-item.is-leaving { opacity: 0; transform: translateX(24px); }
.review-item.is-busy { opacity: .55; pointer-events: none; }

/* ── Upload drop zone ── */
.dropzone-mock {
    border: 2px dashed var(--tblr-border-color);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--tblr-secondary);
    cursor: pointer;
    background: #fafbfc;
}
.dropzone-mock:hover { border-color: var(--tblr-primary); color: var(--tblr-primary); }

/* ── Stepper ── */
.mock-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mock-step {
    flex: 1 1 140px;
    padding: .6rem .8rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--tblr-border-color);
    color: var(--tblr-secondary);
    font-size: .85rem;
}
.mock-step b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.mock-step.is-active { border-color: var(--tblr-primary); color: var(--tblr-primary); box-shadow: inset 0 -2px 0 var(--tblr-primary); }
.mock-step.is-done { color: var(--tblr-green); }

/* ── Student: study screen ── */
.study-wrap { max-width: 680px; margin: 0 auto; }

.study-progress { height: 8px; border-radius: 4px; background: #e6e9ee; overflow: hidden; }
.study-progress > div { height: 100%; background: var(--tblr-green); transition: width .3s; }

.study-card {
    perspective: 1400px;
    margin: 1rem 0;
}
.study-card-inner {
    position: relative;
    transition: transform .45s;
    transform-style: preserve-3d;
}
.study-card.is-flipped .study-card-inner { transform: rotateY(180deg); }
/* The front face sets the card's height (so four answer choices never get
   clipped); the back is laid over it. */
.study-face {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #fff;
    border: 1px solid var(--tblr-border-color);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(24, 36, 51, .08);
    padding: 1.1rem 1.25rem 1.25rem;
    overflow: auto;
}
.study-face-back { position: absolute; inset: 0; min-height: 0; transform: rotateY(180deg); background: #f7fbf8; border-color: #cfe8d5; }
.study-face-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--tblr-secondary);
}
.study-face-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
}
.study-term { font-size: clamp(1.35rem, 4.5vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.study-answer { font-size: clamp(1.05rem, 3.5vw, 1.3rem); line-height: 1.5; }
.study-hint { font-size: .8rem; color: var(--tblr-secondary); text-align: center; }

/* Multiple choice stays on one face: choosing is the reveal. */
.study-choices { text-align: left; margin-top: .75rem; }
.study-choices .fc-choice { padding: .8rem .9rem; font-size: 1rem; cursor: pointer; }
.study-choices .fc-choice:hover { border-color: var(--tblr-primary); }
.study-choices.is-answered .fc-choice { cursor: default; }
.study-choices.is-answered .fc-choice:hover { border-color: var(--tblr-border-color); }
.study-choices.is-answered .fc-choice.is-correct:hover { border-color: var(--tblr-green); }
.study-choices.is-answered .fc-choice.is-wrong:hover { border-color: var(--tblr-red); }

.study-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.study-actions .btn { flex-direction: column; padding: .7rem .3rem; gap: .15rem; white-space: normal; }
.study-actions .btn i { font-size: 1.4rem; margin: 0; }
.study-actions small { font-weight: 400; opacity: .8; font-size: .7rem; }
.study-actions kbd { display: none; }
@media (hover: hover) and (min-width: 768px) { .study-actions kbd { display: inline-block; margin-top: .2rem; } }

/* On a phone the action bar stays under the thumb. */
@media (max-width: 767.98px) {
    .study-bar {
        position: sticky;
        bottom: 0;
        background: var(--tblr-body-bg, #f6f8fb);
        padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom));
        z-index: 5;
    }
    .study-face { min-height: 300px; }
    .study-face-back { min-height: 0; }
}

/* ── Student: deck tiles and targets ── */
.deck-locked { opacity: .75; background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fafbfc 12px, #fafbfc 24px); }

.week-bars { display: flex; align-items: flex-end; gap: .5rem; height: 140px; }
.week-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .72rem; color: var(--tblr-secondary); }
.week-bar > span { width: 100%; max-width: 38px; border-radius: 5px 5px 0 0; background: var(--tblr-primary); min-height: 3px; }
.week-bar.is-missed > span { background: #f3c2c2; }
.week-bar.is-met > span { background: var(--tblr-green); }
.week-bar.is-future > span { background: #e6e9ee; }

.day-chips { display: flex; }
.day-chips .btn { flex: 1; min-width: 0; padding-left: .25rem; padding-right: .25rem; }

/* Sidebar counters. Not Tabler's .badge: inside a sidebar link that one is
   pinned to the corner, where the narrow sidebar clips it. */
.mock-pill {
    display: inline-block;
    margin-left: .5rem;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: var(--tblr-red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}
.mock-pill-new { background: var(--tblr-green); }

/* ── Email preview frame ── */
.email-frame { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--tblr-border-color); border-radius: 8px; overflow: hidden; }
.email-meta { background: #f6f8fb; padding: .75rem 1rem; font-size: .82rem; border-bottom: 1px solid var(--tblr-border-color); }
.email-body { padding: 1.75rem 1.5rem; font-size: .95rem; line-height: 1.6; }
.email-btn { display: inline-block; background: #206bc4; color: #fff !important; padding: .75rem 1.5rem; border-radius: 6px; font-weight: 600; text-decoration: none; }
