/**
 * CISO Platform — Light Theme Page Overrides
 * Fixes hardcoded dark colors on: darkweb, simulator, inbox, consultants, knowledge-hub
 */

/* ═══ DARKWEB SCANNER ═══ */
[data-theme="light"] .dw-scan-box { background: #fff !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] .dw-input { background: #f4f6f9 !important; border-color: rgba(0,0,0,.12) !important; color: #1a1a2e !important; }
[data-theme="light"] .dw-input::placeholder { color: rgba(0,0,0,.35) !important; }
[data-theme="light"] .dw-pill { border-color: rgba(0,0,0,.12) !important; color: #555 !important; }
[data-theme="light"] .dw-pill.active { background: rgba(0,136,170,.1) !important; border-color: rgba(0,136,170,.3) !important; color: #0088aa !important; }
[data-theme="light"] .dw-scan-btn { background: linear-gradient(135deg,rgba(0,136,170,.1),rgba(120,60,200,.08)) !important; border-color: rgba(0,136,170,.3) !important; color: #0088aa !important; }
[data-theme="light"] .dw-result-card { background: #fff !important; border: 1px solid rgba(0,0,0,.1) !important; }
[data-theme="light"] .dw-result-head { background: #f8f9fb !important; }
[data-theme="light"] .dw-risk-ring::after { background: #fff !important; }
[data-theme="light"] .dw-signal { border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .dw-signal-label { color: #1a1a2e !important; }
[data-theme="light"] .dw-signal-detail { color: #555 !important; }
[data-theme="light"] .dw-meta-chip { background: rgba(0,0,0,.04) !important; border-color: rgba(0,0,0,.08) !important; color: #666 !important; }
[data-theme="light"] .dw-intel-card { background: #fff !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] .dw-intel-strip { background: #f8f9fb !important; }
[data-theme="light"] .dw-history-item { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .dw-rec-item { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .dw-rec-num { color: #0088aa !important; }
[data-theme="light"] .dw-hero { color: #1a1a2e !important; }

/* ═══ SIMULATOR (stays dark by design — cybersecurity game UI) ═══ */
/* No changes — simulator intentionally stays dark in both modes */

/* ═══ INBOX / CONSULTANT MESSAGING ═══ */
[data-theme="light"] .ib-access-gate { background: #fff !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] .ib-conv-panel { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .ib-conv-head { background: #f8f9fb !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .ib-conv-head-meta { color: #666 !important; }
[data-theme="light"] .ib-empty { background: #fff !important; }
[data-theme="light"] .ib-empty-title { color: #1a1a2e !important; }
[data-theme="light"] .ib-empty-sub { color: #666 !important; }
[data-theme="light"] .ib-msg-bubble { color: #1a1a2e !important; }
[data-theme="light"] .ib-msg.ib-msg-in .ib-msg-bubble { background: #f4f6f9 !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .ib-msg.ib-msg-out .ib-msg-bubble { background: rgba(0,153,92,.06) !important; border-color: rgba(0,153,92,.15) !important; }
[data-theme="light"] .ib-msg-time { color: rgba(0,0,0,.4) !important; }
[data-theme="light"] .ib-action-btn { color: #555 !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] .ib-action-btn:hover { background: rgba(0,0,0,.04) !important; color: #1a1a2e !important; }
[data-theme="light"] .ib-closed-notice { background: rgba(0,0,0,.03) !important; color: #666 !important; }
[data-theme="light"] .ib-gate-btn-secondary { border-color: rgba(0,136,170,.3) !important; color: #0088aa !important; }

/* ═══ CONSULTANTS DIRECTORY ═══ */
[data-theme="light"] .cd-card { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .cd-card:hover { border-color: rgba(0,153,92,.2) !important; }
[data-theme="light"] .cd-card-head { background: #f8f9fb !important; }
[data-theme="light"] .cd-bio { color: #555 !important; }
[data-theme="light"] .cd-cert { background: rgba(0,0,0,.04) !important; color: #666 !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .cd-filter-btn { background: #fff !important; border-color: rgba(0,0,0,.12) !important; color: #555 !important; }
[data-theme="light"] .cd-filter-btn.active { background: rgba(0,153,92,.08) !important; border-color: rgba(0,153,92,.3) !important; color: #00995c !important; }
[data-theme="light"] .cd-filter-select { background: #fff !important; border-color: rgba(0,0,0,.12) !important; color: #1a1a2e !important; }
[data-theme="light"] .cd-hero { color: #1a1a2e !important; }
[data-theme="light"] .cd-cta-banner { background: linear-gradient(135deg,rgba(0,153,92,.06),rgba(0,136,170,.04)) !important; border-color: rgba(0,153,92,.15) !important; }
[data-theme="light"] .cd-cta-banner-title { color: #1a1a2e !important; }
[data-theme="light"] .cd-cta-banner-sub { color: #555 !important; }
[data-theme="light"] .cd-empty { background: #fff !important; }
[data-theme="light"] .cd-contact-btn { border-color: rgba(0,0,0,.12) !important; color: #555 !important; }

/* ═══ KNOWLEDGE HUB ═══ */
[data-theme="light"] .kh-hero { color: #1a1a2e !important; }
[data-theme="light"] .kh-card { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .kh-card:hover { border-color: rgba(0,153,92,.2) !important; }
[data-theme="light"] .kh-cat-btn { background: #fff !important; border-color: rgba(0,0,0,.12) !important; color: #555 !important; }
[data-theme="light"] .kh-cat-btn.active { background: rgba(0,153,92,.08) !important; color: #00995c !important; border-color: rgba(0,153,92,.3) !important; }

/* ═══ GLOBAL: Inline style overrides for dark-only text/bg ═══ */
/* Target elements using hardcoded #e8e8e8 text on pages (except footer) */
[data-theme="light"] h1[style*="color:#e8e8e8"],
[data-theme="light"] h2[style*="color:#e8e8e8"],
[data-theme="light"] h3[style*="color:#e8e8e8"],
[data-theme="light"] div[style*="color:#e8e8e8"],
[data-theme="light"] span[style*="color:#e8e8e8"],
[data-theme="light"] p[style*="color:#e8e8e8"] {
    color: #1a1a2e !important;
}

/* Dark backgrounds → white */
[data-theme="light"] div[style*="background:#0f1319"],
[data-theme="light"] div[style*="background:#0d1117"],
[data-theme="light"] div[style*="background:#060a0f"],
[data-theme="light"] section[style*="background:#0f1319"],
[data-theme="light"] section[style*="background:#0d1117"] {
    background: #fff !important;
    border-color: rgba(0,0,0,.1) !important;
}

/* ═══ GLOBAL: rgba(255,255,255) text → dark (catches ALL pages) ═══ */
[data-theme="light"] [style*="color:rgba(255,255,255,0.3"],
[data-theme="light"] [style*="color:rgba(255,255,255,.3"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.35"],
[data-theme="light"] [style*="color:rgba(255,255,255,.35"] {
    color: rgba(0,0,0,.35) !important;
}
[data-theme="light"] [style*="color:rgba(255,255,255,0.4"],
[data-theme="light"] [style*="color:rgba(255,255,255,.4"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.45"],
[data-theme="light"] [style*="color:rgba(255,255,255,.45"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.5"],
[data-theme="light"] [style*="color:rgba(255,255,255,.5"] {
    color: rgba(0,0,0,.45) !important;
}
[data-theme="light"] [style*="color:rgba(255,255,255,0.6"],
[data-theme="light"] [style*="color:rgba(255,255,255,.6"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.65"],
[data-theme="light"] [style*="color:rgba(255,255,255,.65"] {
    color: rgba(0,0,0,.55) !important;
}
[data-theme="light"] [style*="color:rgba(255,255,255,0.7"],
[data-theme="light"] [style*="color:rgba(255,255,255,.7"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.75"],
[data-theme="light"] [style*="color:rgba(255,255,255,.75"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.8"],
[data-theme="light"] [style*="color:rgba(255,255,255,.8"] {
    color: rgba(0,0,0,.7) !important;
}

/* Exclude footer from global rgba overrides — footer stays dark */
[data-theme="light"] .site-footer [style*="color:rgba(255,255,255"] {
    color: inherit !important;
}
