/* Quiz landing page — ported from gameassist_start_page.html, scoped to .quiz-landing */

/* Break out of the base .page-container / .main-content constraints */
body.quiz-game .page-container,
body.quiz-game .main-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

.quiz-landing {
  --ql-teal: #5DBAA4;
  --ql-teal-dark: #4A9A88;
  --ql-orange: #E8913A;
  --ql-orange-light: #F0A855;
  --ql-bg-start: #F2C94C;
  --ql-bg-end: #A4C639;
  --ql-card: #FFFFFF;
  --ql-text: #1F1F2E;
  --ql-muted: #6B7280;
  --ql-light: #9CA3AF;
  --ql-radius-lg: 24px;
  --ql-radius-md: 16px;
  --ql-radius-sm: 12px;
  position: relative;
  min-height: 100vh;
  /* Same animated gradient as /quiz/creator (body in quiz.css) */
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FDC500 50%, #4ECDC4 75%, #5B5FFF 100%);
  background-size: 400% 400%;
  animation: ql-gradient-shift 15s ease infinite;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ql-text);
  overflow: hidden;
}

/* Soft radial overlay, matching the creator's body::before */
.quiz-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(91, 95, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(253, 197, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes ql-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating background shapes */
.ql-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ql-shape { position: absolute; opacity: 0.1; background: #fff; animation: ql-float 20s infinite ease-in-out; }
.ql-shape-1 { top: 10%; left: 5%; width: 80px; height: 80px; border-radius: 20px; transform: rotate(15deg); }
.ql-shape-2 { top: 60%; right: 8%; width: 60px; height: 60px; border-radius: 50%; animation-delay: -5s; }
.ql-shape-3 { bottom: 20%; left: 15%; width: 40px; height: 40px; border-radius: 12px; animation-delay: -10s; }
@keyframes ql-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-30px) rotate(5deg); } }

/* Layout */
.ql-container {
  position: relative; z-index: 5;
  max-width: 1200px; margin: 0 auto; padding: 32px 40px 60px;
  display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start;
}
.ql-left { display: flex; flex-direction: column; gap: 32px; }

/* Hero */
.ql-hero {
  background: var(--ql-card); border-radius: var(--ql-radius-lg);
  padding: 48px; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.15);
  text-align: center; position: relative; overflow: hidden;
}
.ql-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ql-teal), var(--ql-orange)); }
.ql-hero-title { font-size: 42px; font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
.ql-hero-title span { background: linear-gradient(135deg, var(--ql-teal), var(--ql-orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ql-hero-subtitle { font-size: 18px; color: var(--ql-muted); line-height: 1.6; max-width: 600px; margin: 0 auto 32px; }
.ql-hero-actions { display: flex; justify-content: center; }
.ql-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--ql-teal), var(--ql-teal-dark));
  color: #fff; font-size: 18px; font-weight: 700; padding: 18px 48px;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(93,186,164,0.4); transition: all .3s;
}
.ql-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -4px rgba(93,186,164,0.5); }
.ql-btn-primary svg { width: 24px; height: 24px; }

/* How it works */
.ql-how { background: var(--ql-card); border-radius: var(--ql-radius-lg); padding: 40px 48px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); }
.ql-section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ql-light); margin-bottom: 24px; text-align: center; }
.ql-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ql-step { text-align: center; padding: 24px 16px; border-radius: var(--ql-radius-md); background: #FAFBFC; border: 1px solid #F3F4F6; transition: all .3s; }
.ql-step:hover { transform: translateY(-4px); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); }
.ql-step-number { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--ql-teal), var(--ql-orange)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ql-step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ql-step-desc { font-size: 13px; color: var(--ql-muted); line-height: 1.5; }

/* Sidebar */
.ql-sidebar { display: flex; flex-direction: column; gap: 24px; }
.ql-progress-card, .ql-recent-card { background: var(--ql-card); border-radius: var(--ql-radius-lg); padding: 28px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); }
.ql-progress-card { text-align: center; position: relative; overflow: hidden; }
.ql-progress-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ql-orange), var(--ql-orange-light)); }
.ql-progress-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ql-orange); margin-bottom: 16px; }
.ql-ring-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto 16px; }
.ql-ring-bg { fill: none; stroke: #F3F4F6; stroke-width: 8; }
.ql-ring-fill { fill: none; stroke: url(#qlProgressGradient); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s ease-out; }
.ql-ring-level { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 28px; font-weight: 800; }
.ql-progress-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ql-progress-subtitle { font-size: 13px; color: var(--ql-muted); }
.ql-progress-stats { display: flex; justify-content: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #F3F4F6; }
.ql-stat-value { font-size: 20px; font-weight: 800; color: var(--ql-teal); }
.ql-stat-label { font-size: 12px; color: var(--ql-light); margin-top: 2px; }
.ql-signin-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ql-teal); text-decoration: none; }
.ql-signin-link:hover { text-decoration: underline; }

/* Recent games */
.ql-recent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ql-recent-title { font-size: 16px; font-weight: 700; }
.ql-recent-count { font-size: 12px; font-weight: 600; color: #fff; background: var(--ql-light); padding: 2px 10px; border-radius: 100px; }
.ql-recent-list { display: flex; flex-direction: column; gap: 12px; }
.ql-recent-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--ql-radius-sm); background: #FAFBFC; border: 1px solid #F3F4F6; transition: all .2s; cursor: pointer; }
.ql-recent-item:hover { background: #fff; border-color: var(--ql-teal); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.ql-recent-thumb { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--ql-bg-start), var(--ql-bg-end)); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ql-recent-info { flex: 1; min-width: 0; }
.ql-recent-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-recent-date { font-size: 12px; color: var(--ql-light); }
.ql-recent-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.ql-recent-item:hover .ql-recent-actions { opacity: 1; }
.ql-recent-action { width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: var(--ql-muted); cursor: pointer; font-size: 13px; line-height: 1; }
.ql-recent-action:hover { background: #F3F4F6; color: var(--ql-text); }
.ql-empty { text-align: center; padding: 32px 20px; color: var(--ql-light); }
.ql-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.ql-empty-text { font-size: 14px; margin-bottom: 16px; }
.ql-empty-link { font-size: 13px; font-weight: 600; color: var(--ql-teal); text-decoration: none; }
.ql-empty-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .ql-container { grid-template-columns: 1fr; }
  .ql-sidebar { flex-direction: row; flex-wrap: wrap; }
  .ql-sidebar > * { flex: 1; min-width: 280px; }
}
@media (max-width: 640px) {
  .ql-container { padding: 16px 20px 40px; }
  .ql-hero { padding: 32px 24px; }
  .ql-hero-title { font-size: 28px; }
  .ql-how { padding: 28px 24px; }
  .ql-steps { grid-template-columns: 1fr; }
  .ql-btn-primary { width: 100%; justify-content: center; }
}
