/* Audit SEO / AEO / GEO view */

#auditView { padding: 28px 32px; }

.audit-form {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px;
  margin: 14px 0 18px;
}
.audit-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 280px; }
.audit-field label {
  font-size: 11px; color: #94a3b8;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.audit-field input {
  height: 40px; padding: 0 12px;
  background: #14161f; color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; font-size: 14px;
}
.audit-field input:focus { outline: 2px solid rgba(167,139,250,0.5); outline-offset: 1px; }

.audit-empty {
  padding: 36px; text-align: center; color: #94a3b8;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 12px;
}

.audit-overall {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.05));
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 14px; padding: 22px 26px;
  margin-bottom: 18px;
}
.audit-overall-meta { flex: 1; }
.audit-pdf-btn {
  white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none; color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: transform 120ms, box-shadow 120ms;
  display: inline-flex; align-items: center;
}
.audit-pdf-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.35);
}
.audit-pdf-btn:disabled { opacity: 0.6; cursor: wait; }
.audit-overall-score {
  font-size: 56px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
}
.audit-overall-label {
  font-size: 11px; color: #94a3b8;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.audit-overall-url {
  font-size: 16px; color: #f1f5f9; margin-top: 4px;
  font-family: ui-monospace, Menlo, monospace;
  word-break: break-all;
}

.audit-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.aud-card {
  padding: 16px 18px;
  background: rgba(20, 22, 30, 0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  position: relative; overflow: hidden;
}
.aud-card-hdr { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.aud-card-hdr strong { font-size: 16px; color: #f1f5f9; }
.aud-card-desc { font-size: 11px; color: #94a3b8; }
.aud-card-score {
  font-size: 40px; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums;
  margin: 6px 0;
}
.aud-card-level {
  font-size: 12px; color: #cbd5e1;
  text-transform: capitalize; margin-bottom: 10px;
}
.aud-card-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.aud-pill {
  font-size: 10px; padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.aud-pill--good { background: rgba(34,197,94,0.15); color: #4ade80; }
.aud-pill--warn { background: rgba(251,191,36,0.15); color: #fbbf24; }
.aud-pill--bad  { background: rgba(244,63,94,0.15); color: #f87171; }

.audit-details { display: flex; flex-direction: column; gap: 16px; }
.aud-section {
  background: rgba(20, 22, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px 20px;
}
.aud-section-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}
.aud-section-hdr h3 {
  margin: 0; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700;
}
.aud-section-meta { font-size: 13px; color: #94a3b8; }

.aud-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.aud-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.aud-bar-label { min-width: 140px; color: #cbd5e1; }
.aud-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.aud-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 400ms ease;
}
.aud-bar-val {
  font-size: 11px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
  min-width: 60px; text-align: right;
}

.aud-checks { display: flex; flex-direction: column; gap: 8px; }
.aud-check {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid transparent;
  border-radius: 8px;
}
.aud-check--pass { border-left-color: #4ade80; }
.aud-check--warn { border-left-color: #fbbf24; }
.aud-check--fail { border-left-color: #f87171; }
.aud-check-hdr {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
}
.aud-check-hdr strong { color: #f1f5f9; }
.aud-cat {
  font-size: 10px; color: #94a3b8;
  background: rgba(255,255,255,0.04);
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.aud-value {
  font-size: 11px;
  background: rgba(124,58,237,0.1);
  color: #c4b5fd;
  padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
}
.aud-detail {
  font-size: 12px; color: #94a3b8;
  margin-top: 4px;
}
.aud-fix {
  font-size: 12px; color: #cbd5e1;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(124,58,237,0.06);
  border-left: 2px solid rgba(167,139,250,0.4);
  border-radius: 4px;
}
.aud-fix strong { color: #a78bfa; }

@media (max-width: 1000px) {
  .audit-trio { grid-template-columns: 1fr; }
}
