/*
Theme Name: BreachWatch
Theme URI: https://breachwatch.io
Author: BreachWatch Team
Author URI: https://breachwatch.io
Description: A premium WordPress theme for data breach directories and cybersecurity help forums. Features a real-time breach monitoring dashboard, breach severity scoring, company impact cards, exposed data tracking, breach timeline visualization, security forum with reputation system, and one-click demo import with 20+ AI-generated images and 120+ pieces of demo content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: breachwatch
Tags: dark, cybersecurity, forum, directory, data-breach, security, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    --bw-bg: #060b14;
    --bw-bg-secondary: #0b1120;
    --bw-bg-tertiary: #111827;
    --bw-bg-card: #0f172a;
    --bw-bg-card-hover: #162032;
    --bw-bg-elevated: #1e293b;
    --bw-bg-input: #0d1117;
    --bw-text: #e2e8f0;
    --bw-text-secondary: #94a3b8;
    --bw-text-muted: #64748b;
    --bw-text-inverse: #060b14;
    --bw-orange: #f97316;
    --bw-orange-glow: rgba(249,115,22,0.3);
    --bw-orange-dark: #c2410c;
    --bw-red: #ef4444;
    --bw-red-glow: rgba(239,68,68,0.3);
    --bw-cyan: #06b6d4;
    --bw-cyan-glow: rgba(6,182,212,0.3);
    --bw-green: #22c55e;
    --bw-green-glow: rgba(34,197,94,0.3);
    --bw-amber: #f59e0b;
    --bw-amber-glow: rgba(245,158,11,0.3);
    --bw-purple: #a855f7;
    --bw-blue: #3b82f6;
    --bw-critical: #ef4444;
    --bw-high: #f97316;
    --bw-medium: #f59e0b;
    --bw-low: #22c55e;
    --bw-info: #06b6d4;
    --bw-border: #1e293b;
    --bw-border-hover: #334155;
    --bw-border-orange: rgba(249,115,22,0.3);
    --bw-border-cyan: rgba(6,182,212,0.3);
    --bw-radius-sm: 4px;
    --bw-radius: 8px;
    --bw-radius-lg: 12px;
    --bw-radius-xl: 16px;
    --bw-radius-full: 9999px;
    --bw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bw-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --bw-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --bw-transition: 0.2s ease;
    --bw-transition-slow: 0.4s ease;
    --bw-shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --bw-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.4);
    --bw-shadow-orange: 0 0 20px rgba(249,115,22,0.15);
    --bw-shadow-cyan: 0 0 20px rgba(6,182,212,0.15);
    --bw-glow-orange: 0 0 30px rgba(249,115,22,0.2), 0 0 60px rgba(249,115,22,0.1);
    --bw-glow-red: 0 0 30px rgba(239,68,68,0.2), 0 0 60px rgba(239,68,68,0.1);
    --bw-max-width: 1400px;
    --bw-content-width: 900px;
    --bw-sidebar-width: 360px;
    --bw-header-height: 70px;
}

body.bw-light {
    --bw-bg: #f8fafc;
    --bw-bg-secondary: #f1f5f9;
    --bw-bg-tertiary: #e2e8f0;
    --bw-bg-card: #ffffff;
    --bw-bg-card-hover: #f8fafc;
    --bw-bg-elevated: #ffffff;
    --bw-bg-input: #f1f5f9;
    --bw-text: #0f172a;
    --bw-text-secondary: #475569;
    --bw-text-muted: #94a3b8;
    --bw-border: #e2e8f0;
    --bw-border-hover: #cbd5e1;
    --bw-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --bw-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--bw-font-body);
    background: var(--bw-bg);
    color: var(--bw-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
a { color: var(--bw-orange); text-decoration: none; transition: color var(--bw-transition); }
a:hover { color: var(--bw-cyan); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bw-font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--bw-text);
    letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--bw-text-secondary); }
code, pre, kbd { font-family: var(--bw-font-mono); }
pre {
    background: var(--bw-bg);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
}
code { background: var(--bw-bg-tertiary); padding: 0.15em 0.4em; border-radius: var(--bw-radius-sm); font-size: 0.875em; color: var(--bw-orange); }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
blockquote {
    border-left: 4px solid var(--bw-orange);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bw-bg-card);
    border-radius: 0 var(--bw-radius) var(--bw-radius) 0;
    color: var(--bw-text-secondary);
    font-style: italic;
}

/* ============================================
   LAYOUT
   ============================================ */
.bw-container { max-width: var(--bw-max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.bw-grid { display: grid; gap: 1.5rem; }
.bw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bw-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bw-content-sidebar { display: grid; grid-template-columns: 1fr var(--bw-sidebar-width); gap: 2rem; align-items: start; }

/* ============================================
   SCANLINE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.02) 3px, rgba(0,0,0,0.02) 6px);
    opacity: 0.4;
}
body.bw-light::before { opacity: 0; }

/* ============================================
   HEADER
   ============================================ */
.bw-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 11, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bw-border);
    height: var(--bw-header-height);
}
body.bw-light .bw-header { background: rgba(248, 250, 252, 0.92); }
.bw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--bw-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.bw-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--bw-font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bw-text);
    letter-spacing: -0.02em;
}
.bw-logo-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.bw-logo-icon svg { width: 34px; height: 34px; }
.bw-logo .bw-logo-breach { color: var(--bw-orange); }
.bw-logo .bw-logo-watch { color: var(--bw-cyan); }

/* Breach counter in header */
.bw-breach-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--bw-radius);
    font-family: var(--bw-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bw-red);
    animation: counter-pulse 3s ease-in-out infinite;
}
.bw-breach-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bw-red);
    animation: dot-blink 1.5s ease-in-out infinite;
}
@keyframes counter-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes dot-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }

/* Navigation */
.bw-nav { display: flex; align-items: center; }
.bw-nav-list { display: flex; list-style: none; align-items: center; gap: 0; }
.bw-nav-list li { position: relative; }
.bw-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    color: var(--bw-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--bw-transition);
    border-radius: var(--bw-radius);
    white-space: nowrap;
}
.bw-nav-list li a:hover,
.bw-nav-list li.current-menu-item a,
.bw-nav-list li.current-menu-parent a {
    color: var(--bw-orange);
    background: rgba(249, 115, 22, 0.06);
}
.bw-nav-list li .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    padding: 0.5rem;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bw-transition);
    box-shadow: var(--bw-shadow-lg);
    list-style: none;
    z-index: 100;
}
.bw-nav-list li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bw-nav-list li .sub-menu li a { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

/* Header actions */
.bw-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.bw-header-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--bw-radius);
    background: transparent;
    border: 1px solid var(--bw-border);
    color: var(--bw-text-secondary);
    cursor: pointer;
    transition: all var(--bw-transition);
}
.bw-header-btn:hover { background: var(--bw-bg-card); color: var(--bw-orange); border-color: var(--bw-border-orange); }
.bw-header-btn svg { width: 20px; height: 20px; }
.bw-search-trigger {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bw-bg-input);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    color: var(--bw-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--bw-transition);
    min-width: 200px;
}
.bw-search-trigger:hover { border-color: var(--bw-border-orange); }
.bw-search-trigger kbd {
    font-family: var(--bw-font-mono);
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    background: var(--bw-bg-tertiary);
    border-radius: 3px;
    border: 1px solid var(--bw-border);
    margin-left: auto;
}
.bw-mobile-toggle {
    display: none;
    background: none; border: none;
    color: var(--bw-text); cursor: pointer;
    padding: 0.5rem;
}
.bw-mobile-toggle svg { width: 24px; height: 24px; }

/* ============================================
   HERO SECTION
   ============================================ */
.bw-hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bw-bg) 0%, var(--bw-bg-secondary) 100%);
}
.bw-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}
.bw-hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(249,115,22,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}
.bw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.bw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--bw-radius-full);
    font-family: var(--bw-font-mono);
    font-size: 0.75rem;
    color: var(--bw-red);
    margin-bottom: 1.5rem;
    animation: counter-pulse 3s ease-in-out infinite;
}
.bw-hero-badge .pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bw-red);
    animation: dot-blink 1s infinite;
}
.bw-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.bw-hero h1 .text-orange { color: var(--bw-orange); }
.bw-hero h1 .text-cyan { color: var(--bw-cyan); }
.bw-hero-subtitle {
    font-size: 1.2rem;
    color: var(--bw-text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.bw-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Breach stats bar */
.bw-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}
.bw-stat-card {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--bw-transition);
}
.bw-stat-card:hover {
    border-color: var(--bw-border-orange);
    transform: translateY(-2px);
    box-shadow: var(--bw-shadow-orange);
}
.bw-stat-value {
    font-family: var(--bw-font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--bw-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.bw-stat-label {
    font-size: 0.8rem;
    color: var(--bw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   BUTTONS
   ============================================ */
.bw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--bw-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--bw-transition);
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--bw-font-body);
    line-height: 1.4;
}
.bw-btn svg { width: 18px; height: 18px; }
.bw-btn-primary {
    background: var(--bw-orange);
    color: white;
    border-color: var(--bw-orange);
}
.bw-btn-primary:hover { background: var(--bw-orange-dark); color: white; box-shadow: var(--bw-glow-orange); transform: translateY(-1px); }
.bw-btn-secondary {
    background: transparent;
    color: var(--bw-cyan);
    border-color: var(--bw-cyan);
}
.bw-btn-secondary:hover { background: rgba(6,182,212,0.1); color: var(--bw-cyan); }
.bw-btn-ghost {
    background: transparent;
    color: var(--bw-text-secondary);
    border-color: var(--bw-border);
}
.bw-btn-ghost:hover { background: var(--bw-bg-card); color: var(--bw-text); border-color: var(--bw-border-hover); }
.bw-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.bw-btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.bw-btn-danger { background: var(--bw-red); color: white; border-color: var(--bw-red); }
.bw-btn-danger:hover { box-shadow: var(--bw-glow-red); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.bw-section { padding: 4rem 0; }
.bw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.bw-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bw-section-title .title-icon {
    width: 32px; height: 32px;
    color: var(--bw-orange);
}
.bw-section-link {
    color: var(--bw-orange);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.bw-section-link:hover { color: var(--bw-cyan); }

/* ============================================
   BREACH CARDS (DIRECTORY)
   ============================================ */
.bw-breach-card {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
    transition: all var(--bw-transition-slow);
    position: relative;
}
.bw-breach-card:hover {
    border-color: var(--bw-border-orange);
    transform: translateY(-3px);
    box-shadow: var(--bw-shadow-orange);
}
.bw-breach-card-severity {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.bw-breach-card-severity.severity-critical { background: var(--bw-critical); box-shadow: 0 0 10px var(--bw-red-glow); }
.bw-breach-card-severity.severity-high { background: var(--bw-high); }
.bw-breach-card-severity.severity-medium { background: var(--bw-medium); }
.bw-breach-card-severity.severity-low { background: var(--bw-low); }
.bw-breach-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.bw-breach-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--bw-transition-slow);
}
.bw-breach-card:hover .bw-breach-card-image img { transform: scale(1.05); }
.bw-breach-card-image .bw-severity-badge {
    position: absolute;
    top: 12px; right: 12px;
}
.bw-breach-card-body { padding: 1.25rem; }
.bw-breach-card-company {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bw-text);
}
.bw-breach-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--bw-text-muted);
}
.bw-breach-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.bw-breach-card-meta svg { width: 14px; height: 14px; }
.bw-breach-card-excerpt {
    font-size: 0.85rem;
    color: var(--bw-text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bw-breach-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.bw-breach-tag {
    padding: 0.15rem 0.5rem;
    background: var(--bw-bg-tertiary);
    border-radius: var(--bw-radius-sm);
    font-size: 0.7rem;
    color: var(--bw-text-muted);
    font-family: var(--bw-font-mono);
}
.bw-breach-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bw-border);
}
.bw-records-count {
    font-family: var(--bw-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bw-orange);
}
.bw-breach-score {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--bw-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}
.bw-breach-score-bar {
    width: 60px; height: 6px;
    background: var(--bw-bg-tertiary);
    border-radius: var(--bw-radius-full);
    overflow: hidden;
}
.bw-breach-score-fill { height: 100%; border-radius: var(--bw-radius-full); transition: width 1s ease; }

/* ============================================
   SEVERITY BADGES
   ============================================ */
.bw-severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--bw-radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--bw-font-mono);
}
.bw-severity-critical { background: rgba(239,68,68,0.15); color: var(--bw-critical); border: 1px solid rgba(239,68,68,0.3); }
.bw-severity-high { background: rgba(249,115,22,0.15); color: var(--bw-high); border: 1px solid rgba(249,115,22,0.3); }
.bw-severity-medium { background: rgba(245,158,11,0.15); color: var(--bw-medium); border: 1px solid rgba(245,158,11,0.3); }
.bw-severity-low { background: rgba(34,197,94,0.15); color: var(--bw-low); border: 1px solid rgba(34,197,94,0.3); }
.bw-severity-info { background: rgba(6,182,212,0.15); color: var(--bw-info); border: 1px solid rgba(6,182,212,0.3); }

/* ============================================
   BADGES (GENERAL)
   ============================================ */
.bw-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--bw-radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}
.bw-badge-pinned { background: rgba(249,115,22,0.15); color: var(--bw-orange); }
.bw-badge-solved { background: rgba(34,197,94,0.15); color: var(--bw-green); }
.bw-badge-critical { background: rgba(239,68,68,0.15); color: var(--bw-red); }
.bw-badge-info { background: rgba(6,182,212,0.15); color: var(--bw-cyan); }

/* ============================================
   BREACH TIMELINE
   ============================================ */
.bw-timeline {
    position: relative;
    padding-left: 2rem;
}
.bw-timeline::before {
    content: '';
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--bw-orange), var(--bw-cyan), var(--bw-green));
}
.bw-timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}
.bw-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bw-orange);
    border: 3px solid var(--bw-bg);
    z-index: 1;
}
.bw-timeline-date {
    font-family: var(--bw-font-mono);
    font-size: 0.75rem;
    color: var(--bw-text-muted);
    margin-bottom: 0.25rem;
}
.bw-timeline-content {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    padding: 1rem;
}
.bw-timeline-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.bw-timeline-desc { font-size: 0.85rem; color: var(--bw-text-secondary); margin-bottom: 0; }

/* ============================================
   FORUM CATEGORIES
   ============================================ */
.bw-forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.bw-forum-cat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    transition: all var(--bw-transition);
    text-decoration: none;
}
.bw-forum-cat:hover {
    border-color: var(--bw-border-orange);
    transform: translateY(-2px);
    box-shadow: var(--bw-shadow-orange);
}
.bw-forum-cat-icon {
    width: 48px; height: 48px;
    border-radius: var(--bw-radius);
    display: flex; align-items: center; justify-content: center;
    background: rgba(249,115,22,0.1);
    color: var(--bw-orange);
    flex-shrink: 0;
}
.bw-forum-cat-icon svg { width: 24px; height: 24px; }
.bw-forum-cat-info { flex: 1; min-width: 0; }
.bw-forum-cat-name { font-weight: 600; font-size: 0.95rem; color: var(--bw-text); margin-bottom: 0.15rem; }
.bw-forum-cat-desc { font-size: 0.8rem; color: var(--bw-text-muted); margin-bottom: 0; }
.bw-forum-cat-count {
    font-family: var(--bw-font-mono);
    font-size: 0.8rem;
    color: var(--bw-text-muted);
    flex-shrink: 0;
}

/* ============================================
   TOPIC LIST
   ============================================ */
.bw-topic-list { display: flex; flex-direction: column; gap: 0; }
.bw-topic-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    transition: all var(--bw-transition);
    margin-bottom: 0.5rem;
}
.bw-topic-item:hover { border-color: var(--bw-border-orange); background: var(--bw-bg-card-hover); }
.bw-topic-item.is-pinned { border-left: 3px solid var(--bw-orange); }
.bw-topic-item.is-solved { border-left: 3px solid var(--bw-green); }
.bw-topic-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bw-border);
}
.bw-topic-info { min-width: 0; }
.bw-topic-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.bw-topic-title a { color: var(--bw-text); }
.bw-topic-title a:hover { color: var(--bw-orange); }
.bw-topic-byline { font-size: 0.8rem; color: var(--bw-text-muted); }
.bw-topic-activity { text-align: center; min-width: 80px; }
.bw-topic-replies-count { font-family: var(--bw-font-mono); font-size: 1.1rem; font-weight: 700; color: var(--bw-orange); }
.bw-topic-replies-label { font-size: 0.7rem; color: var(--bw-text-muted); text-transform: uppercase; }
.bw-topic-views { text-align: center; min-width: 70px; }
.bw-topic-views-count { font-family: var(--bw-font-mono); font-size: 0.9rem; color: var(--bw-text-secondary); }
.bw-topic-views-label { font-size: 0.7rem; color: var(--bw-text-muted); text-transform: uppercase; }

/* ============================================
   SINGLE TOPIC / REPLIES
   ============================================ */
.bw-topic-single { max-width: var(--bw-max-width); margin: 0 auto; padding: 2rem 1.5rem; }
.bw-topic-header {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}
.bw-topic-header h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.bw-topic-header-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--bw-text-muted); }
.bw-reply {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color var(--bw-transition);
}
.bw-reply:hover { border-color: var(--bw-border-hover); }
.bw-reply.is-best-answer { border-color: var(--bw-green); background: rgba(34,197,94,0.03); }
.bw-reply-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.bw-reply-author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bw-border);
}
.bw-reply-author { flex: 1; }
.bw-reply-author-name { font-weight: 600; font-size: 0.9rem; color: var(--bw-text); }
.bw-reply-author-role {
    font-size: 0.7rem;
    color: var(--bw-orange);
    font-family: var(--bw-font-mono);
    text-transform: uppercase;
}
.bw-reply-date { font-size: 0.8rem; color: var(--bw-text-muted); }
.bw-reply-body { font-size: 0.95rem; line-height: 1.7; color: var(--bw-text-secondary); }
.bw-reply-body p { margin-bottom: 0.75rem; }
.bw-reply-footer { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--bw-border); }
.bw-reply-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Vote buttons */
.bw-vote-btn {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: var(--bw-bg-tertiary);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    color: var(--bw-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--bw-transition);
}
.bw-vote-btn:hover { color: var(--bw-orange); border-color: var(--bw-border-orange); }
.bw-vote-btn svg { width: 14px; height: 14px; }
.vote-count { font-family: var(--bw-font-mono); font-weight: 600; }

/* Reply form */
.bw-reply-form {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}
.bw-reply-form h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.bw-form-group { margin-bottom: 1rem; }
.bw-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bw-text-secondary);
    margin-bottom: 0.4rem;
}
.bw-form-group textarea,
.bw-form-group input[type="text"],
.bw-form-group input[type="email"],
.bw-form-group input[type="url"],
.bw-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bw-bg-input);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    color: var(--bw-text);
    font-family: var(--bw-font-body);
    font-size: 0.9rem;
    transition: border-color var(--bw-transition);
}
.bw-form-group textarea:focus,
.bw-form-group input:focus,
.bw-form-group select:focus {
    outline: none;
    border-color: var(--bw-orange);
    box-shadow: 0 0 0 3px var(--bw-orange-glow);
}
.bw-form-group textarea { min-height: 150px; resize: vertical; }

/* New topic form */
.bw-new-topic-form {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.bw-card {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
    transition: all var(--bw-transition-slow);
}
.bw-card:hover {
    border-color: var(--bw-border-orange);
    transform: translateY(-3px);
    box-shadow: var(--bw-shadow-orange);
}
.bw-card-image {
    height: 200px;
    overflow: hidden;
}
.bw-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--bw-transition-slow);
}
.bw-card:hover .bw-card-image img { transform: scale(1.05); }
.bw-card-body { padding: 1.25rem; }
.bw-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--bw-text-muted);
}
.bw-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.bw-card-title a { color: var(--bw-text); }
.bw-card-title a:hover { color: var(--bw-orange); }
.bw-card-excerpt {
    font-size: 0.85rem;
    color: var(--bw-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.bw-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.bw-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bw-border);
    font-size: 0.8rem;
    color: var(--bw-text-muted);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.bw-article {
    max-width: var(--bw-content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.bw-article-header { margin-bottom: 2rem; }
.bw-article-featured {
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 500px;
}
.bw-article-featured img { width: 100%; height: 100%; object-fit: cover; }
.bw-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--bw-text-muted);
}
.bw-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--bw-text-secondary);
}
.bw-article-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; color: var(--bw-text); }
.bw-article-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; color: var(--bw-text); }
.bw-article-content p { margin-bottom: 1.25rem; }
.bw-article-content ul, .bw-article-content ol { margin: 1rem 0; padding-left: 1.5rem; color: var(--bw-text-secondary); }
.bw-article-content li { margin-bottom: 0.5rem; }

/* ============================================
   SINGLE BREACH ANALYSIS
   ============================================ */
.bw-analysis-header {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}
.bw-analysis-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.bw-analysis-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.bw-analysis-meta-item {
    background: var(--bw-bg-tertiary);
    border-radius: var(--bw-radius);
    padding: 1rem;
}
.bw-analysis-meta-label {
    font-size: 0.7rem;
    color: var(--bw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}
.bw-analysis-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bw-text);
}

/* Exposed data types */
.bw-exposed-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.bw-data-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--bw-radius-sm);
    font-size: 0.75rem;
    color: var(--bw-red);
    font-family: var(--bw-font-mono);
}

/* Breach score display */
.bw-breach-score-display {
    text-align: center;
    padding: 1.5rem;
}
.bw-breach-score-circle {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.5rem;
    font-family: var(--bw-font-mono);
    font-size: 2rem;
    font-weight: 800;
    border: 4px solid;
}
.bw-score-critical { border-color: var(--bw-critical); color: var(--bw-critical); background: rgba(239,68,68,0.05); }
.bw-score-high { border-color: var(--bw-high); color: var(--bw-high); background: rgba(249,115,22,0.05); }
.bw-score-medium { border-color: var(--bw-medium); color: var(--bw-medium); background: rgba(245,158,11,0.05); }
.bw-score-low { border-color: var(--bw-low); color: var(--bw-low); background: rgba(34,197,94,0.05); }

/* ============================================
   ALERT CARDS
   ============================================ */
.bw-alert-card {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 1.25rem;
    transition: all var(--bw-transition);
    position: relative;
    overflow: hidden;
}
.bw-alert-card:hover { border-color: var(--bw-border-orange); }
.bw-alert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
}
.bw-alert-card.severity-critical::before { background: var(--bw-critical); }
.bw-alert-card.severity-high::before { background: var(--bw-high); }
.bw-alert-card.severity-medium::before { background: var(--bw-medium); }
.bw-alert-card.severity-low::before { background: var(--bw-low); }
.bw-alert-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.bw-alert-title { font-size: 0.95rem; font-weight: 600; color: var(--bw-text); }
.bw-alert-type { font-size: 0.7rem; color: var(--bw-text-muted); font-family: var(--bw-font-mono); }
.bw-alert-meta { font-size: 0.8rem; color: var(--bw-text-muted); }

/* ============================================
   SEARCH MODAL
   ============================================ */
.bw-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
.bw-search-overlay.active { display: flex; }
.bw-search-modal {
    width: 90%;
    max-width: 640px;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
    box-shadow: var(--bw-shadow-lg);
}
.bw-search-input-wrap { display: flex; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--bw-border); }
.bw-search-input-wrap svg { width: 20px; height: 20px; color: var(--bw-text-muted); margin-right: 0.75rem; flex-shrink: 0; }
.bw-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--bw-text);
    font-size: 1rem;
    font-family: var(--bw-font-body);
    outline: none;
}
.bw-search-input::placeholder { color: var(--bw-text-muted); }
.bw-search-results { max-height: 400px; overflow-y: auto; padding: 0.5rem; }
.bw-search-results::-webkit-scrollbar { width: 6px; }
.bw-search-results::-webkit-scrollbar-track { background: transparent; }
.bw-search-results::-webkit-scrollbar-thumb { background: var(--bw-border); border-radius: 3px; }
.bw-search-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--bw-border); font-size: 0.75rem; color: var(--bw-text-muted); text-align: center; }

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */
.bw-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.bw-widget {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
}
.bw-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bw-border);
    color: var(--bw-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bw-widget-title svg { width: 18px; height: 18px; color: var(--bw-orange); }
.bw-widget-body { padding: 1rem 1.25rem; }

/* Trending breaches widget */
.bw-trending-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bw-border);
}
.bw-trending-item:last-child { border-bottom: none; }
.bw-trending-rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bw-bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bw-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bw-orange);
    flex-shrink: 0;
}
.bw-trending-info { flex: 1; min-width: 0; }
.bw-trending-name { font-size: 0.85rem; font-weight: 600; color: var(--bw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-trending-records { font-size: 0.75rem; color: var(--bw-text-muted); font-family: var(--bw-font-mono); }
.bw-trending-severity { flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */
.bw-footer {
    background: var(--bw-bg-secondary);
    border-top: 1px solid var(--bw-border);
    padding: 4rem 0 0;
    margin-top: 4rem;
}
.bw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.bw-footer-brand { }
.bw-footer-brand .bw-logo { margin-bottom: 1rem; }
.bw-footer-brand p { font-size: 0.85rem; color: var(--bw-text-muted); max-width: 300px; }
.bw-footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--bw-text);
}
.bw-footer-links { list-style: none; }
.bw-footer-links li { margin-bottom: 0.5rem; }
.bw-footer-links li a { color: var(--bw-text-muted); font-size: 0.85rem; transition: color var(--bw-transition); }
.bw-footer-links li a:hover { color: var(--bw-orange); }
.bw-footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.bw-footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bw-bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    color: var(--bw-text-muted);
    transition: all var(--bw-transition);
}
.bw-footer-social a:hover { background: var(--bw-orange); color: white; }
.bw-footer-social a svg { width: 16px; height: 16px; }
.bw-footer-bottom {
    border-top: 1px solid var(--bw-border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bw-text-muted);
}

/* ============================================
   ARCHIVE HEADERS
   ============================================ */
.bw-archive-header {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background: var(--bw-bg-secondary);
    border-bottom: 1px solid var(--bw-border);
}
.bw-archive-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}
.bw-archive-header-content { position: relative; z-index: 1; }
.bw-archive-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.bw-archive-header p { font-size: 1.1rem; color: var(--bw-text-secondary); max-width: 600px; }

/* ============================================
   FILTER BAR
   ============================================ */
.bw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
}
.bw-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--bw-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bw-text-muted);
    background: var(--bw-bg-tertiary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--bw-transition);
}
.bw-filter-btn:hover { color: var(--bw-text); border-color: var(--bw-border-hover); }
.bw-filter-btn.active { background: var(--bw-orange); color: white; border-color: var(--bw-orange); }

/* ============================================
   POST LIST (BLOG ARCHIVE)
   ============================================ */
.bw-post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.bw-post-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
    transition: all var(--bw-transition);
}
.bw-post-list-item:hover { border-color: var(--bw-border-orange); transform: translateY(-2px); box-shadow: var(--bw-shadow-orange); }
.bw-post-list-item .bw-card-image { height: 100%; min-height: 200px; }

/* ============================================
   COMMENTS
   ============================================ */
.bw-comments {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}
.bw-comments-title { font-size: 1.25rem; margin-bottom: 1.5rem; }
.bw-comment-list { list-style: none; }
.bw-comment-list .comment { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--bw-border); }
.bw-comment-list .comment:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bw-comment-inner { display: flex; gap: 1rem; }
.bw-comment-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.bw-comment-body { flex: 1; }
.bw-comment-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.bw-comment-author { font-weight: 600; font-size: 0.9rem; color: var(--bw-text); }
.bw-comment-date { font-size: 0.8rem; color: var(--bw-text-muted); }
.bw-comment-actions { margin-top: 0.5rem; }
.bw-comment-reply-link { font-size: 0.8rem; color: var(--bw-orange); font-weight: 500; }

/* ============================================
   404 PAGE
   ============================================ */
.bw-404 {
    text-align: center;
    padding: 6rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
.bw-404-terminal {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    padding: 2rem;
    font-family: var(--bw-font-mono);
    text-align: left;
    margin-bottom: 2rem;
}
.bw-404-code { font-size: 5rem; font-weight: 800; color: var(--bw-orange); font-family: var(--bw-font-mono); line-height: 1; margin-bottom: 1rem; }
.bw-404-terminal .prompt { color: var(--bw-green); }
.bw-404-terminal .error { color: var(--bw-red); }
.bw-404-terminal .info { color: var(--bw-cyan); }

/* ============================================
   SEARCH PAGE
   ============================================ */
.bw-search-page-header { padding: 3rem 0; background: var(--bw-bg-secondary); border-bottom: 1px solid var(--bw-border); margin-bottom: 2rem; }
.bw-search-form-inline {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin-top: 1rem;
}
.bw-search-form-inline input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bw-bg-input);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    color: var(--bw-text);
    font-size: 0.95rem;
}
.bw-search-form-inline input:focus { outline: none; border-color: var(--bw-orange); }

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.bw-page { max-width: var(--bw-content-width); margin: 0 auto; padding: 3rem 1.5rem; }
.bw-page-content { font-size: 1.05rem; line-height: 1.8; color: var(--bw-text-secondary); }

/* ============================================
   PAGINATION
   ============================================ */
.bw-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 3rem;
}
.bw-pagination a, .bw-pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--bw-radius);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--bw-border);
    color: var(--bw-text-secondary);
    transition: all var(--bw-transition);
}
.bw-pagination a:hover { border-color: var(--bw-orange); color: var(--bw-orange); }
.bw-pagination .current { background: var(--bw-orange); color: white; border-color: var(--bw-orange); }

/* ============================================
   TYPING CURSOR & GLITCH
   ============================================ */
.bw-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--bw-orange);
    animation: blink-cursor 0.8s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.bw-glitch {
    position: relative;
    display: inline-block;
}
.bw-glitch::before,
.bw-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.bw-glitch::before {
    color: var(--bw-red);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.bw-glitch::after {
    color: var(--bw-cyan);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}
@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -2px); }
    100% { transform: translate(0); }
}
@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 1px); }
    60% { transform: translate(1px, -1px); }
    80% { transform: translate(-1px, 2px); }
    100% { transform: translate(0); }
}

/* ============================================
   CODE COPY BUTTON
   ============================================ */
.bw-code-copy {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--bw-bg-elevated);
    color: var(--bw-text-secondary);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    padding: 4px 12px;
    font-size: 12px;
    font-family: var(--bw-font-mono);
    cursor: pointer;
    transition: all var(--bw-transition);
    z-index: 2;
    opacity: 0;
}
pre:hover .bw-code-copy { opacity: 1; }
.bw-code-copy:hover { background: var(--bw-green); color: var(--bw-bg); }
.bw-code-copy.copied { background: var(--bw-green); color: var(--bw-bg); opacity: 1; }

/* ============================================
   BREACH IMPACT METER
   ============================================ */
.bw-impact-meter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.bw-impact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bw-impact-label {
    width: 120px;
    font-size: 0.8rem;
    color: var(--bw-text-muted);
    flex-shrink: 0;
}
.bw-impact-bar {
    flex: 1;
    height: 8px;
    background: var(--bw-bg-tertiary);
    border-radius: var(--bw-radius-full);
    overflow: hidden;
}
.bw-impact-fill {
    height: 100%;
    border-radius: var(--bw-radius-full);
    transition: width 1.5s ease;
}
.bw-impact-fill.impact-critical { background: linear-gradient(90deg, var(--bw-red), #ff6b6b); }
.bw-impact-fill.impact-high { background: linear-gradient(90deg, var(--bw-high), #fb923c); }
.bw-impact-fill.impact-medium { background: linear-gradient(90deg, var(--bw-medium), #fbbf24); }
.bw-impact-fill.impact-low { background: linear-gradient(90deg, var(--bw-low), #4ade80); }
.bw-impact-value {
    width: 40px;
    text-align: right;
    font-family: var(--bw-font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bw-text-secondary);
}

/* ============================================
   LIVE BREACH FEED
   ============================================ */
.bw-live-feed {
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-lg);
    overflow: hidden;
}
.bw-live-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bw-border);
}
.bw-live-feed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.bw-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bw-red);
    animation: dot-blink 1s infinite;
}
.bw-feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--bw-border);
    font-size: 0.85rem;
    transition: background var(--bw-transition);
}
.bw-feed-item:hover { background: var(--bw-bg-card-hover); }
.bw-feed-item:last-child { border-bottom: none; }
.bw-feed-time {
    font-family: var(--bw-font-mono);
    font-size: 0.7rem;
    color: var(--bw-text-muted);
    flex-shrink: 0;
    width: 60px;
}
.bw-feed-text { flex: 1; color: var(--bw-text-secondary); }
.bw-feed-text strong { color: var(--bw-text); }

/* ============================================
   ANIMATIONS
   ============================================ */
.bw-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.bw-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.bw-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.bw-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.bw-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.bw-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.bw-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.bw-stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.bw-toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: var(--bw-bg-card);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--bw-shadow-lg);
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.bw-toast.show { transform: translateY(0); opacity: 1; }
.bw-toast-icon svg { width: 20px; height: 20px; }
.bw-toast-message { font-size: 0.85rem; color: var(--bw-text); }
.bw-toast-close { background: none; border: none; color: var(--bw-text-muted); cursor: pointer; padding: 0.25rem; margin-left: auto; }

/* ============================================
   MOBILE NAV
   ============================================ */
.bw-nav-mobile {
    display: none;
    position: fixed;
    top: var(--bw-header-height); left: 0; right: 0; bottom: 0;
    background: var(--bw-bg-secondary);
    z-index: 999;
    padding: 1.5rem;
    overflow-y: auto;
}
.bw-nav-mobile.active { display: block; }
.bw-nav-mobile .bw-nav-list { flex-direction: column; gap: 0.25rem; }
.bw-nav-mobile .bw-nav-list li a { padding: 0.75rem 1rem; font-size: 1rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .bw-content-sidebar { grid-template-columns: 1fr; }
    .bw-sidebar { display: none; }
    .bw-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .bw-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bw-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .bw-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .bw-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .bw-nav { display: none; }
    .bw-mobile-toggle { display: flex; }
    .bw-search-trigger { display: none; }
    .bw-breach-counter { display: none; }
    .bw-grid-2, .bw-grid-3, .bw-grid-4 { grid-template-columns: 1fr; }
    .bw-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .bw-hero h1 { font-size: 2rem; }
    .bw-hero { padding: 4rem 0 3rem; }
    .bw-section { padding: 2.5rem 0; }
    .bw-post-list-item { grid-template-columns: 1fr; }
    .bw-post-list-item .bw-card-image { height: 200px; }
    .bw-topic-item { grid-template-columns: auto 1fr; }
    .bw-topic-activity, .bw-topic-views { display: none; }
    .bw-footer-grid { grid-template-columns: 1fr; }
    .bw-analysis-meta-grid { grid-template-columns: 1fr; }
    .bw-forum-categories { grid-template-columns: 1fr; }
    .bw-archive-header h1 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
    .bw-hero h1 { font-size: 1.75rem; }
    .bw-hero-actions { flex-direction: column; align-items: center; }
    .bw-section-header { flex-direction: column; align-items: flex-start; }
    .bw-stats-bar { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bw-bg); }
::-webkit-scrollbar-thumb { background: var(--bw-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bw-border-hover); }

/* ============================================
   SELECTION
   ============================================ */
::selection { background: rgba(249,115,22,0.3); color: var(--bw-text); }

/* ============================================
   PRINT
   ============================================ */
@media print {
    .bw-header, .bw-footer, .bw-sidebar, .bw-search-overlay { display: none !important; }
    body { background: white; color: black; }
    body::before { display: none; }
    .bw-article-content { font-size: 12pt; }
}
