/* NumoStars — Dark Mode Overrides */
:root.dark-mode {
    color-scheme: dark;
    --bg: #15161A;
    --bg-alt: #1D1F24;
    --bg-card: #202228;
    --text: #ECEDEF;
    --text-secondary: #B2B4BC;
    --text-light: #92959E;
    --border: #363840;
    --primary: #B1A0E2;
    --primary-dark: #C5B9EA;
    --shadow: 0 1px 3px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.28);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.35);
}

:root:not(.dark-mode) { color-scheme: light; }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    order: 2;
    margin-left: 20px;
}

.nav-links { margin-left: auto; }

.theme-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
}

.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.theme-toggle .theme-icon-sun,
.dark-mode .theme-toggle .theme-icon-moon { display: none; }
.dark-mode .theme-toggle .theme-icon-sun { display: inline-block; }

.dark-mode .header,
.dark-mode .dropdown,
.dark-mode .quiz-registration-gate__card,
.dark-mode .quiz-registration-gate__close,
.dark-mode .lucky-number-pill,
.dark-mode #quiz-results-page .info-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.dark-mode .nav-links > li > .nav-auth-login {
    border-color: var(--border);
    background: var(--bg-alt);
    color: var(--text);
}

.dark-mode .btn-primary,
.dark-mode .nav-links > li > .nav-auth-register {
    background: #654BB4;
    color: #fff;
}

.dark-mode .btn-primary:hover,
.dark-mode .btn-outline:hover,
.dark-mode .nav-links > li > .nav-auth-register:hover {
    background: #513B98;
    color: #fff;
}

.dark-mode .section-alt,
.dark-mode .hero,
.dark-mode .zodiac-hero,
.dark-mode .footer { background: transparent }
.dark-mode .dashboard-profile-avatar { background: var(--bg-card); border-color: var(--border); }
.dark-mode .logo-image,
.dark-mode .footer-logo-image { filter: brightness(0) invert(1); }

@media (max-width: 768px) {
    .dark-mode .nav-links { background: var(--bg-card); }
    .nav-controls { margin-left: auto; }
}
