/* Crown Watch Quiz (scoped) — drop-in app.css
   Safe for Blocksy/Elementor: no global body/html selectors.
*/

.crown-quiz{
  --bg: #ffffff;               /* not used globally, but safe */
  --panel: #ffffff;            /* panel background */
  --panelSolid: #ffffff;
  --text: #111114;             /* primary text */
  --muted: #5f6368;            /* secondary text */
  --gold: #c8a24a;             /* accent */
  --line: #e6e6ea;             /* borders */
  --btn: #ffffff;              /* button bg */
  --btn2: #f6f6f8;             /* button hover */
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 18px;

  color: var(--text);
}


/* Ensure links inside quiz inherit cleanly */
.crown-quiz a{ color: inherit; text-decoration: none; }
.crown-quiz a:hover{ text-decoration: none; }

/* Panel layout */
.crown-quiz__panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}

/* Optional subtle glow */
.crown-quiz__panel::before{
  content:"";
  position:absolute;
  inset: -1px;
  pointer-events:none;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(200,162,74,.14), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(200,162,74,.08), transparent 60%);
  opacity: .9;
  z-index:0;
}
.crown-quiz__panel > *{ position: relative; z-index: 1; }

.crown-quiz__panelTop{
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}

.crown-quiz__progress{
  display:flex;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.crown-quiz__bar{
  width: 240px;
  height: 8px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow:hidden;
}
.crown-quiz__bar > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(200,162,74,.45), rgba(200,162,74,.95));
  transition: width .25s ease;
}

.crown-quiz__ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Content */
.crown-quiz__content{ padding: 18px; }

.crown-quiz__qTitle{
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.crown-quiz__h2{
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: .01em;
}

.crown-quiz__h3{
  margin: 14px 0 8px;
  font-size: 16px;
  letter-spacing: .01em;
}

.crown-quiz__sectionTop{ margin-top: 18px; }

.crown-quiz__tagline{
  color: var(--gold);
  font-weight: 750;
  letter-spacing: .02em;
  margin-bottom: 6px;
}

.crown-quiz__muted{
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0 0;
}

.crown-quiz__tiny{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Buttons */
.crown-quiz__btn{
  background: var(--btn);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration:none;
  font-weight: 650;
  font-size: 13px;
  transition: transform .06s ease, border-color .2s ease, background .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
}

.crown-quiz__btn:hover{
  background: var(--btn2);
  border-color: rgba(200,162,74,.35);
}
.crown-quiz__btn:active{ transform: translateY(1px); }
.crown-quiz__btn:disabled{
  opacity: .45;
  cursor:not-allowed;
  transform:none;
}

.crown-quiz__btnGold{
  border-color: rgba(200,162,74,.55);
  box-shadow: 0 0 0 1px rgba(200,162,74,.12) inset;
}

/* Question options grid */
.crown-quiz__options{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 760px){
  .crown-quiz__options{ grid-template-columns: 1fr 1fr; }
}

.crown-quiz__opt{
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  cursor:pointer;
  text-align:left;
  transition: border-color .2s ease, transform .06s ease, background .2s ease;
  min-height: 54px;
  display:flex;
  align-items:center;
  gap: 10px;
  line-height: 1.25;
}

.crown-quiz__opt:hover{
  border-color: rgba(200,162,74,.35);
  background: rgba(0,0,0,.34);
}

.crown-quiz__opt:active{ transform: translateY(1px); }

.crown-quiz__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(200,162,74,.08);
  flex: 0 0 auto;
}

.crown-quiz__opt.is-selected{
  border-color: rgba(200,162,74,.65);
  box-shadow: 0 0 0 1px rgba(200,162,74,.08) inset;
}
.crown-quiz__opt.is-selected .crown-quiz__dot{
  background: rgba(200,162,74,.85);
  border-color: rgba(200,162,74,.9);
}

/* Navigation row */
.crown-quiz__navRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top: 16px;
  flex-wrap:wrap;
}

/* Result header spacing */
.crown-quiz__resultHeader{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom: 14px;
}

/* Cards */
.crown-quiz__cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 840px){
  .crown-quiz__cards{ grid-template-columns: 1fr 1fr; }
}

.crown-quiz__card{
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  display:flex;
  gap: 12px;
  min-height: 120px;
}

.crown-quiz__cardImg{
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: rgba(0,0,0,.35);
  flex: 0 0 auto;
}

.crown-quiz__cardBody{
  padding: 10px 12px 10px 0;
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.crown-quiz__watchName{
  font-weight: 750;
  margin: 0;
  font-size: 14px;
  line-height:1.2;
  letter-spacing: .01em;
}

.crown-quiz__watchMeta{
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.35;
}

.crown-quiz__cardActions{
  margin-top:auto;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  align-items:center;
  padding-bottom: 2px;
}

/* Share box */
.crown-quiz__shareBox{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.crown-quiz__shareRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Toast */
.crown-quiz__toast{
  display:none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(200,162,74,.35);
  background: rgba(18,18,22,.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Small responsiveness tweaks */
@media (max-width: 520px){
  .crown-quiz__bar{ width: 180px; }
  .crown-quiz__card{ min-height: 110px; }
  .crown-quiz__cardImg{ width: 110px; height: 110px; }
}