/* ==========================================================================
   Heller Modus
   Helle Karten, dunkle Schrift. Bunte Flächen (Banner, Profilkopf, Spielfenster,
   Schnell-Admin, Toasts) bleiben bewusst wie im dunklen Modus.
   ========================================================================== */
body.light-mode {
  --mm-bg: #f4f1fa;
  --mm-surface: #ffffff;
  --mm-surface-2: #f2eef9;
  --mm-border: rgba(40, 24, 80, 0.1);
  --mm-text: #1d1830;
  --mm-muted: #6e6787;
  --mm-shadow: 0 10px 30px rgba(60, 30, 110, 0.08);
  --lm-text: #1d1830;
  --lm-soft: #3d3656;
  background-color: var(--mm-bg) !important;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(236, 96, 144, 0.1), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(56, 189, 248, 0.08), transparent 60%) !important;
  color: var(--lm-text);
}

/* Bereiche, die farbig bleiben (dort gilt weiter weiße Schrift) */
/* .main-banner, .pf-hero, .gameIframe-Wrapper, .qa-panel, .live-toasts, .sr-hero bleiben dunkel */
body.light-mode .sr-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, .18), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(236, 96, 144, .14), transparent 45%),
    #fff;
}

/* ---- Karten ---- */
body.light-mode :where(.featured-games, .top-downloaded, .top-streamers, .live-stream, .most-popular, .gaming-library,
  .main-profile, .game-of-day, .mm-card, .comments, .feedback, .search, .actual-game, .game-details, .extras-box,
  .stat-card, .help-article, .post, .pf-card, .about-card, .about-stats > div, .tl-body, .sr-card, .changelog-entry,
  .changelog-nav, .gw-card, .pf-panel, .pf-tabs, .sr-empty, .main-footer, .rp-card, .hc-card, .cc-card, .st-card) {
  background: #fff !important;
  border-color: var(--mm-border) !important;
  box-shadow: var(--mm-shadow) !important;
  color: var(--lm-text);
}
body.light-mode .featured-games:hover { background: #fff !important; }
body.light-mode #with-background { background: var(--mm-surface-2) !important; border-color: var(--mm-border) !important; }

/* Innere Flächen */
body.light-mode :where(.most-popular .item, .clips .item, .live-stream .item, .fy-card, .recent-thumb, .pf-game, .pf-fav,
  .pf-request, .sr-profile, .sr-help a, .gw-choice > span, .gw-checklist label, .gw-info-grid div, .gw-details, .gw-files,
  .gw-toggle, .gw-tile, .cl-section, .join-links a, .pf-show-item, .pf-pick, .pf-options span, .pf-frames label,
  .pf-seg span, .tag-strip .chip:not(:first-child), .chip, .comment-actions button, .top-downloaded ul li.rec-row:hover) {
  background: var(--mm-surface-2) !important;
  color: var(--lm-text);
}
body.light-mode .chip.active, body.light-mode .tag-strip .chip:first-child { background: var(--mm-gradient) !important; color: #fff !important; }
body.light-mode .chip small { color: var(--mm-muted); }

/* ---- Schrift ---- */
body.light-mode :is(h1, h2, h3, h4, h5, h6, b, strong, label, dd, .fy-body b, .recent-title, .tile-title, .tl-body b,
  .update-head .version, .pf-card-head h4, .pf-game-body b, .pf-fav b, .sr-profile b, .gw-choice b, .gw-toggle span b,
  .changelog-entry h3, .about-stats b, .god-meta, .section-link):not(:is(.main-banner, .pf-hero, .gameIframe-Wrapper,
  .iframe-overlay-bar, .qa-panel, .live-toasts, .mm-suggest, .tile-thumb, .pf-show-item, .gw-steps li.active, .chip.active,
  .tag-strip .chip:first-child, .pf-tabs button.active, .mm-btn, .hero-btn, .pf-btn, .latest-pill, .mm-badge-chip, .pf-role,
  .mm-alien-hud, .mm-to-top, .header-area) *):not(.mm-btn, .pf-btn, .hero-btn) {
  color: var(--lm-text) !important;
}
body.light-mode :is(p, li, span, small, td, dt):not(:is(.main-banner, .pf-hero, .gameIframe-Wrapper, .iframe-overlay-bar,
  .qa-panel, .live-toasts, .mm-suggest, .header-area, .mm-btn, .pf-btn, .hero-btn, .chip.active, .tag-strip .chip:first-child,
  .gw-steps li.active, .pf-tabs button.active, .mm-badge-chip, .latest-pill, .pf-role, .tile-badge, .mm-alien-hud, .pf-show-item) *):not(.mm-badge-chip, .latest-pill, .pf-role, .tile-badge, .live-bump) {
  color: var(--lm-soft);
}
body.light-mode :is(.section-hint, .pf-help, .gw-hint, .gw-lead, .sr-count, .tile-meta, .fy-reason, .pf-empty, .extras-empty,
  .update-card small, .tl-body p, .about-card p, .cl-summary, .hero-stats, .pf-card-head > small, .gw-count) {
  color: var(--mm-muted) !important;
}
body.light-mode .heading-section h4 em, body.light-mode h4 em { color: var(--mm-pink) !important; }
body.light-mode .game-tile .tile-meta span, body.light-mode .game-tile .tile-meta i { color: var(--mm-muted) !important; }
body.light-mode a:not(.main-banner *):not(.pf-hero *):not(.mm-btn):not(.pf-btn):not(.hero-btn):not(.chip):not([class*="tile"]):not(.fy-card):not(.sr-profile):not(.pf-fav):not(.pf-game-thumb) { color: inherit; }
body.light-mode :is(.page-content, .main-footer) a:hover { color: var(--mm-pink); }
body.light-mode code { background: #f3e8ff; color: #9d174d; }

/* ---- Header ---- */
body.light-mode .header-area .main-nav,
body.light-mode .background-header .main-nav {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid var(--mm-border) !important;
  box-shadow: 0 10px 30px rgba(60, 30, 110, 0.08) !important;
}
body.light-mode .header-area .main-nav .nav li a { color: #3d3656 !important; background: transparent; }
body.light-mode .header-area .main-nav .nav li a.active,
body.light-mode .header-area .main-nav .nav li a:hover { background: rgba(236, 96, 144, 0.12) !important; color: var(--mm-pink) !important; }
body.light-mode .header-area .main-nav .nav li:last-child a { background: var(--mm-surface-2) !important; color: var(--lm-text) !important; }
body.light-mode .search-input input { background: var(--mm-surface-2) !important; color: var(--lm-text) !important; border-color: var(--mm-border) !important; }
body.light-mode .search-input input::placeholder { color: #8c86a3; }
body.light-mode .header-area .main-nav .menu-trigger span,
body.light-mode .header-area .main-nav .menu-trigger span::before,
body.light-mode .header-area .main-nav .menu-trigger span::after { background-color: #3d3656 !important; }
@media (max-width: 992px) {
  body.light-mode .header-area .main-nav .nav { background: #fff !important; }
}

/* ---- Eingaben ---- */
body.light-mode :is(input[type=text], input[type=search], input[type=url], input[type=number], textarea, select, .mm-select,
  .pf-input, .toolbar-search input, .sr-box, .gw-tags, .changelog-search input):not(.qa-panel *) {
  background: #fff !important;
  color: var(--lm-text) !important;
  border-color: rgba(40, 24, 80, 0.16) !important;
}
body.light-mode .sr-box input { background: none !important; }
body.light-mode .gw-drop, body.light-mode .pf-upload, body.light-mode .pf-upload-tile { border-color: rgba(40, 24, 80, 0.2); }

/* ---- Buttons ---- */
body.light-mode .mm-btn.secondary, body.light-mode .main-border-button a, body.light-mode .pf-btn.ghost:not(.pf-hero *) {
  color: var(--mm-pink) !important;
  border-color: rgba(236, 96, 144, 0.5) !important;
  background: #fff !important;
}
body.light-mode .hero-btn:not(.primary):not(.discord):not(.main-banner *) { background: #fff; color: var(--lm-text); border-color: var(--mm-border); }
body.light-mode .sr-tabs a:not(.active) { background: #fff; color: var(--lm-soft); }
body.light-mode .owl-nav button.owl-prev, body.light-mode .owl-nav button.owl-next { background: #fff !important; }
body.light-mode .owl-nav span { color: var(--lm-text) !important; }

/* ---- Spielseite ---- */
body.light-mode .game-info p, body.light-mode .game-info a { color: var(--lm-soft) !important; }
body.light-mode .comments textarea { background: #fff !important; }
body.light-mode #commentList li { color: var(--lm-soft); }
body.light-mode .leaderboard ul li { border-color: var(--mm-border) !important; }

/* ---- Footer ---- */
body.light-mode .main-footer ul li h5 { color: var(--lm-text) !important; }
body.light-mode .main-footer p, body.light-mode .main-footer a { color: var(--lm-soft) !important; }
body.light-mode .main-footer ul li span { color: var(--mm-pink) !important; }
body.light-mode .main-footer hr, body.light-mode .main-footer ul li h5 + * { border-color: var(--mm-border) !important; }
body.light-mode .lang-current, body.light-mode #theme-toggle { background: #fff !important; color: var(--lm-text) !important; border: 1px solid var(--mm-border) !important; }
body.light-mode .lang-menu { background: #fff; }
body.light-mode .lang-menu button { color: var(--lm-soft); }
body.light-mode .lang-menu button:hover { background: var(--mm-surface-2); color: var(--lm-text); }
body.light-mode #snowToggle { color: var(--lm-soft); border-color: var(--mm-border); }

/* ---- Dropdowns, Popups ---- */
body.light-mode .mm-suggest { background: rgba(255, 255, 255, 0.98); }
body.light-mode .mm-suggest a[data-item] { color: var(--lm-text); }
body.light-mode .mm-suggest b { color: var(--lm-text) !important; }
body.light-mode .header-popup-frame iframe { background: #fff; }
body.light-mode .site-announcement { color: var(--lm-text); background: linear-gradient(135deg, rgba(236, 96, 144, 0.14), rgba(168, 85, 247, 0.14)); }
body.light-mode .mm-alien-hud, body.light-mode .mm-to-top { background: rgba(255, 255, 255, 0.92); color: var(--lm-text); }

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-track { background: #ede8f6; }
body.light-mode ::-webkit-scrollbar-thumb { background: #cfc4e6; }

body.light-mode .mm-badge-chip:not(.pf-hero *) { color: color-mix(in srgb, var(--badge-color) 75%, #000) !important; background: color-mix(in srgb, var(--badge-color) 14%, #fff) !important; }
body.light-mode .mm-badge-chip:not(.pf-hero *) i { color: inherit !important; }
body.light-mode .record-list li { border-color: var(--mm-border) !important; }

body.light-mode :is(.rp-hero, .hc-hero) { background: radial-gradient(circle at 90% 10%, rgba(168,85,247,.16), transparent 45%), radial-gradient(circle at 0% 100%, rgba(236,96,144,.12), transparent 45%), #fff !important; }
body.light-mode :is(.rp-hero, .hc-hero) p { color: var(--lm-soft) !important; }
body.light-mode .hc-doc :is(p, li) { color: var(--lm-soft) !important; }
body.light-mode .hc-note { color: var(--lm-soft); }
body.light-mode :is(.rp-steps li, .rp-moods span, .rp-tags small, .cc-numbers div, .cc-top a, .cc-guides a, .hc-helpful button, .rp-hero-links a) { background: var(--mm-surface-2) !important; }
body.light-mode .rp-hero-links a, body.light-mode .rp-cat, body.light-mode .cc-step, body.light-mode .hc-card li a { color: var(--lm-text) !important; }
body.light-mode :is(.rp-feedback textarea) { background: #fff !important; color: var(--lm-text) !important; }
body.light-mode .hc-cta { background: linear-gradient(135deg, rgba(236,96,144,.1), rgba(168,85,247,.1)) !important; }
body.light-mode .cc-step-num { color: rgba(40,24,80,.08); }

/* Farbige Texte, die die allgemeine Schrift-Regel nicht schwärzen soll */
body.light-mode .rp-go { color: var(--rp-color) !important; }
body.light-mode .st-kpi small.up { color: #16a34a !important; }
body.light-mode .st-kpi small.down { color: #dc2626 !important; }
body.light-mode :is(.st-range a.active, .sr-tabs a.active, .sr-tabs a.active small, .pf-tabs button.active) { color: #fff !important; }
body.light-mode .cc-numbers .warn b { color: #d97706 !important; }
body.light-mode .hc-card li a:hover b { color: var(--hc-color) !important; }
body.light-mode .update-counts .new, body.light-mode .cl-section.new b { color: #16a34a !important; }
body.light-mode .update-counts .changed, body.light-mode .cl-section.changed b { color: #0284c7 !important; }
body.light-mode .update-counts .bugfix, body.light-mode .cl-section.bugfix b { color: #dc2626 !important; }
body.light-mode .tile-trend, body.light-mode .tile-trend i { color: #ea580c !important; }
