/* Namespaced to .lrqz-wrapper to avoid WP conflicts */
:root {
  --lrqz-bg: #0f172a;         /* slate-900 */
  --lrqz-card: #0b1024;       /* deep navy */
  --lrqz-accent: #6ee7b7;     /* emerald-300 */
  --lrqz-accent-2: #60a5fa;   /* blue-400 */
  --lrqz-text: #e5e7eb;       /* gray-200 */
  --lrqz-muted: #a1a1aa;      /* zinc-400 */
  --lrqz-danger: #fca5a5;     /* red-300 */
  --lrqz-success: #86efac;    /* green-300 */
  --lrqz-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lrqz-wrapper {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--lrqz-text);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(96,165,250,0.08), transparent),
              radial-gradient(900px 500px at 90% 20%, rgba(110,231,183,0.07), transparent),
              var(--lrqz-bg);
  padding: 24px 12px;
}

.lrqz-card {
  max-width: 900px;             /* Respect WP content widths */
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: var(--lrqz-shadow);
  overflow: hidden;
}

/* Intro */
.lrqz-intro {
  padding: 28px;
  text-align: center;
}

.lrqz-intro h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--lrqz-accent), var(--lrqz-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.lrqz-subtitle {
  margin: 0 0 16px;
  color: var(--lrqz-muted);
}

.lrqz-details {
  text-align: left;
  margin: 0 auto 16px;
  max-width: 700px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.lrqz-summary {
  cursor: pointer;
  font-weight: 700;
}

.lrqz-details-body {
  margin-top: 8px;
  color: var(--lrqz-text);
  font-size: 0.95rem;
}

.lrqz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--lrqz-text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.lrqz-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.lrqz-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lrqz-btn-primary {
  background: linear-gradient(135deg, rgba(110,231,183,0.35), rgba(96,165,250,0.35));
  border: none;
}

.lrqz-btn-secondary {
  background: rgba(255,255,255,0.05);
}

.lrqz-btn-next {
  width: 100%;
}

/* Quiz */
.lrqz-quiz {
  padding: 18px 18px 22px;
}

.lrqz-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lrqz-progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.lrqz-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--lrqz-accent), var(--lrqz-accent-2));
  transition: width 0.25s ease;
}

.lrqz-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lrqz-counter {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lrqz-timer {
  font-feature-settings: "tnum" 1, "lnum" 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
}

.lrqz-main {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
}

.lrqz-question {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.lrqz-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.lrqz-option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--lrqz-text);
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border .2s ease;
}

.lrqz-option-btn:hover {
  transform: translateY(-1px);
}

.lrqz-option-btn[aria-pressed="true"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.lrqz-option-btn.correct {
  outline: 2px solid rgba(134,239,172,0.75);
  background: rgba(34,197,94,0.15);
}

.lrqz-option-btn.incorrect {
  outline: 2px solid rgba(252,165,165,0.75);
  background: rgba(220,38,38,0.15);
}

.lrqz-feedback {
  min-height: 32px;
  margin-top: 10px;
  color: var(--lrqz-muted);
}

.lrqz-footer {
  margin-top: 14px;
}

/* Result */
.lrqz-result {
  padding: 26px;
  text-align: center;
}

.lrqz-scoreline {
  font-size: 1.15rem;
}

.lrqz-remark {
  margin: 8px 0 16px;
  color: var(--lrqz-muted);
}

.lrqz-review {
  text-align: left;
  margin: 0 auto;
  max-width: 760px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.lrqz-review-list {
  display: grid;
  gap: 12px;
}

.lrqz-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Fullscreen adjustments */
.lrqz-wrapper:fullscreen .lrqz-card,
.lrqz-wrapper:-webkit-full-screen .lrqz-card {
  max-width: 1100px;
}

@media (max-width: 640px) {
  .lrqz-intro h1 { font-size: 1.6rem; }
  .lrqz-card { border-radius: 16px; }
  .lrqz-main { padding: 12px; }
  .lrqz-option-btn { padding: 10px 12px; }
}
