/* ============================================================================
   bulb-wall.css  —  💡 The Idea Wall (business-idea generator) styling (.bwl-*)
   A bare bulb hangs over a red brick wall in the dark; it flickers, catches, and
   floods the wall with warm light — revealing the idea on the brick.
   Self-contained. Warm amber accent.
   ⚠️ scene coords/rays match bulb-wall-engine.js (buildRays uses cx170 cy98).
   ============================================================================ */
.bwl-stage { position: relative; }

/* mode chips */
.bwl-modes-wrap { text-align: center; }
.bwl-modes-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--theme-muted, #6b7280); margin: 0 0 8px; }
.bwl-modes { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 auto 14px; }
.bwl-mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 650; padding: 7px 13px; border-radius: 11px;
    background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e); border: 1.5px solid var(--theme-border, #dfe4ee);
    transition: transform .12s ease, border-color .15s, background .15s, box-shadow .15s; }
.bwl-mode .bwl-mode-e { font-size: 15px; line-height: 1; }
.bwl-mode:hover { transform: translateY(-2px); border-color: var(--bwl-accent, #e8880c); }
.bwl-mode.is-on { background: var(--bwl-accent, #e8880c); border-color: var(--bwl-accent, #e8880c); color: #fff; box-shadow: 0 7px 18px -6px var(--bwl-accent, #e8880c); }
.bwl-mode:focus-visible { outline: 3px solid color-mix(in srgb, var(--bwl-accent, #e8880c) 55%, transparent); outline-offset: 2px; }
.bwl-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }

/* the room */
.bwl-room { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.bwl-scene { display: block; width: 100%; height: auto; }

.bwl-dark { opacity: .76; transition: opacity .55s; }
.bwl-scene.bwl-on .bwl-dark { opacity: 0; }
.bwl-lite { opacity: 0; transition: opacity .55s; }
.bwl-scene.bwl-on .bwl-lite { opacity: 1; }
.bwl-glow { opacity: .04; transition: opacity .5s; }
.bwl-scene.bwl-on .bwl-glow { opacity: 1; }
.bwl-glass { fill: rgba(60,58,66,.5); stroke: rgba(120,120,132,.5); stroke-width: 2.5; transition: fill .35s, stroke .35s; }
.bwl-scene.bwl-on .bwl-glass { fill: rgba(255,214,110,.55); stroke: rgba(233,150,10,.75); }
.bwl-filament { fill: none; stroke: #5f5a52; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, filter .3s; }
.bwl-scene.bwl-on .bwl-filament { stroke: #ff9e12; filter: drop-shadow(0 0 6px #ffca4d); }
.bwl-rays line { stroke: var(--bwl-accent, #e8880c); stroke-width: 5; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.35); transition: opacity .35s, transform .45s cubic-bezier(.2,1.4,.4,1); }
.bwl-scene.bwl-on .bwl-rays line { opacity: .9; transform: scale(1); }
.bwl-core { opacity: 0; transition: opacity .3s; }
.bwl-scene.bwl-on .bwl-core { opacity: 1; }
/* flicker in the dark — the bulb sputters before it catches */
.bwl-scene.bwl-flick .bwl-glow { animation: bwlFglow .17s steps(2) infinite; }
@keyframes bwlFglow { 0%,100% { opacity: .05; } 50% { opacity: .5; } }
.bwl-scene.bwl-flick .bwl-filament { animation: bwlFfil .17s steps(2) infinite; }
@keyframes bwlFfil { 0%,100% { stroke: #5f5a52; } 50% { stroke: #e59a2a; } }
.bwl-scene.bwl-flick .bwl-glass { animation: bwlFgls .17s steps(2) infinite; }
@keyframes bwlFgls { 0%,100% { fill: rgba(60,58,66,.5); } 50% { fill: rgba(255,214,110,.3); } }
/* idle: the bulb flickers in the dark — occasional brief flashes, mostly off */
.bwl-scene.bwl-idleflick .bwl-glow { animation: bwlIdleGlow 4.6s ease-in-out infinite; }
@keyframes bwlIdleGlow { 0%,7%,12%,38%,44%,72%,76%,100% { opacity: .05; } 9% { opacity: .32; } 40% { opacity: .16; } 74% { opacity: .42; } }
.bwl-scene.bwl-idleflick .bwl-filament { animation: bwlIdleFil 4.6s ease-in-out infinite; }
@keyframes bwlIdleFil { 0%,8%,12%,39%,73%,76%,100% { stroke: #5f5a52; } 9% { stroke: #d98f28; } 40% { stroke: #8a7a55; } 74% { stroke: #e59a2a; } }
.bwl-scene.bwl-idleflick .bwl-glass { animation: bwlIdleGls 4.6s ease-in-out infinite; }
@keyframes bwlIdleGls { 0%,8%,12%,72%,76%,100% { fill: rgba(60,58,66,.5); } 9% { fill: rgba(255,214,110,.22); } 74% { fill: rgba(255,214,110,.3); } }
/* the idea, painted on the wall — revealed by the light */
.bwl-wallname { opacity: 0; transition: opacity .5s .12s; }
.bwl-scene.bwl-on .bwl-wallname { opacity: 1; }
.bwl-wn { font-weight: 850; color: #fff6df; text-align: center; line-height: 1.08; text-shadow: 0 2px 10px rgba(255,180,60,.55), 0 1px 2px rgba(0,0,0,.5); font-family: system-ui, sans-serif; letter-spacing: .2px; padding: 0 8px; }
@media (prefers-reduced-motion: reduce) { .bwl-scene.bwl-flick .bwl-glow, .bwl-scene.bwl-flick .bwl-filament, .bwl-scene.bwl-flick .bwl-glass, .bwl-scene.bwl-idleflick .bwl-glow, .bwl-scene.bwl-idleflick .bwl-filament, .bwl-scene.bwl-idleflick .bwl-glass { animation: none; } }

.bwl-status { min-height: 20px; color: var(--theme-muted, #6f6350); font-size: 14px; font-weight: 600; margin-top: 12px; text-align: center; }
.bwl-status b { color: var(--theme-text, #241c10); }

/* button + effects */
.bwl-pickbtn-wrap { text-align: center; }
.bwl-pickbtn-main { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; font-size: 15px; font-weight: 800; color: #fff;
    padding: 13px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--bwl-grad-a, #f7a02a), var(--bwl-grad-b, #c26a00));
    box-shadow: 0 12px 24px -8px var(--bwl-accent, #e8880c), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, filter .15s; }
.bwl-pickbtn-main:hover { transform: translateY(-2px); filter: brightness(1.05); }
.bwl-pickbtn-main:disabled, .bwl-pickbtn-main.is-busy { opacity: .6; cursor: default; transform: none; filter: grayscale(.2); }

.bwl-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.bwl-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bwl-items-ta { width: 100%; min-height: 220px; font-family: monospace; font-size: .9rem; line-height: 1.55; border-radius: 10px; border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); padding: 10px 12px; resize: vertical; }
.bwl-items-ta:focus { outline: 2px solid var(--bwl-accent, #e8880c); outline-offset: 1px; border-color: transparent; }

.page-bwl-scope {
    --wsp-result-accent: var(--bwl-accent, #e8880c);
    --wsp-result-grad: linear-gradient(135deg, var(--bwl-grad-a, #f7a02a), var(--bwl-grad-b, #c26a00));
    --wsp-result-plate: color-mix(in srgb, var(--bwl-accent, #e8880c) 13%, #fff);
}

/* ── SEO content (.bwl-content) — type scale from .content-guide; colour only ── */
.bwl-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.bwl-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.bwl-content h2, .bwl-content h3 { color: var(--theme-text, #1a1a2e); }
.bwl-content p, .bwl-content li { color: var(--theme-muted, #5b6470); }
.bwl-content strong { color: var(--theme-text, #1a1a2e); }
.bwl-content a { color: #c26a00; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.bwl-kicker-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #f7a02a, #c26a00); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.bwl-content .bwl-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.25rem; }
.bwl-section { margin-top: 2.9rem; }
.bwl-content .table { font-size: 1rem; }
.bwl-content .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; font-weight: 800; color: #fff; background: #c26a00; padding: .7rem 1rem; }
.bwl-content .table tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--theme-border, #e9ecef); vertical-align: top; }
.bwl-content .table tbody td:first-child { font-weight: 700; color: var(--theme-text, #1a1a2e); white-space: nowrap; }
.bwl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.bwl-pair-card { background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; border-top: 3px solid #f7a02a; }
.bwl-pair-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; } .bwl-pair-card p:last-child { margin-bottom: 0; font-size: .92rem; }
.bwl-faq { margin-top: 1.4rem; }
.bwl-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--theme-border, #e9ecef); }
.bwl-faq .accordion-button { background: transparent; color: var(--theme-text, #1a1a2e); font-weight: 600; padding-left: 0; padding-right: 2.5rem; box-shadow: none; }
.bwl-faq .accordion-button:not(.collapsed) { color: #c26a00; background: transparent; }
.bwl-faq .accordion-button:focus { box-shadow: none; }
.bwl-faq .accordion-body { padding-left: 0; color: var(--theme-muted, #5b6470); }
@media (max-width: 767.98px) { .bwl-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .bwl-content p, body[data-theme="high-contrast"] .bwl-content li, body[data-theme="high-contrast"] .bwl-content .bwl-lead { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .bwl-content h2, body[data-theme="high-contrast"] .bwl-content h3 { color: #fff; }
