/* Analysis Detail Styles */
.analysis-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .analysis-container {
        grid-template-columns: 1fr;
    }
}

.analysis-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
}

.analysis-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #10b981;
    border-radius: 2px;
}

/* Visual Section */
.visual-section {
    text-align: center;
}

.screenshot-container {
    position: relative;
    margin-bottom: 16px;
}

.screenshot-container img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshot-container img:hover {
    transform: scale(1.02);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #636e72;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    word-break: break-all;
}

.info-value.brand {
    color: #e74c3c;
}

.info-value.success {
    color: #10b981;
}

.info-value.warning {
    color: #f59e0b;
}

/* Hash Tables */
.hash-section {
    margin-top: 24px;
}

.hash-table {
    width: 100%;
    border-collapse: collapse;
}

.hash-table th,
.hash-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.hash-table th {
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #636e72;
}

.hash-table td {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    word-break: break-all;
}

.hash-type {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hash-type-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.hash-type-badge.content {
    background: #dbeafe;
    color: #2563eb;
}

.hash-type-badge.visual {
    background: #fce7f3;
    color: #db2777;
}

/* URL Display */
.url-display {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 16px;
}

.url-display a {
    color: #2563eb;
    text-decoration: none;
}

.url-display a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #636e72;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #2d3436;
}

/* Theme: SafeMode */
body.theme-delicate .analysis-card,
body.theme-delicate .info-item,
body.theme-delicate .url-display {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    position: relative;
}

body.theme-delicate .analysis-card::before,
body.theme-delicate .info-item::before,
body.theme-delicate .url-display::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 8px;
    border: 1px solid rgba(31, 31, 31, 0.2);
    pointer-events: none;
}

body.theme-delicate .analysis-card h3 {
    color: var(--ink);
    font-family: var(--font-display);
}

body.theme-delicate .analysis-card h3::before {
    background: var(--accent);
}

body.theme-delicate .info-label {
    color: var(--ink-muted);
}

body.theme-delicate .info-value {
    color: var(--ink);
}

body.theme-delicate .info-value.brand {
    color: var(--accent);
}

body.theme-delicate .hash-table th {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
}

body.theme-delicate .hash-type-badge.content {
    background: rgba(207, 76, 26, 0.12);
    color: var(--accent);
}

body.theme-delicate .hash-type-badge.visual {
    background: rgba(31, 79, 70, 0.12);
    color: var(--accent-2);
}

body.theme-delicate .screenshot-container img {
    border-color: var(--line);
}

body.theme-delicate .back-link {
    color: var(--ink-muted);
}

body.theme-delicate .back-link:hover {
    color: var(--ink);
}

/* Code Analysis / Intel */
.code-analysis {
    margin-top: 16px;
}

.risk-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.risk-score.low {
    background: #d1fae5;
    color: #065f46;
}

.risk-score.medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-score.high {
    background: #fee2e2;
    color: #991b1b;
}

/* Intel Section */
.intel-section {
    margin-top: 16px;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.intel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.intel-badge.telegram {
    background: #e3f2fd;
    color: #1565c0;
}

.intel-badge.discord {
    background: #ede7f6;
    color: #5e35b1;
}

.intel-badge.websocket {
    background: #e8f5e9;
    color: #2e7d32;
}

.intel-badge.kit {
    background: #fff3e0;
    color: #e65100;
}

.intel-badge.supabase {
    background: #e0f2f1;
    color: #00695c;
}

.intel-badge.firebase {
    background: #fff8e1;
    color: #f57c00;
}

.intel-subsection {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.intel-subsection h4 {
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Threat Report (Malware Scan Style) */
.threat-report {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: #1a1a2e;
    color: #00ff88;
    padding: 16px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    border: 1px solid #16213e;
}

.threat-report br {
    display: block;
    margin-bottom: 4px;
}

.intel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intel-list li {
    padding: 6px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    word-break: break-all;
    border-bottom: 1px solid #e9ecef;
}

.intel-list li:last-child {
    border-bottom: none;
}

.token-masked {
    color: #e74c3c;
    font-weight: 600;
}

.endpoint-url {
    color: #2563eb;
}

/* Full Width Card */
.full-width {
    grid-column: 1 / -1;
}

/* AI Security Verdict Hero (ScanMalware style) */
.verdict-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    color: white;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 768px) {
    .verdict-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.verdict-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 4px solid;
}

.verdict-score-circle.high {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.verdict-score-circle.medium {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fde68a;
}

.verdict-score-circle.low {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #86efac;
}

.verdict-score-number {
    font-size: 48px;
    line-height: 1;
}

.verdict-score-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}

.verdict-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.verdict-info h2.high { color: #fca5a5; }
.verdict-info h2.medium { color: #fde68a; }
.verdict-info h2.low { color: #86efac; }

.verdict-confidence {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.verdict-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.risk-factors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-factors-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #fca5a5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.risk-factors-list li:last-child {
    border-bottom: none;
}

.risk-factors-list li::before {
    content: '⚠';
    flex-shrink: 0;
}

/* Similar Pages */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.similar-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.similar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.similar-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f8f9fa;
}

.similar-card-info {
    padding: 12px;
}

.similar-card-brand {
    font-weight: 600;
    color: #e74c3c;
    font-size: 13px;
}

.similar-card-url {
    font-size: 11px;
    color: #636e72;
    word-break: break-all;
    margin-top: 4px;
}

.similar-card-date {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 4px;
}

/* Domain History */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-url {
    font-family: monospace;
    font-size: 12px;
    color: #2563eb;
    word-break: break-all;
}

.history-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #636e72;
    flex-shrink: 0;
}

.history-brand {
    color: #e74c3c;
    font-weight: 500;
}
