/* Website Checker (Applications) — report styling. Ported from Reef
   Sentinel's Website Checker and mapped to Sentinel Recon's palette
   (css/styles.css :root). Scoped to .wc-* / .sev-* so it can't collide with
   the rest of the app. */

.wc-panel { margin-bottom: 18px; }
.wc-panel .wc-h3 { margin: 0 0 12px; font-size: 16.5px; color: var(--text); font-weight: 600; }
.wc-h4 { margin: 18px 0 8px; font-size: 14.5px; color: var(--text); font-weight: 600; }
.wc-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.wc-empty { color: var(--muted); font-style: italic; font-size: 14px; padding: 6px 0; }
.wc-count { color: var(--muted); font-weight: 400; font-size: .8rem; }
.wc-mono { font-family: var(--font-mono); }
.wc-muted { color: var(--muted); }
.wc-ok { color: var(--mint); }
.wc-bad { color: var(--coral); }

/* tables (Reef's .vapt-table) */
.wc-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 14px; }
.wc-table th, .wc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wc-table th { color: var(--muted); font-weight: 600; }
.wc-table tr:last-child th, .wc-table tr:last-child td { border-bottom: none; }
.wc-table a { color: var(--cyan-bright); text-decoration: none; }
.wc-table a:hover { text-decoration: underline; }

/* consent + progress */
.wc-consent { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.wc-consent input { width: auto; margin: 0; }
.wc-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.wc-spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--cyan-bright); border-radius: 50%; animation: wc-spin .8s linear infinite; flex: none; }
@keyframes wc-spin { to { transform: rotate(360deg); } }

/* score summary */
.wc-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.wc-grade { width: 92px; height: 92px; flex: none; border: 3px solid; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; line-height: 1; font-family: var(--font-mono); }
.wc-grade small { font-size: .7rem; font-weight: 500; margin-top: 4px; color: var(--muted); }
.wc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { padding: 6px 12px; font-size: 13px; }

/* findings */
.wc-findings { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wc-finding { border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 8px; padding: 12px 14px; background: var(--void); }
.wc-finding.sev-crit { border-left-color: #FF4D6D; }
.wc-finding.sev-high { border-left-color: #FFA24E; }
.wc-finding.sev-med { border-left-color: #E8C34A; }
.wc-finding.sev-low { border-left-color: #35D0C4; }
.wc-f-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-f-detail { margin-top: 6px; font-size: .9rem; color: var(--text); word-break: break-word; }
.wc-f-fix { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.wc-blocked { border-color: #E8C34A; color: var(--text); font-size: .9rem; line-height: 1.6; }

/* technology stack chips */
.wc-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wc-stack-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.wc-stack-k { width: 170px; flex: none; color: var(--muted); font-size: .82rem; padding-top: 4px; }
.wc-stack-v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wc-chip { border: 1px solid var(--line); border-radius: 12px; padding: 3px 10px; font-size: .8rem; font-family: var(--font-mono); background: var(--void); color: var(--text); }
.wc-tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; }

/* severity badges / pills (shared) */
.sev-pill { padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line); font-size: .78rem; }
.sev-badge { font-family: var(--font-mono); font-size: .62rem; font-weight: 600; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.sev-badge.sev-kev, .sev-pill.sev-kev { color: #FF4D6D; border-color: #FF4D6D; }
.sev-badge.sev-crit, .sev-pill.sev-crit { color: #FF6E4E; border-color: #FF6E4E; }
.sev-badge.sev-high, .sev-pill.sev-high { color: #FFA24E; border-color: #FFA24E; }
.sev-badge.sev-med, .sev-pill.sev-med { color: #E8C34A; border-color: #E8C34A; }
.sev-badge.sev-low, .sev-pill.sev-low { color: #35D0C4; border-color: #35D0C4; }
.sev-badge.sev-info, .sev-pill.sev-info { color: var(--muted); }

/* Large scrollable report viewer (opened from a History row) */
.wc-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 8, 10, 0.72); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wc-modal-box { width: min(1100px, 94vw); height: 90vh; display: flex; flex-direction: column; background: var(--void); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); overflow: hidden; }
.wc-modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.wc-modal-title { font-family: var(--font-mono); font-size: 15px; color: var(--text); word-break: break-all; min-width: 0; }
.wc-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; }
@media (max-width: 640px) { .wc-modal-overlay { padding: 0; } .wc-modal-box { width: 100vw; height: 100vh; border-radius: 0; } }
