/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: #00ff00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
main {
    position: relative;
    z-index: 1;
}

.site-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.85rem 0;
    border-bottom: 1px solid #00ff00;
    position: sticky;
    top: 0;
    z-index: 100;
    /* expose height so the search bar can stack beneath it */
    --site-header-h: 72px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-title {
    font-size: 2rem;
    flex-shrink: 0;
}

.site-title a {
    color: #00ff00;
    font-weight: bold;
}

.site-nav {
    flex: 1;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-nav a {
    color: #ccc;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.site-nav a:hover {
    color: #00ff00;
}

.vulnetix-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.vulnetix-brand:hover {
    opacity: 1;
    text-decoration: none;
    text-shadow: none;
}

.vulnetix-brand img {
    display: block;
}

/* Burger button — hidden on desktop, shown on mobile */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
    transition: transform 0.2s, opacity 0.2s;
}

.burger-btn.burger-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.burger-open span:nth-child(2) {
    opacity: 0;
}
.burger-btn.burger-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile "Powered by Vulnesis" — hidden on desktop */
.vulnetix-mobile-brand {
    display: none;
}

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    border-top: 1px solid #00ff00;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

/* Breach Page Styles */
.breach-page {
    background: rgba(0, 0, 0, 0.9);
}

.breach-header {
    border-bottom: 1px solid #00ff00;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.breach-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff00;
}

.breach-source {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.breach-source:hover {
    background: rgba(0, 255, 0, 0.2);
}

.breach-content h2 {
    color: #00ff00;
    margin-bottom: 1rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 0.5rem;
}

.breach-notes {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 0;
    margin-bottom: 2rem;
}

.breach-technical h2 {
    color: #00ff00;
    margin-bottom: 1rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 0.5rem;
}

.breach-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 0;
}

.breach-details dt {
    font-weight: bold;
    color: #00ff00;
}

.breach-details dd {
    margin-bottom: 0.5rem;
}

/* ── Breach card header (badges row) ────────────────────────────── */
.breach-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 1rem 0;
}

/* ── Category badges (on cards and detail page) ─────────────────── */
.breach-category-badge {
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}
.breach-category-badge--ransomware  { border-color: rgba(255, 60, 60, 0.5);  color: #ff6060; background: rgba(255,60,60,0.08); }
.breach-category-badge--data-leak   { border-color: rgba(60, 180, 255, 0.5); color: #3cb4ff; background: rgba(60,180,255,0.08); }
.breach-category-badge--supply-chain{ border-color: rgba(255, 165, 0, 0.5);  color: #ffa500; background: rgba(255,165,0,0.08); }
.breach-category-badge--credential-theft { border-color: rgba(255,200,0,0.5); color: #ffc800; background: rgba(255,200,0,0.08); }
.breach-category-badge--ai           { border-color: rgba(180, 60, 255, 0.5); color: #b43cff; background: rgba(180,60,255,0.08); }
.breach-category-badge--cloud        { border-color: rgba(60, 160, 255, 0.5); color: #3ca0ff; background: rgba(60,160,255,0.08); }
.breach-category-badge--cryptocurrency { border-color: rgba(0, 200, 150, 0.5); color: #00c896; background: rgba(0,200,150,0.08); }
.breach-category-badge--other       { border-color: rgba(160,160,160,0.4);   color: #aaa;    background: rgba(160,160,160,0.08); }

/* ── Generic micro badges ────────────────────────────────────────── */
.breach-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}
.breach-badge--supply { background: rgba(255,165,0,0.12); color: #ffa500; }
.breach-badge--loss   { background: rgba(255,60,60,0.12);  color: #ff8080; }


    background: rgba(0, 0, 0, 0.9);
}

.section-header {
    border-bottom: 1px solid #00ff00;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-count {
    background: rgba(0, 255, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.section-description {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.breach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.breach-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.05s, box-shadow 0.05s;
}

.breach-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4), inset 0 0 8px rgba(0, 255, 0, 0.05);
}

.breach-card-title {
    font-size: 1.5rem;
    margin: 0;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
}

.breach-card-title a {
    color: #00ff00;
    display: block;
}

.breach-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
}

.breach-date {
    font-size: 0.85rem;
    color: #aaa;
}

.breach-malware-tag,
.breach-cve-tag,
.breach-vendor-tag,
.breach-loss-tag,
.breach-blockchain-tag {
    font-size: 0.72rem;
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0,255,0,0.2);
    padding: 0.12rem 0.35rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.breach-loss-tag      { color: #ff8080; border-color: rgba(255,60,60,0.3);  background: rgba(255,60,60,0.08); }
.breach-vendor-tag    { color: #aad4ff; border-color: rgba(100,160,255,0.3); background: rgba(100,160,255,0.06); }
.breach-blockchain-tag{ color: #ffa500; border-color: rgba(255,165,0,0.3);  background: rgba(255,165,0,0.06); }

/* ── Attack vector line on cards ───────────────────────────────────── */
.breach-card-vector {
    padding: 0 1rem 0.4rem;
    font-size: 0.8rem;
    color: rgba(0,255,0,0.65);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    border-left: 2px solid rgba(0,255,0,0.2);
    margin: 0 1rem 0.5rem;
    padding: 0.25rem 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vector-label {
    color: rgba(0,255,0,0.4);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    margin-right: 0.3rem;
}


.breach-card-excerpt {
    padding: 0 1rem 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.breach-card-link {
    display: block;
    margin: 0 1rem 1rem;
    text-align: right;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.9rem;
}

.breach-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 1rem;
    gap: 0.5rem;
}

.breach-card-actions .breach-card-link {
    display: inline;
    margin: 0;
    padding: 0;
}

.breach-card-source {
    font-size: 0.85rem;
    color: rgba(0, 255, 0, 0.6);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    white-space: nowrap;
}

/* ── Breach detail page: header badges ───────────────────────────────────── */
.breach-header-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* ── Breach detail page: meta row ────────────────────────────────────────── */
.breach-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.breach-meta span {
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0,255,0,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}
.breach-meta .breach-vendor  { color: #aad4ff; border-color: rgba(100,160,255,0.3); }
.breach-meta .breach-blockchain { color: #ffa500; border-color: rgba(255,165,0,0.3); }
.breach-meta .breach-malware { color: #ff8080; border-color: rgba(255,60,60,0.3); }
.breach-meta .breach-cve     { color: #ffd080; border-color: rgba(255,200,0,0.3); }

/* ── Impact panel ─────────────────────────────────────────────────────────── */
.breach-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(0,255,0,0.2);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.impact-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.impact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(0,255,0,0.5);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}
.impact-value {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    line-height: 1.1;
}
.impact-raw {
    font-size: 0.72rem;
    color: #888;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}
.impact-stat--loss      .impact-value { color: #ff6060; }
.impact-stat--recovered .impact-value { color: #60d060; }
.impact-stat--affected  .impact-value { color: #60b4ff; }
.impact-stat--blockchain .impact-value { font-size: 1rem; color: #ffa500; margin-top: 0.3rem; }

/* ── CVE links in technical details ─────────────────────────────────────── */
.cve-link {
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 0.2rem;
    background: rgba(255,200,0,0.1);
    border: 1px solid rgba(255,200,0,0.3);
    color: #ffd080;
    padding: 0.15rem 0.4rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    text-decoration: none;
}
.cve-link:hover { background: rgba(255,200,0,0.2); }

/* ── Technical details grid ─────────────────────────────────────────────── */
.breach-vector { color: rgba(0,255,0,0.8); }
.breach-malware-detail { color: #ff8080; }

/* ── Timeline section ────────────────────────────────────────────────────── */
.breach-timeline-section {
    margin-top: 2rem;
}
.breach-timeline-section h2 {
    color: #00ff00;
    margin-bottom: 1rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 0.5rem;
}
.breach-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.breach-timeline::before {
    content: '';
    position: absolute;
    left: 4.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0,255,0,0.25);
}
.timeline-event {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 0 0.6rem 0.5rem;
    position: relative;
}
.timeline-event::before {
    content: '';
    position: absolute;
    left: 4.3rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00;
}
.timeline-date {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ff00;
    min-width: 4rem;
    text-align: right;
}
.timeline-label {
    font-size: 0.9rem;
    color: #ccc;
    padding-left: 1.5rem;
}
.timeline-event--breach      .timeline-date { color: #ff6060; }
.timeline-event--breach::before              { background: #ff6060; box-shadow: 0 0 6px #ff6060; }
.timeline-event--disclosure  .timeline-date { color: #ffa500; }
.timeline-event--disclosure::before          { background: #ffa500; box-shadow: 0 0 6px #ffa500; }
.timeline-event--notification .timeline-date { color: #60d060; }
.timeline-event--notification::before        { background: #60d060; box-shadow: 0 0 6px #60d060; }

/* ── Homepage stat card variants ──────────────────────────────────────────── */
.stat-card--loss h3 { color: #ff8080; }
.stat-card--ai h3 { color: #b43cff; }
.stat-card--cloud h3 { color: #3ca0ff; }

/* ── Browse controls (sort + load more) ──────────────────────────────────── */
.browse-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sort-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: #888;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.05s, color 0.05s;
}

.sort-btn:hover {
    border-color: rgba(0, 255, 0, 0.5);
    color: #ccc;
}

.sort-btn--active {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.08);
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.load-more-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 2rem;
    cursor: pointer;
}

.load-more-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.breach-card-wrapper {
    display: block;
}

/* Homepage Styles */
.home-hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.home-tagline {
    font-size: 1.75rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.home-sub-subtitle {
    font-size: 1rem;
    color: #ccc;
    max-width: 640px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.home-recent {
    background: rgba(0, 0, 0, 0.8);
}

.home-stats {
    background: rgba(0, 0, 0, 0.9);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00ff00;
    text-align: center;
}

.home-stats {
    background: rgba(0, 0, 0, 0.9);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 0;
    text-align: center;
    padding: 0.75rem 1rem;
}

.stat-card h3 {
    font-size: 1.75rem;
    color: #00ff00;
    margin-bottom: 0.15rem;
}

.stat-card p {
    color: #ccc;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show burger, hide desktop Vulnesis logo */
    .burger-btn     { display: flex; }
    .vulnetix-brand { display: none; }

    /* Header row: title left, burger right — no wrapping */
    .header-inner {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
    }

    /* Nav drawer — hidden by default, drops below the sticky header */
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        border-bottom: 1px solid #00ff00;
        padding: 1.5rem 1rem 1.25rem;
        flex-direction: column;
        z-index: 99;
    }

    .site-nav.nav-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    /* "Powered by Vulnesis" footer inside mobile drawer */
    .vulnetix-mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 255, 0, 0.2);
        opacity: 0.75;
        font-size: 0.8rem;
        color: #ccc;
        text-decoration: none;
        transition: opacity 0.15s;
    }

    .vulnetix-mobile-brand:hover {
        opacity: 1;
        text-decoration: none;
    }

    .vulnetix-mobile-brand span {
        color: #ccc;
    }

    .breach-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-subtitle {
        font-size: 1.1rem;
    }
}
/* ── Contribute section ──────────────────────────────────────── */
.home-contribute {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #00ff00;
}

.contribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contribute-step {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 0;
    transition: border-color 0.05s;
}

.contribute-step:hover {
    border-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.contribute-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    color: #00ff00;
    font-weight: 700;
    border-radius: 0;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
}

.contribute-step-num::before { content: '['; color: rgba(0,255,0,0.5); }
.contribute-step-num::after  { content: ']'; color: rgba(0,255,0,0.5); }

.contribute-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #00ff00;
}

.contribute-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.contribute-step code {
    font-size: 0.85em;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 0.1em 0.35em;
    border-radius: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.contribute-schema {
    margin: 2rem 0;
}

.contribute-schema h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #00ff00;
}

.contribute-schema pre {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
}

.contribute-schema pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.contribute-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contribute-grid {
        grid-template-columns: 1fr;
    }

    .contribute-cta {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════════════
   TERMINAL SEARCH BAR  — 1970s phosphor-green CRT aesthetic
   ══════════════════════════════════════════════════════════════ */

/* ── Sub-header search bar ─────────────────────────────────── */
.terminal-search-bar {
    background: #000;
    border-bottom: 2px solid #00ff00;
    padding: 0.55rem 0 0.45rem;
    position: sticky;
    top: var(--site-header-h, 72px); /* sits just below the site-header */
    z-index: 99;
    /* CRT scanline overlay */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.025) 2px,
            rgba(0, 255, 0, 0.025) 4px
        );
    /* Subtle phosphor glow on the whole bar */
    box-shadow:
        0 2px 18px rgba(0, 255, 0, 0.12),
        inset 0 -1px 0 rgba(0, 255, 0, 0.08);
}

.terminal-search-inner {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* ── Prompt label ───────────────────────────────────────────── */
.terminal-search-prompt {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    line-height: 1;
    color: #00cc00;
}

.terminal-prompt-host   { color: #00ff00; text-shadow: 0 0 6px rgba(0,255,0,0.7); }
.terminal-prompt-sep    { color: #555; }
.terminal-prompt-dir    { color: #00aaff; }
.terminal-prompt-dollar { color: #888; margin: 0 2px; }
.terminal-prompt-cmd    { color: #ffff00; letter-spacing: 0.04em; }
.terminal-prompt-pipe   { color: #555; margin: 0 2px; }
.terminal-prompt-grep   { color: #ff9900; }

/* ── The actual input ───────────────────────────────────────── */
.terminal-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    caret-color: transparent;          /* we fake the caret with CSS */
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1;
    padding: 0.1rem 0.35rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.55);
    letter-spacing: 0.03em;
    -webkit-appearance: none;
    appearance: none;
}

.terminal-search-input::placeholder {
    color: rgba(0, 255, 0, 0.28);
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Remove browser's default search decoration */
.terminal-search-input::-webkit-search-cancel-button,
.terminal-search-input::-webkit-search-decoration { display: none; }

/* ── Fake blinking block cursor ─────────────────────────────── */
.terminal-search-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    background: #00ff00;
    opacity: 0;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: -2px;
    box-shadow: 0 0 6px #00ff00;
    animation: termCursorBlink 1.1s step-end infinite;
    pointer-events: none;
}

.terminal-search-input:focus ~ .terminal-search-cursor {
    opacity: 1;
}

@keyframes termCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── ESC hint ────────────────────────────────────────────────── */
.terminal-search-esc {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    color: #444;
    border: 1px solid #333;
    padding: 0.05rem 0.3rem;
    border-radius: 0;
    margin-left: 0.75rem;
    flex-shrink: 0;
    user-select: none;
    transition: color 0.05s, border-color 0.05s;
}

.terminal-search-input:focus ~ .terminal-search-cursor ~ .terminal-search-esc,
.terminal-search-input:focus + .terminal-search-cursor + .terminal-search-esc {
    color: #00aa44;
    border-color: #00aa44;
}

/* ── Filter hint row ─────────────────────────────────────────── */
.terminal-search-hint {
    margin-top: 0.3rem;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    color: #444;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    user-select: none;
    padding-left: 0.1rem;
}

.hint-label {
    color: #2a6a2a;
    letter-spacing: 0.08em;
    margin-right: 0.2rem;
}

.hint-tag {
    color: #00aa44;
    border: 1px solid #1a4a1a;
    padding: 0.05rem 0.4rem;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.05s, border-color 0.05s, background 0.05s;
    letter-spacing: 0.02em;
}

.hint-tag:hover {
    color: #00ff00;
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.07);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.hint-sep {
    color: #333;
    font-style: italic;
    margin-left: 0.25rem;
}

/* ── Focus glow on the whole bar ────────────────────────────── */
.terminal-search-bar:focus-within {
    box-shadow:
        0 2px 24px rgba(0, 255, 0, 0.22),
        inset 0 -1px 0 rgba(0, 255, 0, 0.15);
    border-bottom-color: #00ff00;
}

.terminal-search-bar:focus-within .terminal-search-hint {
    color: #2a6a2a;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH RESULTS OVERLAY
   ══════════════════════════════════════════════════════════════ */

.search-results-overlay {
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 2px solid rgba(0, 255, 0, 0.35);
    padding: 1rem 0 1.5rem;
    /* CRT phosphor scanlines */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 255, 0, 0.018) 3px,
            rgba(0, 255, 0, 0.018) 4px
        );
    box-shadow: 0 8px 40px rgba(0, 255, 0, 0.12);
    animation: overlayDrop 0.15s ease-out;
    max-height: 70vh;
    overflow-y: auto;
    /* custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #00aa44 #000;
}

.search-results-overlay::-webkit-scrollbar       { width: 6px; }
.search-results-overlay::-webkit-scrollbar-track  { background: #000; }
.search-results-overlay::-webkit-scrollbar-thumb  { background: #00aa44; }

@keyframes overlayDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Results header row ─────────────────────────────────────── */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

.search-results-status {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #00aa44;
    letter-spacing: 0.08em;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.35);
}

.search-results-close {
    background: none;
    border: 1px solid #1a4a1a;
    color: #00aa44;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    padding: 0.15rem 0.6rem;
    cursor: pointer;
    border-radius: 0;
    letter-spacing: 0.08em;
    transition: all 0.05s;
}

.search-results-close:hover {
    color: #ff4444;
    border-color: #ff4444;
    text-shadow: 0 0 6px rgba(255, 68, 68, 0.6);
}

/* ── Results list ────────────────────────────────────────────── */
.search-results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.search-result-item {
    border: 1px solid rgba(0, 255, 0, 0.07);
    border-radius: 0;
    transition: background 0.05s, border-color 0.05s;
}

.search-result-item:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
}

.sr-link {
    display: block;
    padding: 0.55rem 0.75rem;
    color: inherit;
    text-decoration: none;
}

.sr-link:hover { text-decoration: none; }

.sr-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.sr-index {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #2a5a2a;
    flex-shrink: 0;
    user-select: none;
}

.sr-title {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.88rem;
    color: #00ff00;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.3);
    word-break: break-word;
}

.sr-link:hover .sr-title {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

.sr-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.sr-date {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #555;
}

.sr-tag {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    padding: 0.05rem 0.35rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sr-category {
    background: rgba(0, 255, 0, 0.08);
    color: #00aa44;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.sr-malware {
    background: rgba(255, 80, 0, 0.08);
    color: #ff8844;
    border: 1px solid rgba(255, 80, 0, 0.25);
}

.sr-domain {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #00aaff;
    opacity: 0.7;
}

.sr-excerpt {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #4a7a4a;
    line-height: 1.5;
    word-break: break-word;
}

.sr-excerpt mark {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border-radius: 0;
    padding: 0 1px;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.5);
}

.search-result-more {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #335533;
    padding: 0.4rem 0.75rem;
    font-style: italic;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 0, 0.08);
    margin-top: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .terminal-search-bar {
        top: auto;
        position: relative;
    }

    .terminal-search-prompt {
        font-size: 0.7rem;
    }

    .terminal-prompt-cmd,
    .terminal-prompt-pipe,
    .terminal-prompt-grep {
        display: none;
    }

    .terminal-search-esc {
        display: none;
    }

    .terminal-search-input {
        font-size: 1rem; /* iOS doesn't zoom if ≥16px... but 1rem is fine */
    }

    .terminal-search-hint {
        font-size: 0.62rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   1970s CRT / RETRO TERMINAL OVERRIDES
   ══════════════════════════════════════════════════════════════ */

/* CRT scanline overlay on entire page */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* Phosphor vignette effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Card title — terminal header bar style */
.breach-card-title {
    background: rgba(0, 255, 0, 0.05);
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

/* Retro text glow on headings */
.site-title a,
.section-title,
.breach-title,
.home-tagline {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6), 0 0 2px rgba(0, 255, 0, 0.3);
}

/* Card link arrows — retro style */
.breach-card-link {
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.4);
}

.breach-card-source {
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.3);
}

/* Scrollbar — retro hard-edged */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; border-left: 1px solid rgba(0,255,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(0,255,0,0.25); border: 1px solid rgba(0,255,0,0.3); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,0,0.4); }

/* Stat card hover — hard glow, no lift */
.stat-card {
    transition: border-color 0.05s;
}
.stat-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

/* Badge brackets for retro look */
.breach-category-badge::before { content: '[ '; opacity: 0.5; }
.breach-category-badge::after  { content: ' ]'; opacity: 0.5; }

/* Card border-left accent strip */
.breach-card {
    border-left: 2px solid rgba(0, 255, 0, 0.3);
}
.breach-card:hover {
    border-left-color: #00ff00;
}
