/* ===========================
   JLZ TUNING - Light Mode Overrides
   Doar reguli body.light-mode .xxx — dark-ul ramane default.
   =========================== */

body.light-mode {
    --bg-primary: #faf8ff;
    --bg-secondary: #f0ebf7;
    --bg-card: rgba(0, 0, 0, 0.02);
    --text-primary: #1a1625;
    --text-secondary: rgba(26, 22, 37, 0.7);
    --text-muted: rgba(26, 22, 37, 0.5);
    --border: rgba(26, 22, 37, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(26, 22, 37, 0.08);
    --accent-dark: #6b1fa6;
    background: #faf8ff;
    color: #1a1625;
}

/* Navbar — fundal dark hardcodat, trebuie override */
body.light-mode #mainNavbar,
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 22, 37, 0.08);
}
body.light-mode .navbar-brand,
body.light-mode .nav-link {
    color: #1a1625 !important;
}
body.light-mode .navbar-toggler {
    border-color: rgba(26, 22, 37, 0.2);
}
body.light-mode .navbar-toggler-icon {
    filter: invert(1);
}

/* Semi-transparent white overlays → flip to dark-alpha */
body.light-mode .glass-card,
body.light-mode .card,
body.light-mode .engine-card,
body.light-mode .price-card,
body.light-mode .testimonial-card,
body.light-mode .coverage-card,
body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(26, 22, 37, 0.08);
    box-shadow: 0 4px 20px rgba(26, 22, 37, 0.04);
}

/* Hero overlay — era alb peste fundal întunecat, acum dim peste light */
body.light-mode .hero-overlay {
    background: linear-gradient(180deg, rgba(250, 248, 255, 0) 0%, rgba(240, 235, 247, 0.6) 100%);
}

/* Background-grid animation (diagonal pattern) — mai subtil pe light */
body.light-mode .hero-section,
body.light-mode [class*="bg-grid"] {
    background-color: var(--bg-primary);
}

/* Any hardcoded rgba(255,255,255,*) semi-transparent backgrounds → rgba(0,0,0,*) */
body.light-mode [style*="rgba(255, 255, 255"],
body.light-mode [style*="rgba(255,255,255"] {
    background: rgba(26, 22, 37, 0.03) !important;
    border-color: rgba(26, 22, 37, 0.08) !important;
}

/* Text that was white → dark */
body.light-mode,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode li,
body.light-mode span:not(.brand-accent):not(.text-accent):not(.badge),
body.light-mode label,
body.light-mode .hero-title,
body.light-mode .hero-subtitle {
    color: #1a1625;
}
body.light-mode .hero-subtitle,
body.light-mode .section-subtitle,
body.light-mode .text-muted,
body.light-mode .text-secondary {
    color: rgba(26, 22, 37, 0.65) !important;
}

/* Calculator Stage 1 (.tc) — card dark self-contained, ramane dark chiar si in light mode.
   Restauram explicit culorile scoped din .tc ca sa evitam regulile globale. */
body.light-mode .tc,
body.light-mode .tc * {
    color: var(--tc-text, #eaeef5) !important;
}
body.light-mode .tc .tc__title,
body.light-mode .tc .tc__title em {
    color: #fff !important;
}
body.light-mode .tc .tc__eyebrow,
body.light-mode .tc .tc-chip-gain,
body.light-mode .tc .tc-suggestion-gain,
body.light-mode .tc .tc-engine-arrow,
body.light-mode .tc .tc-crumb.is-active,
body.light-mode .tc .tc__title em,
body.light-mode .tc svg {
    color: var(--tc-accent, #a855f7) !important;
}
body.light-mode .tc .tc__sub,
body.light-mode .tc .tc-brand-count,
body.light-mode .tc .tc-model-count,
body.light-mode .tc .tc-engine-stats,
body.light-mode .tc .tc-engine-stock,
body.light-mode .tc .tc-suggestion-engine,
body.light-mode .tc .tc-crumb {
    color: var(--tc-text-dim, #a4abbd) !important;
}
body.light-mode .tc .tc__label,
body.light-mode .tc .tc__divider,
body.light-mode .tc .tc-crumb-sep,
body.light-mode .tc .tc__input::placeholder {
    color: var(--tc-text-mute, #6e7689) !important;
}
body.light-mode .tc input,
body.light-mode .tc .tc__input {
    background: var(--tc-surface, #141824) !important;
    color: var(--tc-text, #eaeef5) !important;
    border-color: var(--tc-line-strong, rgba(255,255,255,0.14)) !important;
}

/* Form inputs */
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1625;
    border-color: rgba(26, 22, 37, 0.15);
}
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: rgba(26, 22, 37, 0.4);
}

/* Footer was dark — keep it dark-tinted but lighter */
body.light-mode footer,
body.light-mode .footer {
    background: #1a1625;
    color: #faf8ff;
}
body.light-mode footer a {
    color: rgba(255, 255, 255, 0.8);
}
body.light-mode footer h1,
body.light-mode footer h2,
body.light-mode footer h3,
body.light-mode footer h4,
body.light-mode footer h5,
body.light-mode footer h6,
body.light-mode footer p,
body.light-mode footer li,
body.light-mode footer span {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile sticky CTA bar — era dark, ramane dark pentru contrast butoane */
body.light-mode .mobile-sticky-cta {
    background: rgba(26, 22, 37, 0.95);
}

/* Scroll bar track/thumb */
body.light-mode ::-webkit-scrollbar-track {
    background: #f0ebf7;
}

/* Theme toggle button style */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}
.theme-toggle-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
body.light-mode .theme-toggle-btn {
    border-color: rgba(26, 22, 37, 0.2);
    color: #1a1625;
}
body.light-mode .theme-toggle-btn:hover {
    background: rgba(126, 34, 206, 0.1);
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}
.theme-icon-sun,
.theme-icon-moon {
    transition: opacity 0.2s ease;
}
.theme-icon-hidden {
    display: none;
}
