/* TrustedWeb Threat Center Styles */
.twtc-threat-center {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero */
.twtc-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
}
.twtc-hero h2 {
    font-size: 2em;
    margin: 0 0 10px;
    color: #fff;
}
.twtc-hero p {
    font-size: 1.1em;
    opacity: 0.85;
    margin: 0;
}

/* Stats Grid */
.twtc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.twtc-stat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}
.twtc-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.twtc-stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.twtc-stat-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}
.twtc-stat-danger .twtc-stat-number { color: #dc3545; }
.twtc-stat-warning .twtc-stat-number { color: #ff6b35; }

/* Sections */
.twtc-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}
.twtc-section h3 {
    margin: 0 0 20px;
    font-size: 1.4em;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Vulnerability List */
.twtc-vuln-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.twtc-vuln-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #ccc;
}
.twtc-vuln-critical { border-left-color: #dc3545; background: #fff5f5; }
.twtc-vuln-high { border-left-color: #ff6b35; background: #fff8f0; }
.twtc-vuln-medium { border-left-color: #ffc107; background: #fffdf0; }
.twtc-vuln-low { border-left-color: #28a745; background: #f0fff4; }

.twtc-vuln-severity {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    color: #fff;
    background: #666;
}
.twtc-vuln-critical .twtc-vuln-severity { background: #dc3545; }
.twtc-vuln-high .twtc-vuln-severity { background: #ff6b35; }
.twtc-vuln-medium .twtc-vuln-severity { background: #ffc107; color: #333; }
.twtc-vuln-low .twtc-vuln-severity { background: #28a745; }

.twtc-vuln-info {
    flex: 1;
}
.twtc-vuln-info strong {
    display: block;
    margin-bottom: 3px;
}
.twtc-vuln-info p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}
.twtc-vuln-info small {
    color: #888;
}
.twtc-vuln-source {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
}
.twtc-cve {
    font-size: 0.8em;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* Categories */
.twtc-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.twtc-category-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
}
.twtc-category-section h4 {
    margin: 0 0 12px;
    color: #1a1a2e;
    font-size: 1.05em;
}
.twtc-category-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.twtc-category-section li {
    padding: 6px 0;
    border-bottom: 1px solid #e8e8e8;
}
.twtc-category-section li:last-child {
    border-bottom: none;
}
.twtc-category-section li a {
    color: #16213e;
    text-decoration: none;
    font-size: 0.92em;
}
.twtc-category-section li a:hover {
    color: #007bff;
}
.twtc-category-section li small {
    display: block;
    color: #999;
    font-size: 0.8em;
}
.twtc-no-articles {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* CTA Box */
.twtc-cta-box {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}
.twtc-cta-box h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #fff;
    border: none;
    padding: 0;
}
.twtc-cta-box p {
    margin: 0 0 20px;
    opacity: 0.9;
    font-size: 1.05em;
}
.twtc-cta-button {
    display: inline-block;
    background: #00c853;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
}
.twtc-cta-button:hover {
    background: #00e676;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

/* API Section */
.twtc-api-section {
    background: #f8f9fa;
}
.twtc-api-endpoints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}
.twtc-api-endpoints code {
    display: block;
    background: #1a1a2e;
    color: #00c853;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* Article Content Styles */
.twtc-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid;
}
.twtc-alert-critical {
    background: #fff5f5;
    border-left-color: #dc3545;
    color: #721c24;
}
.twtc-alert-high {
    background: #fff8f0;
    border-left-color: #ff6b35;
    color: #856404;
}
.twtc-alert-medium {
    background: #fffdf0;
    border-left-color: #ffc107;
    color: #856404;
}
.twtc-alert-low {
    background: #f0fff4;
    border-left-color: #28a745;
    color: #155724;
}

.twtc-vuln-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.twtc-vuln-table th,
.twtc-vuln-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.twtc-vuln-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 180px;
}
.twtc-vuln-table thead th {
    background: #1a1a2e;
    color: #fff;
    width: auto;
}

.twtc-severity {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
}
.twtc-severity-critical { background: #dc3545; }
.twtc-severity-high { background: #ff6b35; }
.twtc-severity-medium { background: #ffc107; color: #333; }
.twtc-severity-low { background: #28a745; }

/* Case Study */
.twtc-case-study-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}
.twtc-score-before,
.twtc-score-after {
    font-size: 3.5em;
    font-weight: 700;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.twtc-score-before {
    background: #dc3545;
    color: #fff;
}
.twtc-score-after {
    background: #28a745;
    color: #fff;
}
.twtc-score-arrow {
    font-size: 2.5em;
    color: #666;
}

/* Weekly Report */
.twtc-weekly-header {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
}
.twtc-weekly-header h2 {
    margin: 0 0 5px;
}
.twtc-subtitle {
    color: #666;
    font-size: 1.1em;
}

/* Widget Styles */
.twtc-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}
.twtc-widget h4 {
    margin: 0 0 12px;
    font-size: 1em;
}
.twtc-threat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}
.twtc-threat-item:last-child {
    border-bottom: none;
}
.twtc-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.twtc-mini-stats div {
    font-size: 0.9em;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .twtc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .twtc-categories {
        grid-template-columns: 1fr;
    }
    .twtc-vuln-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .twtc-case-study-header {
        flex-direction: column;
        gap: 15px;
    }
    .twtc-score-before,
    .twtc-score-after {
        font-size: 2.5em;
        width: 90px;
        height: 90px;
    }
}
