﻿/* =====================================================
   MCQ ENGINE – THEME STYLES
   Learn-Economics.co.uk
   ===================================================== */

:root{
  --le-orange:#f47a20;
  --le-dark:#364545;
  --le-border:#d9e1e1;
  --le-soft:#f6f8f8;
  --ok:#1b7f3a;
  --bad:#b42318;
}

.le-mcq-wrap{
  border:1px solid var(--le-border);
  border-radius:16px;
  background:#fff;
  padding:1.5rem 1.75rem;
  margin:1.5rem 0;
}

.le-mcq-title{
  font-size:1.6rem;
  font-weight:800;
  color:var(--le-dark);
  margin:0;
}

.le-mcq-sub{
  color:#4f5f5f;
  margin:.3rem 0 1rem;
}

.le-q{
  border:1px solid var(--le-border);
  border-radius:14px;
  padding:1rem;
  margin-bottom:.9rem;
}

.le-q-meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:.5rem;
}

.le-q-num{
  font-weight:900;
  color:var(--le-dark);
}

.le-tag{
  font-size:.8rem;
  font-weight:800;
  border-radius:999px;
  padding:.25rem .55rem;
  border:1px solid var(--le-border);
}

.le-tag.not{
  background:rgba(180,35,24,.06);
  border-color:rgba(180,35,24,.25);
  color:var(--bad);
}

.le-tag.calc{
  background:rgba(27,127,58,.06);
  border-color:rgba(27,127,58,.25);
  color:var(--ok);
}

.le-q-text{
  font-weight:700;
  margin:0 0 .75rem;
  line-height:1.5;
}

.le-opt{
  display:block;
  padding:.55rem .7rem;
  border:1px solid var(--le-border);
  border-radius:12px;
  margin-bottom:.45rem;
  cursor:pointer;
}

.le-opt:hover{
  background:rgba(244,122,32,.06);
  border-color:rgba(244,122,32,.25);
}

.le-feedback{
  display:none;
  margin-top:.6rem;
  padding:.6rem .75rem;
  border-radius:12px;
}

.le-feedback.ok{
  display:block;
  background:rgba(27,127,58,.06);
  border:1px solid rgba(27,127,58,.25);
}

.le-feedback.bad{
  display:block;
  background:rgba(180,35,24,.06);
  border:1px solid rgba(180,35,24,.25);
}

.le-actions{
  display:flex;
  justify-content:flex-end;
  gap:.75rem;
  margin-top:1.25rem;
}

.le-btn{
  padding:.6rem 1rem;
  border-radius:10px;
  border:1px solid var(--le-border);
  font-weight:800;
  cursor:pointer;
  background:#fff;
}

.le-btn-primary{
  background:var(--le-orange);
  border-color:var(--le-orange);
  color:#fff;
}

.le-score{
  display:none;
  margin-top:1rem;
  padding:1rem;
  border-radius:14px;
  border:1px solid var(--le-border);
}

/* Optional tidy spacing for any post-submit button added inside score box */
#scoreBox .le-btn{
  margin-top:12px;
}

/* Floating progress pill – lifted above MemberSpace button */
.le-mcq-float{
  position:fixed;
  left:14px;
  bottom:80px;
  z-index:999;
  background:#fff;
  border:1px solid var(--le-border);
  border-radius:999px;
  padding:.45rem .75rem;
  font-weight:800;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  pointer-events:none;
}
.le-q-img{
  margin:10px 0 6px 0;
  text-align:center;
}

.le-q-img img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid var(--le-border);
}
.le-q-figure{
  margin:12px 0 8px;
  text-align:center;
}

.le-q-svg,
.le-q-figure img{
  width:420px;
  max-width:100%;
  height:300px;
  border:1px solid var(--le-border);
  border-radius:10px;
  background:#fff;
  display:inline-block;
}
/* =========================================
   PRIMARY BUTTON ENHANCEMENT (Submit + Try Another)
========================================= */

.le-btn-primary{
  background:var(--le-orange);
  border:1px solid var(--le-orange);
  color:#fff;
  transition:all 0.2s ease;
}

/* Hover */
.le-btn-primary:hover{
  background:#fff;
  color:#364545; /* your nav-dark */
  border-color:#364545;
  text-decoration:none;
}

/* Active (click) */
.le-btn-primary:active{
  transform:translateY(1px);
  box-shadow:0 2px 6px rgba(0,0,0,0.15) inset;
}

/* Focus (accessibility) */
.le-btn-primary:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(244,122,32,0.3);
}
/* Try Another Paper – override Bootstrap link styling */
#tryAnotherPaperWrap a{
  color:#fff !important;
  text-decoration:none !important;
}

#tryAnotherPaperWrap a:hover{
  color:#364545 !important;
  background:#fff;
  border-color:#364545;
}
/* MCQ diagram images */
.le-q-img{
  text-align:center;
  margin:12px 0 8px;
}

.le-q-img img{
  border:none;
  max-width:100%;
  height:auto;
}

/* =========================================
   MCQ COUNTDOWN TIMER
========================================= */

.le-timer-wrap{
  display:inline-flex;
  align-items:center;
  gap:.75rem;
  margin:0 0 1rem;
  padding:.6rem .9rem;
  background:#fff;
  border:1px solid var(--le-border);
  border-radius:999px;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
}

.le-timer-label{
  font-size:.9rem;
  font-weight:800;
  color:#4f5f5f;
}

.le-timer{
  min-width:88px;
  text-align:center;
  font-size:1.1rem;
  font-weight:900;
  color:var(--le-dark);
  letter-spacing:.04em;
}

.le-timer-wrap.is-warning{
  border-color:rgba(180,35,24,.25);
  background:rgba(180,35,24,.05);
}

.le-timer-wrap.is-warning .le-timer{
  color:var(--bad);
}

.le-timer-wrap.is-finished{
  animation:leTimerPop .7s ease, leTimerFadeAway 1.2s ease 1.1s forwards;
}

.le-timer-wrap.is-finished .le-timer{
  color:var(--bad);
}

@keyframes leTimerPop{
  0%   { transform:scale(1) rotate(0deg); opacity:1; }
  30%  { transform:scale(1.08) rotate(-2deg); }
  60%  { transform:scale(.96) rotate(2deg); }
  100% { transform:scale(1) rotate(0deg); opacity:1; }
}

@keyframes leTimerFadeAway{
  0%   { opacity:1; transform:translateY(0) scale(1); }
  100% { opacity:0; transform:translateY(-18px) scale(.92); visibility:hidden; }
}

@media(max-width:576px){
  .le-timer-wrap{
    display:flex;
    justify-content:center;
    width:100%;
    border-radius:14px;
  }

  .le-timer{
    min-width:78px;
    font-size:1rem;
  }
}
@media(max-width:576px){
  .le-mcq-float{
    left:10px;
    bottom:80px;
    font-size:.85rem;
  }
}

/* =========================================
   FLOATING TIMER (always visible)
========================================= */

.le-timer-wrap{
  position:fixed;
  top:14px;
  right:14px;
  z-index:1000;

  display:flex;
  align-items:center;
  gap:.6rem;

  padding:.5rem .75rem;
  background:#fff;
  border:1px solid var(--le-border);
  border-radius:999px;

  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

/* Slightly more compact when floating */
.le-timer-label{
  font-size:.8rem;
}

.le-timer{
  font-size:1rem;
  min-width:70px;
}

@media(max-width:576px){
  .le-timer-wrap{
    top:10px;
    right:10px;
    padding:.45rem .65rem;
  }

  .le-timer-label{
    display:none; /* keeps it compact */
  }
}

/* Timer finished state (stay visible) */
.le-timer-wrap.is-ended{
  background:rgba(180,35,24,.08);
  border-color:rgba(180,35,24,.35);
}
/* =========================================
   TIME EXCEEDED MESSAGE
========================================= */

.le-time-notice{
  margin-bottom:.6rem;
  padding:.6rem .75rem;
  border-radius:10px;
  font-weight:700;
  font-size:.9rem;

  background:rgba(180,35,24,.06);
  border:1px solid rgba(180,35,24,.25);
  color:var(--bad);
}

/* =========================================
   SIDEBAR MCQ LIST STYLING
========================================= */

.le-mcq-list{
  list-style:none;
  padding-left:0;
  margin:0;
}

/* Section headers */
.le-mcq-list .dropdown-header{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7a8a8a;
  margin:.8rem 0 .3rem;
  padding-left:.2rem;
}

/* Links */
.le-mcq-list li a{
  display:block;
  padding:.45rem .6rem;
  border-radius:8px;
  font-weight:600;
  color:var(--le-dark) !important;
  text-decoration:none !important;
  transition:all 0.18s ease;
}

/* Hover */
.le-mcq-list li a:hover{
  background:rgba(244,122,32,.08);
  color:var(--le-orange) !important;
  transform:translateX(3px);
}

/* Optional subtle divider */
.le-mcq-list li + .dropdown-header{
  margin-top:1rem;
}

/* =========================================
   NEW BADGE (soft version)
========================================= */

.le-badge-new{
  display:inline-block;
  margin-left:.45rem;
  padding:.12rem .42rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;

  background:rgba(244,122,32,.12);
  color:var(--le-orange);
  border:1px solid rgba(244,122,32,.25);

  vertical-align:middle;
}

.le-timer-wrap.is-ended .le-timer{
  color:var(--bad);
}
.le-actions-secondary {
  margin-top: 10px;
}