/* Theme variables */
:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --header-bg: lightblue;
  --nav-link: darkblue;
  --nav-link-hover-bg: rgb(171,171,171);
  /* default main background: gradient bianco -> azzurro */
  --main-bg: linear-gradient(180deg,#ffffff 0%, #e6f7ff 100%);
  --accent: #9cc7ff;
} 

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e6eef8;
  --header-bg: #061827;
  --nav-link: #9cc7ff;
  --nav-link-hover-bg: rgba(255,255,255,0.08);
  --main-bg: #0b1620;
  --accent: #7fb0ff;
}

body { font-family: Arial, sans-serif; margin:0; padding:0; background:var(--bg); color:var(--text); transition: background-color .3s, color .3s;}

/* Spaziatura paragrafi */
p { margin-bottom: 14px; }

/*Sezione HEADER*/
header {background-color: var(--header-bg); padding-bottom:10px;padding-top:20px;}
.logo > img {width: 140px; height: 100px;float: left; margin-left: 20px;}
.navbar {position: relative;}
.navbar > h1 {padding-top: 30px;text-align: center;font-size:40px;margin-right: 140px;}
.navbar > nav {text-align: center; padding-top: 20px;}
.navbar > nav > li {display: inline-flex; margin-right: 20px; list-style:none;}
.navbar > nav > li > a {text-decoration: none; color: var(--nav-link);font-weight: bolder;font-size: 18px; padding:10px; transition: background-color 0.3s, color 0.3s,font-weight 0.3s, border-radius 0.3s;}
.navbar > nav > li > a:hover {background-color: var(--nav-link-hover-bg); border-radius: 10px;color:var(--text);font-weight: bold;}

/* active link */
.navbar > nav > li > a.active { background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 10px; }

/* theme toggle button */
.theme-toggle { position: absolute; right: 20px; top: 20px; background: transparent; border: 1px solid rgba(0,0,0,0.15); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; transition: background-color .2s, color .2s; }
.theme-toggle:hover { background-color: rgba(0,0,0,0.06); }
.theme-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/*Sezione MAIN*/
main {padding: 20px; background: var(--main-bg); min-height: 60vh; transition: background .3s; }

/* URL checker */
.url-checker { max-width: 760px; margin: 24px auto; background: rgba(255,255,255,0.03); padding: 18px; border-radius: 10px; box-shadow: 0 1px 0 rgba(0,0,0,0.04) inset; }
.url-checker h2 { margin: 0 0 12px 0; font-size: 22px; }
.input-row { display:flex; gap:10px; }
.input-row input { flex:1; padding:10px 12px; border-radius:8px; border:1px solid rgba(0,0,0,0.12); font-size:16px; background:var(--bg); color:var(--text); }
.input-row input::placeholder { color: rgba(0,0,0,0.35); }
.btn-check { padding:10px 14px; border-radius:8px; border:none; background:var(--accent); color:#fff; cursor:pointer; font-weight:700; }
.btn-check:hover { opacity:0.95; }
.result.hidden { display:none; }
.result { margin-top:16px; }
.score { font-size:18px; margin-bottom:10px; }
#scoreValue { display:inline-block; min-width:48px; text-align:center; font-weight:700; padding:4px 8px; border-radius:6px; color:#fff; }
.score-label { margin-left:10px; font-weight:600; }
.reasons { margin:0; padding:0 0 0 18px; }
.reasons li { margin:6px 0; }
.reasons li.pass { color: #90d68b; }
.reasons li.fail { color: #ff9b9b; }
.note { margin-top:12px; color: rgba(0,0,0,0.5); font-size:14px; }
/* About section */
.about { max-width: 860px; margin: 20px auto; background: rgba(255,255,255,0.92); padding: 22px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.about h2 { margin-top:0; font-size:22px; }
.about h3 { margin-top:10px; font-size:18px; }
.about p, .about li, .about ol li { color: var(--text); line-height:1.6; margin-bottom:8px; }
.about ul, .about ol { padding-left:20px; }
.about code { background: rgba(0,0,0,0.04); padding:2px 6px; border-radius:4px; font-family:monospace; font-size:90%; }
.about .note { margin-top:10px; }
@media (max-width:600px) {
  .about { padding:14px; margin:16px; }
}
/* small utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* smooth logo fade */
.logo > img { transition: opacity .28s ease; }

/* dark tweaks */
[data-theme="dark"] .url-checker { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .about { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.04); box-shadow: none; }
[data-theme="dark"] .input-row input::placeholder { color: rgba(230,238,248,0.45); }
[data-theme="dark"] .note { color: rgba(230,238,248,0.6); }

/* Contact section */
.contact-section { max-width: 860px; margin: 18px auto; display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.contact-card { background: var(--bg); border:1px solid rgba(0,0,0,0.06); padding:16px; border-radius:10px; box-shadow: 0 3px 10px rgba(0,0,0,0.04); }
.contact-card h4 { margin:0 0 8px 0; font-size:16px; }
.contact-card p { margin:0; font-size:14px; color:var(--text); }
.contact-card a { color: var(--nav-link); text-decoration:none; }
.contact-form { grid-column: 1/-1; margin-top:6px; }
.contact-form input, .contact-form textarea { width:100%; padding:10px; border-radius:8px; border:1px solid rgba(0,0,0,0.1); margin-bottom:8px; background:var(--bg); color:var(--text); }
.contact-form button { background:var(--accent); color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; font-weight:700; }

@media (max-width:600px) {
  .contact-section { grid-template-columns: 1fr; }
}

/* dark tweaks for contact */
[data-theme="dark"] .contact-card { border-color: rgba(255,255,255,0.04); box-shadow:none; }

/* Footer */
.site-footer { border-top:1px solid rgba(0,0,0,0.06); padding:20px 12px; background: transparent; color:var(--text); }
.footer-inner { max-width:1100px; margin:0 auto; display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.footer-brand { display:flex; gap:12px; align-items:center; }
.footer-brand .footer-logo { width:48px; height:auto; border-radius:6px; transition: opacity .25s ease; }
.trademark { font-weight:700; }
.footer-nav a { margin:0 8px; color:var(--nav-link); text-decoration:none; font-size:14px; }
.footer-nav a:hover { text-decoration:underline; }
.footer-meta { display:flex; gap:12px; align-items:center; color:rgba(0,0,0,0.6); font-size:14px; }

.version { font-size:13px; color:rgba(0,0,0,0.5); }

@media (max-width:600px) {
  .footer-inner { flex-direction:column; align-items:flex-start; }
  .footer-nav { margin-top:10px; }
}

/* dark footer tweaks */
[data-theme="dark"] .site-footer { border-top-color: rgba(255,255,255,0.03); color:var(--text); }
[data-theme="dark"] .footer-meta { color: rgba(230,238,248,0.6); }
[data-theme="dark"] .footer-nav a { color: var(--nav-link); }

/* ========== Enhanced URL Checker Styles ========== */

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Improved result display */
.result {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

  .special-domain-notice {
    margin: 12px 0 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14) 0%, rgba(255, 152, 0, 0.10) 100%);
    border-left: 4px solid #ff9800;
  }

  .reasons .special-domain-notice-item {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .special-domain-notice-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #e65100;
  }

  .special-domain-notice-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.78);
  }

  [data-theme="dark"] .special-domain-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18) 0%, rgba(255, 152, 0, 0.12) 100%);
    border-left-color: #ffb74d;
  }

  [data-theme="dark"] .special-domain-notice-title {
    color: #ffcc80;
  }

  [data-theme="dark"] .special-domain-notice-text {
    color: rgba(230, 238, 248, 0.82);
  }
}

#scoreValue {
  font-size: 24px !important;
  padding: 8px 12px !important;
  min-width: 80px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.score-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* Enhanced reasons list */
.reasons {
  background: rgba(255,255,255,0.5);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 12px;
}

[data-theme="dark"] .reasons {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--accent);
}

.reasons li {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 14px;
}

.reasons li.pass {
  color: #2e7d32;
  font-weight: 500;
}

[data-theme="dark"] .reasons li.pass {
  color: #90d68b;
}

.reasons li.fail {
  color: #c62828;
  font-weight: 500;
}

[data-theme="dark"] .reasons li.fail {
  color: #ff9b9b;
}

/* Score value gradients for different threat levels */
#scoreValue[style*="background: rgb(76, 175, 80)"] {
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

#scoreValue[style*="background: rgb(255, 184, 77)"] {
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.3);
}

#scoreValue[style*="background: rgb(255, 152, 0)"] {
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
}

#scoreValue[style*="background: rgb(211, 47, 47)"] {
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.3);
}

/* API info section */
.api-info {
  background: rgba(156, 199, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  border-left: 3px solid var(--accent);
}

[data-theme="dark"] .api-info {
  background: rgba(156, 199, 255, 0.14);
  color: rgba(236, 243, 252, 0.9);
  border-left-color: #90caf9;
}

/* Improved input focus states */
.input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 199, 255, 0.2);
}

/* Button improvements */
.btn-check {
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-check:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-check:active {
  transform: translateY(0);
}

/* How it works section */
.how-it-works {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.how-it-works h3,
.how-it-works h4 {
  margin: 14px 0 8px 0;
  font-size: 16px;
}

.how-it-works h3 {
  font-size: 18px;
}

.how-it-works p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.how-it-works ul,
.how-it-works ol {
  margin: 10px 0;
  padding-left: 20px;
  font-size: 14px;
}

.how-it-works li {
  margin: 6px 0;
  line-height: 1.5;
}

.how-it-works a {
  color: var(--nav-link);
  text-decoration: none;
}

.how-it-works a:hover {
  text-decoration: underline;
}

/* API Configuration section */
.api-config {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.api-config h3 {
  margin-top: 0;
  font-size: 18px;
}

.api-config p {
  font-size: 14px;
  margin: 10px 0;
  line-height: 1.5;
}

.api-config ol {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 14px;
}

.api-config li {
  margin: 5px 0;
}

.api-config input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--bg);
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
}

[data-theme="dark"] .api-config input {
  border-color: rgba(255,255,255,0.08);
}

.api-config button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.api-config button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.settings-panel {
  margin-top: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.settings-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.settings-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.settings-card-desc {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 10px 0;
}

.settings-row {
  margin-bottom: 8px;
}

.settings-row input {
  width: 100%;
  box-sizing: border-box;
}

.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #607d8b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  opacity: 0.95;
}

.settings-help {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.74);
}

.settings-help a {
  color: var(--nav-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.settings-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(96, 125, 139, 0.12);
  border-left: 3px solid #607d8b;
  color: #37474f;
}

.settings-status:empty {
  display: none;
}

.settings-status.success {
  background: rgba(76, 175, 80, 0.12);
  border-left-color: #4caf50;
  color: #2e7d32;
}

.settings-status.error {
  background: rgba(211, 47, 47, 0.12);
  border-left-color: #d32f2f;
  color: #b71c1c;
}

.settings-status.info {
  background: rgba(33, 150, 243, 0.12);
  border-left-color: #2196f3;
  color: #0d47a1;
}

.settings-disclaimer {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
  background: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
}

.api-status-indicator {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4caf50;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.api-status-indicator.neutral {
  background: rgba(96, 125, 139, 0.12);
  border-left-color: #607d8b;
  color: #37474f;
  font-weight: 500;
}

/* Data privacy section */
.data-privacy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.data-privacy h3 {
  margin-top: 0;
  font-size: 18px;
}

.data-privacy ul {
  margin: 12px 0;
  padding-left: 20px;
  font-size: 14px;
}

.data-privacy li {
  margin: 8px 0;
  line-height: 1.6;
}

.data-privacy a {
  color: var(--nav-link);
  text-decoration: none;
}

.data-privacy a:hover {
  text-decoration: underline;
}

/* Dark theme tweaks for new sections */
[data-theme="dark"] .how-it-works,
[data-theme="dark"] .api-config,
[data-theme="dark"] .data-privacy {
  border-top-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .settings-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .settings-card-desc,
[data-theme="dark"] .settings-help,
[data-theme="dark"] .settings-disclaimer {
  color: rgba(236, 243, 252, 0.9);
}

[data-theme="dark"] .settings-card-desc {
  color: rgba(236, 243, 252, 0.82);
}

[data-theme="dark"] .settings-help {
  color: rgba(236, 243, 252, 0.9);
}

[data-theme="dark"] .settings-help a {
  color: #b9dcff;
}

[data-theme="dark"] .settings-disclaimer {
  color: rgba(244, 249, 255, 0.96);
  background: rgba(144, 202, 249, 0.16);
  border-color: rgba(144, 202, 249, 0.42);
}

[data-theme="dark"] .settings-status {
  background: rgba(120, 144, 156, 0.28);
  color: #eef3f7;
  border-left-color: #90a4ae;
}

[data-theme="dark"] .settings-status.success {
  background: rgba(76, 175, 80, 0.28);
  color: #c4efc1;
  border-left-color: #76d37c;
}

[data-theme="dark"] .settings-status.error {
  background: rgba(211, 47, 47, 0.28);
  color: #ffc2c2;
  border-left-color: #ff8f8f;
}

[data-theme="dark"] .settings-status.info {
  background: rgba(33, 150, 243, 0.28);
  color: #c2e2ff;
  border-left-color: #8cc8ff;
}

[data-theme="dark"] .api-status-indicator {
  background: rgba(76, 175, 80, 0.28);
  color: #c4efc1;
  border-left-color: #76d37c;
}

[data-theme="dark"] .api-status-indicator.neutral {
  background: rgba(120, 144, 156, 0.28);
  color: #eef3f7;
  border-left-color: #90a4ae;
}

/* ========== SITE REPUTATION BOX ========== */

.reputation-box {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(255, 152, 0, 0.04) 100%);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0 16px 0;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .reputation-box {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
  border-color: rgba(76, 175, 80, 0.2);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
}

.reputation-score {
  padding: 12px 0;
}

.reputation-score strong {
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

/* Reputation score bar (visual gauge) */
.reputation-gauge {
  width: 100%;
  height: 20px;
  background: linear-gradient(to right, 
    #d32f2f 0%, 
    #ff9800 30%, 
    #ffb74d 50%, 
    #4caf50 100%);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.reputation-gauge-fill {
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Trustworthiness indicators */
.trust-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  background: rgba(0,0,0,0.04);
}

.trust-indicator.excellent {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.trust-indicator.good {
  background: rgba(255, 184, 77, 0.15);
  color: #f57c00;
}

.trust-indicator.medium {
  background: rgba(255, 152, 0, 0.15);
  color: #e65100;
}

.trust-indicator.poor {
  background: rgba(211, 47, 47, 0.15);
  color: #c62828;
}

[data-theme="dark"] .trust-indicator {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .trust-indicator.excellent {
  background: rgba(76, 175, 80, 0.2);
  color: #90d68b;
}

[data-theme="dark"] .trust-indicator.good {
  background: rgba(255, 184, 77, 0.2);
  color: #ffb74d;
}

[data-theme="dark"] .trust-indicator.medium {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
}

[data-theme="dark"] .trust-indicator.poor {
  background: rgba(211, 47, 47, 0.2);
  color: #ff9b9b;
}

/* Justifications box for reputation explanations */
.justifications-box {
  background: rgba(156, 199, 255, 0.08);
  border-left: 4px solid #9cc7ff;
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
}

[data-theme="dark"] .justifications-box {
  background: rgba(156, 199, 255, 0.04);
  border-left-color: #7fb0ff;
}

.justification-item {
  line-height: 1.6;
  margin: 6px 0;
  color: rgba(0,0,0,0.7);
  font-size: 13px;
}

[data-theme="dark"] .justification-item {
  color: rgba(230,238,248,0.75);
}

/* ========== SITE NOT FOUND WARNING ========== */

.site-not-found-warning {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(233, 30, 99, 0.05) 100%);
  border: 3px solid #d32f2f;
  border-radius: 12px;
  padding: 32px 28px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.15);
  animation: slideInWarning 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInWarning {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-not-found-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
}

.site-not-found-title {
  font-size: 32px;
  font-weight: 900;
  color: #d32f2f;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(211, 47, 47, 0.1);
}

.site-not-found-reason {
  font-size: 18px;
  font-weight: 600;
  color: #c62828;
  margin-bottom: 12px;
  line-height: 1.4;
}

.site-not-found-desc {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(211, 47, 47, 0.2);
}

[data-theme="dark"] .site-not-found-warning {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.08) 0%, rgba(233, 30, 99, 0.03) 100%);
  border-color: #ff5252;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.2);
}

[data-theme="dark"] .site-not-found-title {
  color: #ff5252;
  text-shadow: 0 1px 3px rgba(211, 47, 47, 0.15);
}

[data-theme="dark"] .site-not-found-reason {
  color: #ff5252;
}

[data-theme="dark"] .site-not-found-desc {
  color: rgba(230, 238, 248, 0.7);
  border-top-color: rgba(255, 82, 82, 0.2);
}

/* Reputation factors breakdown */
.reputation-factors {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.reputation-factors h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.6);
}

[data-theme="dark"] .reputation-factors h4 {
  color: rgba(230,238,248,0.5);
}

/* Enhance reasons list styling for reputation items */
.reasons li[data-reputation-detail] {
  padding: 6px 0;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

.reasons li[data-reputation-detail].pass {
  border-left-color: #4caf50;
}

.reasons li[data-reputation-detail].fail {
  border-left-color: #ff6b6b;
}

/* ========== ILLEGAL CONTENT WARNING ========== */

.illegal-content-warning {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.15) 0%, rgba(244, 67, 54, 0.08) 100%);
  border: 4px solid #d32f2f;
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
  box-shadow: 0 12px 32px rgba(211, 47, 47, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: slideInWarning 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.illegal-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(211, 47, 47, 0.3);
}

.illegal-content-icon {
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(211, 47, 47, 0.2));
}

.illegal-content-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(211, 47, 47, 0.15);
}

.illegal-content-severity {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.illegal-content-body {
  text-align: left;
}

.illegal-reason {
  font-size: 15px;
  line-height: 1.6;
  color: #b71c1c;
  font-weight: 600;
  margin-bottom: 12px;
}

.illegal-details {
  padding: 12px 14px;
  background: rgba(211, 47, 47, 0.08);
  border-left: 3px solid #d32f2f;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 13px;
  color: #c62828;
}

.illegal-warning {
  background: rgba(211, 47, 47, 0.12) !important;
  border-left-color: #d32f2f !important;
}

/* Dark theme for illegal content */
[data-theme="dark"] .illegal-content-warning {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.12) 0%, rgba(229, 57, 53, 0.06) 100%);
  border-color: #ff5252;
  box-shadow: 0 12px 32px rgba(244, 67, 54, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .illegal-content-header {
  border-bottom-color: rgba(255, 82, 82, 0.3);
  color: #ff5252;
}

[data-theme="dark"] .illegal-content-icon {
  filter: drop-shadow(0 2px 4px rgba(244, 67, 54, 0.3));
}

[data-theme="dark"] .illegal-content-title {
  color: #ff5252;
  text-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

[data-theme="dark"] .illegal-reason {
  color: #ff5252;
}

[data-theme="dark"] .illegal-details {
  background: rgba(244, 67, 54, 0.1);
  border-left-color: #ff5252;
  color: #ff7043;
}

[data-theme="dark"] .illegal-warning {
  background: rgba(244, 67, 54, 0.12) !important;
  border-left-color: #ff5252 !important;
  color: #ff7043 !important;
}

/* ========== FULL SITE ANALYSIS + USER TIPS ========== */

.site-content-box {
  background: rgba(156, 199, 255, 0.08);
  border: 1px solid rgba(156, 199, 255, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.site-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.site-content-level {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.site-content-score {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.site-content-details {
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  padding-top: 8px;
}

.site-content-detail-item {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
  color: rgba(0, 0, 0, 0.75);
}

.user-tips-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.08) 100%);
  border-left: 4px solid #4caf50;
}

.user-tips-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.user-tip-item {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
  margin: 6px 0;
}

.user-safety-guide {
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.22);
}

.user-safety-guide h3 {
  margin: 0 0 8px 0;
}

.user-safety-guide ul {
  margin: 0;
  padding-left: 20px;
}

.user-safety-guide li {
  margin: 6px 0;
  line-height: 1.55;
}

[data-theme="dark"] .site-content-box {
  background: rgba(127, 176, 255, 0.08);
  border-color: rgba(127, 176, 255, 0.35);
}

[data-theme="dark"] .site-content-details {
  border-top-color: rgba(230, 238, 248, 0.2);
}

[data-theme="dark"] .site-content-detail-item {
  color: rgba(230, 238, 248, 0.78);
}

[data-theme="dark"] .user-tips-box {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(104, 159, 56, 0.08) 100%);
  border-left-color: #66bb6a;
}

[data-theme="dark"] .user-tip-item {
  color: rgba(230, 238, 248, 0.78);
}

[data-theme="dark"] .user-safety-guide {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(102, 187, 106, 0.3);
}