/* ============================================
   CVE 0-Day Monitor - Stylesheet
   Zintegrowany z główną stroną mosom.pl
   ============================================ */

:root {
    /* Colors - zgodne z główną stroną */
    --color-bg-light: #ffffff;
    --color-text-light: #1f2937;
    --color-bg-dark: #0f172a;
    --color-text-dark: #f1f5f9;
    --color-accent: #3b82f6;
    --color-accent-dark: #60a5fa;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Severity Colors */
    --color-critical: #dc2626;
    --color-high: #ea580c;
    --color-medium: #f59e0b;
    --color-low: #10b981;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-dark);
}

body.dark-mode a {
    color: var(--color-accent-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.admin-link {
    background: var(--gradient-primary);
    font-weight: 600;
}

.dark-mode-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.dark-mode-btn:hover {
    transform: scale(1.05);
    background-color: #2563eb;
}

/* ============================================
   HERO HEADER
   ============================================ */

.hero-header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.hero-sources {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.source-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ============================================
   ALERT BANNER
   ============================================ */

.alert-banner {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem;
    position: relative;
    animation: pulse-alert 2s ease-in-out infinite;
}

.alert-banner.hidden {
    display: none;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.alert-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
    transition: background-color var(--transition-fast);
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

body.dark-mode .tab-nav {
    border-bottom-color: #374151;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
    color: var(--color-text-light);
}

body.dark-mode .tab-btn {
    color: var(--color-text-dark);
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

body.dark-mode .stat-card {
    background: #1e293b;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.critical::before {
    background: var(--color-critical);
}

.stat-card.high::before {
    background: var(--color-high);
}

.stat-card.kev::before {
    background: var(--gradient-primary);
}

.stat-card.total::before {
    background: var(--color-accent);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

body.dark-mode .stat-info h3 {
    color: #9ca3af;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}

body.dark-mode .stat-value {
    color: var(--color-text-dark);
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   UPDATE INFO
   ============================================ */

.update-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

body.dark-mode .update-info {
    background: #1e293b;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.update-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.update-content p {
    font-size: 0.875rem;
    color: #6b7280;
}

body.dark-mode .update-content p {
    color: #9ca3af;
}

.refresh-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.refresh-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.refresh-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SECTION CARD
   ============================================ */

.section-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

body.dark-mode .section-card {
    background: #1e293b;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

body.dark-mode .section-title {
    color: var(--color-text-dark);
}

/* ============================================
   CVE LIST
   ============================================ */

.cve-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cve-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

body.dark-mode .cve-item {
    background: #0f172a;
}

.cve-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.cve-item.critical {
    border-left-color: var(--color-critical);
}

.cve-item.high {
    border-left-color: var(--color-high);
}

.cve-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cve-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.dark-mode .cve-title {
    color: var(--color-text-dark);
}

.cve-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.critical {
    background: var(--color-critical);
    color: white;
}

.badge.high {
    background: var(--color-high);
    color: white;
}

.badge.medium {
    background: var(--color-medium);
    color: white;
}

.badge.low {
    background: var(--color-low);
    color: white;
}

.badge.kev {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.badge.exploit {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
}

.badge.zdi {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.badge.fresh {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.cve-summary {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

body.dark-mode .cve-summary {
    color: #9ca3af;
}

.cve-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.cve-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cve-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

body.dark-mode .cve-footer {
    border-top-color: #374151;
}

.cve-flags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

body.dark-mode .flag {
    background: #374151;
    color: #d1d5db;
}

.cve-link {
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color var(--transition-fast);
}

.cve-link:hover {
    background-color: #2563eb;
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */

.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: white;
    color: var(--color-text-light);
}

body.dark-mode .search-input {
    background: #0f172a;
    color: var(--color-text-dark);
    border-color: #374151;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #2563eb;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

body.dark-mode .filter-group label {
    color: #d1d5db;
}

.filter-group select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9375rem;
    background: white;
    color: var(--color-text-light);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

body.dark-mode .filter-group select {
    background: #0f172a;
    color: var(--color-text-dark);
    border-color: #374151;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.clear-filters-btn {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-bottom: 1.5rem;
}

body.dark-mode .clear-filters-btn {
    background: #374151;
    color: #d1d5db;
}

.clear-filters-btn:hover {
    background: #d1d5db;
}

.search-results {
    margin-top: 2rem;
}

.results-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

body.dark-mode .results-count {
    color: #9ca3af;
}

.results-count span {
    font-weight: 700;
    color: var(--color-accent);
}

/* ============================================
   STATISTICS
   ============================================ */

.stats-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-detail-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
}

body.dark-mode .stat-detail-card {
    background: #0f172a;
}

.stat-detail-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

body.dark-mode .stat-detail-card h3 {
    color: var(--color-text-dark);
}

.stat-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 0.75rem;
}

.stat-bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

body.dark-mode .stat-bar-label {
    color: #d1d5db;
}

.stat-bar {
    background: #e5e7eb;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

body.dark-mode .stat-bar {
    background: #374151;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.stat-bar-fill.critical {
    background: var(--color-critical);
}

.stat-bar-fill.high {
    background: var(--color-high);
}

.stat-bar-fill.medium {
    background: var(--color-medium);
}

.stat-bar-fill.low {
    background: var(--color-low);
}

.stat-bar-value {
    font-weight: 700;
    color: var(--color-text-light);
    text-align: right;
}

body.dark-mode .stat-bar-value {
    color: var(--color-text-dark);
}

.sources-list,
.vendors-list,
.flags-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.source-stat,
.vendor-stat,
.flag-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
}

body.dark-mode .source-stat,
body.dark-mode .vendor-stat,
body.dark-mode .flag-stat {
    background: #1e293b;
}

.source-stat span:first-child,
.vendor-stat span:first-child,
.flag-stat span:first-child {
    font-weight: 600;
}

.source-stat span:last-child,
.vendor-stat span:last-child,
.flag-stat span:last-child {
    font-weight: 700;
    color: var(--color-accent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

body.dark-mode .about-section h3 {
    color: var(--color-text-dark);
}

.about-section p {
    line-height: 1.7;
    color: #6b7280;
}

body.dark-mode .about-section p {
    color: #9ca3af;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.source-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
}

body.dark-mode .source-item {
    background: #0f172a;
}

.source-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

body.dark-mode .source-item h4 {
    color: var(--color-text-dark);
}

.source-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.source-item a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.methodology-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.methodology-list li {
    line-height: 1.6;
    color: #6b7280;
}

body.dark-mode .methodology-list li {
    color: #9ca3af;
}

.contact-btn {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color var(--transition-fast);
}

.contact-btn:hover {
    background-color: #2563eb;
}

/* ============================================
   API DOCS
   ============================================ */

.api-docs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.api-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

body.dark-mode .api-section h3 {
    color: var(--color-text-dark);
}

.code-block {
    background: #1e293b;
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
}

.api-endpoint {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-accent);
}

body.dark-mode .api-endpoint {
    background: #0f172a;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.method.get {
    background: #10b981;
    color: white;
}

.method.post {
    background: #3b82f6;
    color: white;
}

.endpoint-header code {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

body.dark-mode .endpoint-header code {
    color: var(--color-text-dark);
}

.api-endpoint p {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

body.dark-mode .api-endpoint p {
    color: #9ca3af;
}

.endpoint-details {
    margin-top: 1rem;
}

.endpoint-details summary {
    cursor: pointer;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.endpoint-details ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.endpoint-details li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

body.dark-mode .endpoint-details li {
    color: #9ca3af;
}

.endpoint-details code {
    background: #e5e7eb;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

body.dark-mode .endpoint-details code {
    background: #374151;
}

.auth-note {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

body.dark-mode .auth-note {
    background: #451a03;
    color: #fcd34d;
}

.panel-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform var(--transition-fast);
}

.panel-link:hover {
    transform: translateY(-2px);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

body.dark-mode .empty-state h3 {
    color: var(--color-text-dark);
}

.empty-state p {
    color: #9ca3af;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #f3f4f6;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

body.dark-mode .footer {
    background: #1e293b;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

body.dark-mode .footer-content p {
    color: #9ca3af;
}

.footer-sources {
    font-size: 0.875rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2rem;
    }
    
    .hero-header p {
        font-size: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
    }
    
    .nav-links a {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .update-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cve-header {
        flex-direction: column;
    }
    
    .stat-bar-item {
        grid-template-columns: 60px 1fr 30px;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* ============================================
   CHARTS & INTELLIGENCE (NEW)
   ============================================ */

.stats-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.stat-detail-card canvas {
    max-width: 100%;
    height: auto;
}

/* EPSS Table specific styles */
#topEpssTable td {
    vertical-align: middle;
}

#topEpssTable .badge {
    padding: 0.4rem 0.8rem;
    font-weight: 700;
}

/* Intelligence metric badges */
.intel-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

body.dark-mode .intel-metric {
    background: var(--color-bg);
}

.intel-metric .metric-label {
    color: var(--color-text-muted);
    font-weight: 600;
}

.intel-metric .metric-value {
    color: var(--color-accent);
    font-weight: 700;
}

/* EPSS indicator in CVE cards */
.epss-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.epss-indicator.high {
    color: var(--color-danger);
    font-weight: 700;
}

.epss-indicator.medium {
    color: var(--color-warning);
}

/* Chart container responsive */
@media (max-width: 768px) {
    .stats-detailed {
        grid-template-columns: 1fr;
    }
    
    .stat-detail-card {
        grid-column: span 1 !important;
    }
}

/* ============================================
   TRENDS & REAL-TIME INTELLIGENCE
   ============================================ */

/* Temporal Grid */
.temporal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.temporal-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark-mode .temporal-card {
    background: #0f172a;
    border-color: #374151;
}

.temporal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.temporal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.temporal-icon {
    font-size: 2rem;
}

.temporal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
}

body.dark-mode .temporal-header h3 {
    color: var(--color-text-dark);
}

.temporal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.temporal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
}

body.dark-mode .temporal-stat {
    background: #1e293b;
}

.temporal-stat.critical {
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid var(--color-critical);
}

.temporal-stat.high {
    background: rgba(234, 88, 12, 0.1);
    border-left: 3px solid var(--color-high);
}

.temporal-stat.zero-day {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
}

.temporal-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
}

body.dark-mode .temporal-stat .stat-value {
    color: var(--color-text-dark);
}

.temporal-stat .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.temporal-vendors {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.vendor-tag {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0.25rem;
    font-weight: 600;
}

/* Zero-Day Cards */
.zero-day-card {
    border: 2px solid #8b5cf6 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
}

.zero-day-reasons {
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.zero-day-reasons strong {
    color: #8b5cf6;
}

.zero-day-reasons ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.zero-day-reasons li {
    color: var(--color-text-light);
    margin: 0.25rem 0;
}

body.dark-mode .zero-day-reasons li {
    color: var(--color-text-dark);
}

/* Trending Cards */
.trending-card {
    border-left: 4px solid #1da1f2;
}

/* Vendor Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.vendor-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

body.dark-mode .vendor-card {
    background: #0f172a;
    border-color: #374151;
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

body.dark-mode .vendor-header {
    border-bottom-color: #374151;
}

.vendor-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
}

.vendor-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.vendor-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.vendor-stat .stat-label {
    color: var(--color-text-muted);
}

.vendor-stat .stat-value {
    font-weight: 700;
    color: var(--color-text-light);
}

body.dark-mode .vendor-stat .stat-value {
    color: var(--color-text-dark);
}

.vendor-stat .stat-value.critical {
    color: var(--color-critical);
}

.vendor-stat .stat-value.high {
    color: var(--color-high);
}

.vendor-stat .stat-value.zero-day {
    color: #8b5cf6;
}

/* X Intelligence */
.x-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.x-stat-card {
    background: linear-gradient(135deg, #1da1f2 0%, #0c8bd9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.x-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.x-stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.x-mentions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.x-mention-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1da1f2;
}

body.dark-mode .x-mention-card {
    background: #0f172a;
}

.x-mention-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.x-sample-tweets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.x-tweet {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

body.dark-mode .x-tweet {
    background: #1e293b;
}

.x-author {
    font-weight: 700;
    color: #1da1f2;
    display: block;
    margin-bottom: 0.5rem;
}

.x-tweet p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.x-link {
    color: #1da1f2;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}

.x-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .temporal-grid,
    .vendor-grid {
        grid-template-columns: 1fr;
    }
}

/* Mastodon Intelligence */
.mastodon-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mastodon-stat-card {
    background: linear-gradient(135deg, #6364ff 0%, #563acc 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.mastodon-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mastodon-stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.mastodon-mentions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mastodon-mention-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #6364ff;
}

body.dark-mode .mastodon-mention-card {
    background: #0f172a;
}

.mastodon-mention-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mastodon-instances {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.mastodon-sample-toots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mastodon-toot {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

body.dark-mode .mastodon-toot {
    background: #1e293b;
}

.mastodon-author {
    font-weight: 700;
    color: #6364ff;
    display: block;
    margin-bottom: 0.5rem;
}

.mastodon-toot p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.mastodon-link {
    color: #6364ff;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}

.mastodon-link:hover {
    text-decoration: underline;
}