/* LearnVerse homepage theme bridge — scoped ONLY to #homePage.
   Uses the same saved theme/mode attributes as Settings and the 3-dot drawer. */
html[data-lv-theme="baby-pink"] {
  --hp-bg:linear-gradient(160deg,#fff7fa 0%,#fff0f5 55%,#fce7ef 100%);
  --hp-surface:#fffafd;--hp-soft:#ffe8f0;--hp-text:#573747;--hp-muted:#916b7c;
  --hp-border:#f2cbd9;--hp-accent:#d85d8b;--hp-accent2:#a83f70;
}
html[data-lv-theme="lavender-dream"] {
  --hp-bg:linear-gradient(160deg,#fbf9ff 0%,#f2ecff 55%,#eae1ff 100%);
  --hp-surface:#fdfbff;--hp-soft:#eee6ff;--hp-text:#46365f;--hp-muted:#786991;
  --hp-border:#d9c9f5;--hp-accent:#9270d2;--hp-accent2:#6845ae;
}
html[data-lv-theme="ocean-blue"] {
  --hp-bg:linear-gradient(160deg,#f7fbff 0%,#eaf4ff 55%,#dcecff 100%);
  --hp-surface:#fbfdff;--hp-soft:#e1efff;--hp-text:#29445f;--hp-muted:#64809b;
  --hp-border:#c5def5;--hp-accent:#438fd0;--hp-accent2:#236ba8;
}
html[data-lv-theme="mint-green"] {
  --hp-bg:linear-gradient(160deg,#f7fdf9 0%,#e9f8ef 55%,#dcf2e5 100%);
  --hp-surface:#fbfffc;--hp-soft:#e0f4e7;--hp-text:#2e5140;--hp-muted:#668675;
  --hp-border:#c6e8d2;--hp-accent:#43a879;--hp-accent2:#267d58;
}
html[data-lv-theme="peach-cream"] {
  --hp-bg:linear-gradient(160deg,#fffaf4 0%,#fff4e6 55%,#ffead6 100%);
  --hp-surface:#fffdf9;--hp-soft:#ffedda;--hp-text:#624632;--hp-muted:#92775f;
  --hp-border:#f2d7b9;--hp-accent:#d98a4a;--hp-accent2:#a9602d;
}
html[data-lv-theme="sunny-yellow"] {
  --hp-bg:linear-gradient(160deg,#fffef5 0%,#fff8dc 55%,#fff1c2 100%);
  --hp-surface:#fffef8;--hp-soft:#fff3c9;--hp-text:#5b512f;--hp-muted:#8b8055;
  --hp-border:#eee1ad;--hp-accent:#c49a35;--hp-accent2:#927020;
}

/* Light themes affect the homepage only; other pages retain their existing styles. */
html[data-lv-mode="light"] #contentArea:has(#homePage) {
  background:var(--hp-bg,#fff0f5)!important;
}
html[data-lv-mode="light"] #homePage {
  color:var(--hp-text,#573747)!important;
  --hv-text:var(--hp-text);--hv-sub:var(--hp-muted);
  --hv-border:var(--hp-border);--hv-glass:linear-gradient(145deg,var(--hp-surface),var(--hp-soft));
}
html[data-lv-mode="light"] #homePage .home-hero {
  background:linear-gradient(135deg,var(--hp-soft),var(--hp-surface))!important;
  border-color:var(--hp-border)!important;
  box-shadow:0 12px 32px color-mix(in srgb,var(--hp-accent) 14%,transparent)!important;
}
html[data-lv-mode="light"] #homePage .home-hero h1,
html[data-lv-mode="light"] #homePage .home-section-title h3,
html[data-lv-mode="light"] #homePage .topic-card-name,
html[data-lv-mode="light"] #homePage .how-pill b,
html[data-lv-mode="light"] #homePage .feature-name,
html[data-lv-mode="light"] #homePage .hbc-title,
html[data-lv-mode="light"] #homePage .continue-name,
html[data-lv-mode="light"] #homePage .join-slim b {color:var(--hp-text)!important}
html[data-lv-mode="light"] #homePage .home-hero h1 span {
  background:linear-gradient(90deg,var(--hp-accent2),var(--hp-accent))!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;
}
html[data-lv-mode="light"] #homePage .home-hero p,
html[data-lv-mode="light"] #homePage .home-section-title span.view-all,
html[data-lv-mode="light"] #homePage .topic-card-desc,
html[data-lv-mode="light"] #homePage .topic-card-cat,
html[data-lv-mode="light"] #homePage .how-pill,
html[data-lv-mode="light"] #homePage .feature-desc,
html[data-lv-mode="light"] #homePage .join-slim span {color:var(--hp-muted)!important}
html[data-lv-mode="light"] #homePage .topic-card,
html[data-lv-mode="light"] #homePage .feature-item,
html[data-lv-mode="light"] #homePage .home-bottom-card,
html[data-lv-mode="light"] #homePage .how-pill {
  background:var(--hp-surface)!important;border-color:var(--hp-border)!important;
  box-shadow:0 5px 18px color-mix(in srgb,var(--hp-accent) 10%,transparent)!important;
}
html[data-lv-mode="light"] #homePage .topic-card-body {
  background:linear-gradient(180deg,var(--hp-surface),var(--hp-soft))!important;
}
html[data-lv-mode="light"] #homePage .feature-icon {
  background:var(--hp-soft)!important;border-color:var(--hp-border)!important;
}
html[data-lv-mode="light"] #homePage .how-pill .n,
html[data-lv-mode="light"] #homePage .home-hero .hero-search-row button,
html[data-lv-mode="light"] #homePage .lv-home-search .hero-search-row button:not(.lv-search-tool):not(.lv-voice-trigger) {
  background:linear-gradient(135deg,var(--hp-accent),var(--hp-accent2))!important;
}
html[data-lv-mode="light"] #homePage .join-slim {
  background:linear-gradient(135deg,var(--hp-soft),var(--hp-surface))!important;
  border-color:var(--hp-border)!important;
}
html[data-lv-mode="light"] #homePage .join-slim button {
  background:var(--hp-accent)!important;color:#fff!important;
}
html[data-lv-mode="light"] #homePage .prog-bar {background:color-mix(in srgb,var(--hp-accent) 15%,white)!important}
html[data-lv-mode="light"] #homePage .prog-fill {background:linear-gradient(90deg,var(--hp-accent),var(--hp-accent2))!important}
html[data-lv-mode="light"] #homePage .continue-btn {background:var(--hp-soft)!important;color:var(--hp-accent2)!important}
html[data-lv-mode="light"] #homePage .lv-home-search .lv-search-popover {
  background:var(--hp-surface)!important;border-color:var(--hp-border)!important;
}
html[data-lv-mode="light"] #homePage .lv-home-search .lv-picker-item {color:var(--hp-text)!important}

/* Dark mode overrides the selected pastel palette on the homepage, just like Settings. */
html[data-lv-mode="dark"] #contentArea:has(#homePage) {
  background:linear-gradient(160deg,#141827 0%,#1b2032 55%,#242039 100%)!important;
}
html[data-lv-mode="dark"] #homePage {
  color:#edf0f7!important;--hv-text:#edf0f7;--hv-sub:#b8bfd2;
  --hv-border:#3b4057;--hv-glass:linear-gradient(145deg,#252a3d,#1d2233);
}
html[data-lv-mode="dark"] #homePage .home-hero {
  background:linear-gradient(135deg,#292d43,#202638)!important;border-color:#3b4057!important;
}
html[data-lv-mode="dark"] #homePage .home-hero h1,
html[data-lv-mode="dark"] #homePage .home-section-title h3,
html[data-lv-mode="dark"] #homePage .topic-card-name,
html[data-lv-mode="dark"] #homePage .how-pill b,
html[data-lv-mode="dark"] #homePage .feature-name,
html[data-lv-mode="dark"] #homePage .hbc-title,
html[data-lv-mode="dark"] #homePage .continue-name,
html[data-lv-mode="dark"] #homePage .join-slim b {color:#f1f2f8!important}
html[data-lv-mode="dark"] #homePage .home-hero h1 span {
  background:linear-gradient(90deg,#e0c4f3,#a98ac8)!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;
}
html[data-lv-mode="dark"] #homePage .home-hero p,
html[data-lv-mode="dark"] #homePage .home-section-title span.view-all,
html[data-lv-mode="dark"] #homePage .topic-card-desc,
html[data-lv-mode="dark"] #homePage .topic-card-cat,
html[data-lv-mode="dark"] #homePage .how-pill,
html[data-lv-mode="dark"] #homePage .feature-desc,
html[data-lv-mode="dark"] #homePage .join-slim span {color:#b8bfd2!important}
html[data-lv-mode="dark"] #homePage .topic-card,
html[data-lv-mode="dark"] #homePage .feature-item,
html[data-lv-mode="dark"] #homePage .home-bottom-card,
html[data-lv-mode="dark"] #homePage .how-pill {
  background:linear-gradient(145deg,#252a3d,#1d2233)!important;border-color:#3b4057!important;
  box-shadow:0 7px 20px #0003!important;
}
html[data-lv-mode="dark"] #homePage .topic-card-body {background:linear-gradient(180deg,#252a3d,#1d2233)!important}
html[data-lv-mode="dark"] #homePage .feature-icon {background:#343047!important;border-color:#45405a!important}
html[data-lv-mode="dark"] #homePage .how-pill .n,
html[data-lv-mode="dark"] #homePage .home-hero .hero-search-row button,
html[data-lv-mode="dark"] #homePage .lv-home-search .hero-search-row button:not(.lv-search-tool):not(.lv-voice-trigger) {
  background:linear-gradient(135deg,#8e6ab5,#694b91)!important;
}
html[data-lv-mode="dark"] #homePage .join-slim {
  background:linear-gradient(135deg,#302b47,#252a3d)!important;border-color:#45405a!important;
}
html[data-lv-mode="dark"] #homePage .join-slim button {background:#8e6ab5!important;color:#fff!important}
html[data-lv-mode="dark"] #homePage .prog-bar {background:#34394c!important}
html[data-lv-mode="dark"] #homePage .prog-fill {background:linear-gradient(90deg,#8e6ab5,#b99bd6)!important}
html[data-lv-mode="dark"] #homePage .continue-btn {background:#343047!important;color:#e0c4f3!important}
html[data-lv-mode="dark"] #homePage .lv-home-search .lv-search-popover {
  background:#202433!important;border-color:#3b4057!important;color:#edf0f7!important;
}
html[data-lv-mode="dark"] #homePage .lv-home-search .lv-picker-item {color:#edf0f7!important}
