/* Light theme: hero glass + compact header (catalog/cards use tokens in index-home-palettes.css) */

html[data-theme^="light"] .lh-glass {
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.02);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.02);
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        inset 0 2px #ffffff,
        inset 0 -1px rgba(15, 23, 42, 0.06),
        inset 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 0.5px rgba(15, 23, 42, 0.06),
        0 40px 100px rgba(15, 23, 42, 0.08),
        0 16px 48px rgba(99, 102, 241, 0.12);
}

html[data-theme^="light"] .lh-wrap.lh-scrolled .lh-glass {
    -webkit-backdrop-filter: blur(36px) saturate(160%) brightness(1.04);
    backdrop-filter: blur(36px) saturate(160%) brightness(1.04);
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.95),
        inset 0 -1px rgba(15, 23, 42, 0.05),
        0 8px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme^="light"] .lh-eyebrow {
    color: #64748b;
}

html[data-theme^="light"] .lh-byline {
    color: #64748b;
}

html[data-theme^="light"] .lh-social-link {
    color: #94a3b8;
}

html[data-theme^="light"] .lh-social-link:hover {
    color: #64748b;
}

html[data-theme^="light"] .lh-stat-n {
    color: #0f172a;
}

html[data-theme^="light"] .lh-stat-l {
    color: #94a3b8;
}

html[data-theme^="light"] .lh-logo {
    color: #fff;
    box-shadow: 0 2px 12px rgba(192, 132, 252, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

html[data-theme^="light"] .lh-c-name {
    color: #0f172a;
}

html[data-theme^="light"] .lh-c-sub {
    color: #64748b;
}

html[data-theme^="light"] .card-icon {
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

/* Theme toggle — compact icon button (colors from --hm-theme-toggle-*) */
.theme-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: var(--hm-radius-theme-toggle, 10px);
    border: 1px solid var(--hm-theme-toggle-border, rgba(255, 255, 255, 0.28));
    background: var(--hm-theme-toggle-bg, rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--hm-theme-toggle-fg, #e2e8f0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
        color 0.2s ease;
    box-shadow: var(--hm-theme-toggle-shadow, 0 4px 18px rgba(0, 0, 0, 0.18));
}

.theme-toggle:hover {
    transform: scale(1.04);
    background: var(--hm-theme-toggle-hover-bg, rgba(255, 255, 255, 0.16));
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--hm-nav-active-accent, rgba(192, 132, 252, 0.85));
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-svg {
    display: block;
}

@media (width <= 600px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle-svg {
        width: 18px;
        height: 18px;
    }
}
