/* THW CVE Tracker Styles - v3.1 */

/* HIDE THEME BREADCRUMBS (but not ours) */
.breadcrumbs:not(.thw-breadcrumbs),
.breadcrumb:not(.thw-breadcrumbs),
nav.woocommerce-breadcrumb {
    display: none !important;
}

/* ========================================
   BREADCRUMBS - CVE Tracker
   ======================================== */
nav.thw-breadcrumbs {
    display: block !important;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #111;
    border: 1px solid #222;
    font-size: 0.85em;
}

nav.thw-breadcrumbs ol,
.thw-breadcrumbs ol,
nav.thw-breadcrumbs > ol {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    counter-reset: none !important;
}

nav.thw-breadcrumbs ol li,
.thw-breadcrumbs ol li,
nav.thw-breadcrumbs > ol > li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    counter-increment: none !important;
}

nav.thw-breadcrumbs ol li::before,
.thw-breadcrumbs ol li::before,
nav.thw-breadcrumbs > ol > li::before {
    content: none !important;
    display: none !important;
    counter-increment: none !important;
}

nav.thw-breadcrumbs ol li::marker,
.thw-breadcrumbs ol li::marker {
    content: none !important;
    content: "" !important;
    display: none !important;
    font-size: 0 !important;
    color: transparent !important;
}

nav.thw-breadcrumbs li.thw-breadcrumb-sep {
    color: #444;
    margin: 0 10px !important;
    font-size: 1.1em;
}

nav.thw-breadcrumbs a {
    color: #00ff41;
    text-decoration: none;
    transition: color 0.2s;
}

nav.thw-breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

nav.thw-breadcrumbs span[itemprop="name"] {
    color: #888;
}

nav.thw-breadcrumbs li:last-child span[itemprop="name"] {
    color: #fff;
}

/* ========================================
   LAST UPDATED TIMESTAMP
   ======================================== */
.thw-last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    color: #555;
    padding: 8px 12px;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    margin-bottom: 15px;
}

.thw-last-updated svg {
    color: #00ff41;
    flex-shrink: 0;
}

.thw-last-updated time {
    color: #888;
}

.thw-last-updated .thw-feed-link {
    margin-left: auto;
    color: #ff8c00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.thw-last-updated .thw-feed-link:hover {
    color: #ffaa00;
}

/* HIDE PAGE TITLE ON CVE TRACKER PAGES */
/* The shortcode container provides its own title */
body.thw-cve-page .thw-single-header,
body.thw-cve-page .entry-header,
body.thw-cve-page .page-header,
body.thw-cve-tracker-page .thw-single-header,
body.thw-cve-vendor-page .thw-single-header {
    display: none !important;
}

/* ========================================
   CONTAINER - Enhanced
   ======================================== */
div.thw-cve-container {
    font-family: 'Courier New', Courier, monospace;
    max-width: 100%;
    color: #fff;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 25px;
    border-radius: 4px;
}

/* Header Row with Stats */
.thw-cve-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid #00ff41;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

h3.thw-cve-main-title {
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3.thw-cve-main-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    animation: thw-blink 1.5s infinite;
}

@keyframes thw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Stats Bar */
.thw-cve-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thw-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: #888;
    font-weight: 500;
}

.thw-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: thw-pulse-dot 2s infinite;
}

.thw-stat-dot.critical {
    background: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}

.thw-stat-dot.high {
    background: #ff8c00;
    box-shadow: 0 0 6px #ff8c00;
}

.thw-stat-item.thw-stat-critical {
    color: #ff6666;
}

.thw-stat-item.thw-stat-high {
    color: #ffaa55;
}

@keyframes thw-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* ========================================
   SEARCH BAR - Premium Design
   ======================================== */
div.thw-cve-search-bar {
    margin-bottom: 20px;
    background: #111;
    padding: 15px;
    border: 1px solid #222;
}

div.thw-cve-search-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.thw-search-input-wrap {
    position: relative;
    flex-grow: 1;
    min-width: 200px;
}

.thw-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    pointer-events: none;
    transition: color 0.2s;
}

div.thw-cve-search-bar input[type="text"] {
    background: #000 !important;
    border: 2px solid #333 !important;
    color: #00ff41 !important;
    padding: 14px 14px 14px 45px !important;
    width: 100%;
    border-radius: 0 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 15px !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

div.thw-cve-search-bar input[type="text"]::placeholder {
    color: #444 !important;
}

div.thw-cve-search-bar input[type="text"]:focus {
    border-color: #00ff41 !important;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 10px rgba(0, 255, 65, 0.05) !important;
}

.thw-search-input-wrap:focus-within .thw-search-icon {
    color: #00ff41;
}

div.thw-cve-search-bar button {
    background: #00ff41 !important;
    color: #000 !important;
    border: 2px solid #00ff41 !important;
    padding: 14px 25px !important;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace !important;
    cursor: pointer;
    border-radius: 0 !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

div.thw-cve-search-bar button:hover {
    background: #000 !important;
    color: #00ff41 !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

a.thw-reset-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 0.85em;
    border: 2px solid #333;
    padding: 12px 15px;
    background: #000;
    white-space: nowrap;
    transition: all 0.2s;
}

a.thw-reset-link:hover {
    background: #111;
    border-color: #00ff41;
}

/* ========================================
   POPULAR VENDORS - Enhanced
   ======================================== */
div.thw-popular-vendors {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #111;
    border: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

div.thw-popular-vendors span {
    color: #666;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

div.thw-popular-vendors a {
    display: inline-block;
    background: #000;
    border: 1px solid #333;
    color: #00ff41;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

div.thw-popular-vendors a:hover {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* ========================================
   POPULAR CVEs - Enhanced
   ======================================== */
div.thw-popular-cves {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #111;
    border: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

div.thw-popular-cves span {
    color: #666;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

div.thw-popular-cves a {
    display: inline-block;
    background: #1a0000;
    border: 1px solid #440000;
    color: #ff4500;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

div.thw-popular-cves a:hover {
    background: #ff4500;
    color: #000;
    border-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
    transform: translateY(-1px);
}

/* ========================================
   SEVERITY FILTER TABS - Premium
   ======================================== */
.thw-severity-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #111;
    border: 1px solid #222;
    padding: 5px;
}

.thw-severity-tab {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.thw-severity-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00ff41;
    transition: all 0.2s;
    transform: translateX(-50%);
}

.thw-severity-tab:hover {
    color: #fff;
}

.thw-severity-tab:hover::after {
    width: 80%;
}

.thw-severity-tab.active {
    color: #00ff41;
    font-weight: bold;
}

.thw-severity-tab.active::after {
    width: 100%;
    background: #00ff41;
}

.thw-severity-tab[data-severity="critical"].active {
    color: #ff0000;
}

.thw-severity-tab[data-severity="critical"].active::after {
    background: #ff0000;
}

.thw-severity-tab[data-severity="high"].active {
    color: #ff8c00;
}

.thw-severity-tab[data-severity="high"].active::after {
    background: #ff8c00;
}

.thw-severity-tab[data-severity="medium"].active {
    color: #ffeb3b;
}

.thw-severity-tab[data-severity="medium"].active::after {
    background: #ffeb3b;
}

.thw-tab-count {
    background: #222;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: #666;
}

.thw-severity-tab:hover .thw-tab-count {
    background: #333;
    color: #aaa;
}

.thw-severity-tab.active .thw-tab-count {
    background: rgba(0, 255, 65, 0.2);
    color: inherit;
}

.thw-severity-tab[data-severity="critical"].active .thw-tab-count {
    background: rgba(255, 0, 0, 0.2);
}

.thw-severity-tab[data-severity="high"].active .thw-tab-count {
    background: rgba(255, 140, 0, 0.2);
}

.thw-severity-tab[data-severity="medium"].active .thw-tab-count {
    background: rgba(255, 235, 59, 0.2);
}


/* ========================================
   CVE LIST - Premium Cards
   ======================================== */
div.thw-cve-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

div.thw-cve-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #111 100%);
    border: 1px solid #222;
    padding: 18px 20px;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

div.thw-cve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.2s;
}

div.thw-cve-card:hover {
    border-color: #333;
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(0, 255, 65, 0.1);
}

/* Severity Colors */
div.thw-cve-card.severity-critical::before { background: #ff0000; box-shadow: 0 0 15px #ff0000; }
div.thw-cve-card.severity-high::before { background: #ff8c00; box-shadow: 0 0 10px #ff8c00; }
div.thw-cve-card.severity-medium::before { background: #ffeb3b; }
div.thw-cve-card.severity-low::before { background: #00ff41; }
div.thw-cve-card.severity-info::before { background: #666; }

/* Critical Card Special */
div.thw-cve-card.severity-critical {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 100%);
}

div.thw-cve-card.severity-critical:hover {
    box-shadow: -4px 0 25px rgba(255, 0, 0, 0.15), 0 0 30px rgba(255, 0, 0, 0.05);
}

div.thw-cve-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

div.thw-cve-id-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* NEW BADGE - Enhanced */
.thw-new-badge {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #000;
    font-size: 0.6em;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: thw-pulse-new 2s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

@keyframes thw-pulse-new {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(0, 255, 65, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 5px rgba(0, 255, 65, 0.2); }
}

/* UPDATED/MODIFIED BADGE */
.thw-modified-badge {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: #000;
    font-size: 0.6em;
    font-weight: bold;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

a.thw-cve-id {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

a.thw-cve-id:hover {
    color: #00ff41;
}

/* CVSS Badge - Enhanced */
span.thw-cve-badge {
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

span.thw-cve-badge.critical {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

span.thw-cve-badge.high {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    color: #000;
}

span.thw-cve-badge.medium {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    color: #000;
}

span.thw-cve-badge.low {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #000;
}

span.thw-cve-badge.info {
    background: #444;
    color: #ccc;
}

div.thw-cve-body {
    padding-left: 0;
}

div.thw-cve-body p {
    color: #888;
    font-size: 0.9em;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

div.thw-cve-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #1a1a1a;
}

span.thw-cve-date {
    font-size: 0.75em;
    color: #555;
    font-style: normal;
}

/* ========================================
   NO RESULTS / ERROR STATE - Enhanced
   ======================================== */
.thw-cve-error,
.thw-no-filter-results {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 1px solid #222;
    margin: 20px 0;
}

.thw-error-icon {
    margin-bottom: 20px;
    animation: thw-pulse-icon 2s infinite;
}

@keyframes thw-pulse-icon {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.thw-error-icon svg {
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.3));
}

.thw-error-title {
    color: #fff;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.thw-error-message {
    color: #888;
    font-size: 1em;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.thw-error-message strong {
    color: #00ff41;
}

.thw-error-hint {
    color: #555;
    font-size: 0.9em;
    margin: 0 0 25px 0;
    font-style: italic;
}

.thw-error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.thw-btn-primary {
    display: inline-block;
    background: #00ff41;
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00ff41;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

.thw-btn-primary:hover {
    background: transparent;
    color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.thw-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #888;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #333;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}

.thw-btn-secondary:hover {
    border-color: #00ff41;
    color: #00ff41;
}

.thw-no-filter-results p {
    color: #666;
    margin: 0 0 20px 0;
}

/* ========================================
   PAGINATION - Enhanced
   ======================================== */
div.thw-cve-pagination {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

a.thw-page-btn {
    background: #111;
    border: 2px solid #333;
    color: #00ff41;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 1px;
    transition: all 0.2s;
}

a.thw-page-btn:hover {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

span.thw-page-info {
    color: #555;
    font-size: 0.85em;
    padding: 10px 15px;
    background: #111;
    border: 1px solid #222;
}

/* ========================================
   COPY BUTTON
   ======================================== */
.thw-copy-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #00ff41;
    padding: 6px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.thw-copy-btn:hover {
    background: #00ff41;
    color: #000;
}

.thw-copy-btn.copied {
    background: #00ff41;
    color: #000;
}

.thw-copy-btn.failed {
    background: #ff0000;
    color: #fff;
}


/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    div.thw-cve-container {
        padding: 15px;
    }

    .thw-cve-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    h3.thw-cve-main-title {
        font-size: 1.1em;
        letter-spacing: 1px;
    }

    .thw-cve-stats {
        gap: 15px;
    }

    .thw-stat-item {
        font-size: 0.75em;
    }

    div.thw-cve-search-bar {
        padding: 12px;
    }

    div.thw-cve-search-bar form {
        flex-direction: column;
        align-items: stretch;
    }

    .thw-search-input-wrap {
        width: 100%;
    }

    div.thw-cve-search-bar button {
        width: 100%;
    }

    a.thw-reset-link {
        text-align: center;
    }

    div.thw-popular-vendors {
        justify-content: center;
        padding: 10px;
    }

    div.thw-popular-vendors span {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    div.thw-popular-vendors a {
        flex: 1 1 auto;
        text-align: center;
        min-width: 70px;
        padding: 5px 10px;
    }

    .thw-severity-tabs {
        flex-wrap: wrap;
        padding: 3px;
    }

    .thw-severity-tab {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 60px;
        padding: 8px 10px;
        font-size: 0.75em;
    }

    div.thw-cve-card {
        padding: 15px;
    }

    div.thw-cve-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    div.thw-cve-id-wrap {
        width: 100%;
    }

    a.thw-cve-id {
        font-size: 1em;
    }

    span.thw-cve-badge {
        align-self: flex-start;
    }

    div.thw-cve-body p {
        font-size: 0.85em;
    }

    div.thw-cve-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    div.thw-cve-pagination {
        flex-direction: column;
        gap: 10px;
    }

    a.thw-page-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    div.thw-cve-container {
        padding: 12px;
        border: none;
    }

    div.thw-cve-card {
        padding: 12px;
    }

    .thw-severity-tab {
        font-size: 0.7em;
        padding: 6px 8px;
    }

    .thw-tab-count {
        display: none;
    }

    div.thw-popular-vendors a {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    h3.thw-cve-main-title::before {
        display: none;
    }

    .thw-cve-stats {
        display: none;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.thw-cve-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.thw-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #222;
    border-top-color: #00ff41;
    border-radius: 50%;
    animation: thw-spin 1s linear infinite;
}

@keyframes thw-spin {
    to { transform: rotate(360deg); }
}

.thw-loading-text {
    color: #666;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* ========================================
   KEYBOARD HINT
   ======================================== */
.thw-keyboard-hint {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    font-size: 0.75em;
    color: #666;
    z-index: 100;
}

.thw-keyboard-hint kbd {
    background: #222;
    border: 1px solid #444;
    padding: 2px 6px;
    margin: 0 3px;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

@media (min-width: 1024px) {
    .thw-keyboard-hint {
        display: block;
    }
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */
/* Clickable card effect */
div.thw-cve-card {
    cursor: pointer;
}

div.thw-cve-card:active {
    transform: translateX(2px);
}

/* Severity indicator glow on hover */
div.thw-cve-card.severity-critical:hover::before {
    box-shadow: 0 0 25px #ff0000, 0 0 40px rgba(255, 0, 0, 0.3);
}

div.thw-cve-card.severity-high:hover::before {
    box-shadow: 0 0 20px #ff8c00, 0 0 30px rgba(255, 140, 0, 0.3);
}

/* Card link styling */
div.thw-cve-card a.thw-cve-id::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

div.thw-cve-card:hover a.thw-cve-id::after {
    opacity: 1;
}

/* ========================================
   TOOLTIP STYLES
   ======================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.thw-scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #333;
    color: #00ff41;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

.thw-scroll-top:hover {
    background: #00ff41;
    color: #000;
}

.thw-scroll-top.visible {
    display: flex;
}


/* ========================================
   SINGLE CVE PAGE STYLES
   ======================================== */
article.thw-cve-single {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    color: #e0e0e0;
    display: block !important;
    overflow: visible !important;
}

article.thw-cve-single * {
    visibility: visible !important;
}

.thw-cve-single-header {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

div.thw-cve-single-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
}

div.thw-cve-single-body > * {
    display: block !important;
    visibility: visible !important;
}

div.thw-cve-single-body h3 {
    color: #fff !important;
    font-size: 1.2em;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    display: block !important;
}

div.thw-cve-single-body h3:first-child {
    margin-top: 0;
}

div.thw-cve-single-body p,
p.thw-cve-description {
    display: block !important;
    visibility: visible !important;
    color: #ccc !important;
    line-height: 1.7;
    font-size: 1em;
}

/* Ensure all sections are visible */
.thw-cve-vector-panel,
.thw-cve-cpes,
.thw-cve-weaknesses,
.thw-cve-references,
.thw-cve-external-resources,
.thw-cve-actions {
    display: block !important;
    visibility: visible !important;
}

.thw-cve-description {
    color: #ccc;
    line-height: 1.7;
    font-size: 1em;
}

.thw-cve-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.thw-cve-date {
    color: #888;
    font-size: 0.9em;
}

.thw-cve-score-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.thw-vector-string {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thw-vector-string strong {
    color: #fff;
}

/* ========================================
   PRINT STYLESHEET
   ======================================== */
@media print {
    /* Reset colors for print */
    body, .thw-cve-container, .thw-cve-single {
        background: #fff !important;
        color: #000 !important;
    }
    
    /* Hide non-essential elements */
    .thw-cve-search-bar,
    .thw-popular-vendors,
    .thw-popular-cves,
    .thw-severity-tabs,
    .thw-cve-pagination,
    .thw-share-buttons,
    .thw-copy-btn,
    .thw-cve-external-resources,
    .thw-cve-actions,
    .thw-scroll-top,
    .thw-keyboard-hint,
    .thw-last-updated .thw-feed-link,
    .thw-new-badge,
    .thw-modified-badge,
    header,
    footer,
    nav,
    .sidebar,
    #sidebar,
    .thw-cve-stats {
        display: none !important;
    }
    
    /* Show breadcrumbs for context */
    nav.thw-breadcrumbs {
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
    }
    
    nav.thw-breadcrumbs a {
        color: #000 !important;
    }
    
    /* Container styling */
    .thw-cve-container {
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    /* Title */
    h3.thw-cve-main-title {
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        font-size: 1.5em !important;
    }
    
    h3.thw-cve-main-title::before {
        display: none !important;
    }
    
    /* CVE Cards */
    .thw-cve-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 15px !important;
    }
    
    .thw-cve-card::before {
        display: none !important;
    }
    
    a.thw-cve-id {
        color: #000 !important;
        font-weight: bold !important;
    }
    
    .thw-cve-body p {
        color: #333 !important;
    }
    
    .thw-cve-date {
        color: #666 !important;
    }
    
    /* Badges */
    .thw-cve-badge {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .thw-cve-badge.critical {
        border-color: #ff0000 !important;
        color: #ff0000 !important;
    }
    
    .thw-cve-badge.high {
        border-color: #ff8c00 !important;
        color: #ff8c00 !important;
    }
    
    /* Single CVE Page */
    .thw-cve-single {
        border: none !important;
        padding: 0 !important;
    }
    
    .thw-cve-single-header {
        border-bottom: 2px solid #000 !important;
    }
    
    .thw-cve-title {
        color: #000 !important;
    }
    
    .thw-cve-badge-lg {
        border: 2px solid currentColor !important;
        background: #fff !important;
    }
    
    .thw-score-circle {
        border-color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    
    .thw-score-circle span {
        color: #000 !important;
    }
    
    .thw-vector-string {
        color: #333 !important;
    }
    
    .thw-cve-vector-panel {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }
    
    .thw-vector-item {
        background: #fff !important;
        border: 1px solid #ddd !important;
    }
    
    .thw-vector-val {
        color: #000 !important;
    }
    
    .thw-cve-references a {
        color: #000 !important;
    }
    
    .thw-cve-references a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Last updated - show timestamp only */
    .thw-last-updated {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        color: #666 !important;
    }
    
    .thw-last-updated svg {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 1.5cm;
    }
    
    /* Add URL after links */
    .thw-cve-single a[href^="http"]::after {
        content: " [" attr(href) "]";
        font-size: 0.7em;
        color: #666;
        word-break: break-all;
    }
}
