/* Website audit report — high contrast, dark premium UI */

.website-audit {
  --wa-text: #f8fafc;
  --wa-muted: #cbd5e1;
  --wa-surface: rgba(8, 15, 36, 0.92);
  --wa-surface-2: rgba(15, 23, 42, 0.82);
  --wa-border: rgba(148, 163, 184, 0.25);
  --wa-primary: #4f8cff;
  --wa-good: #22c55e;
  --wa-mid: #f59e0b;
  --wa-bad: #ef4444;
  color: var(--wa-text);
}

.website-audit h1,
.website-audit h2,
.website-audit h3,
.website-audit h4,
.website-audit h5,
.website-audit h6,
.website-audit p,
.website-audit li,
.website-audit label,
.website-audit strong,
.website-audit .fw-semibold,
.website-audit .small,
.website-audit .table td,
.website-audit .table th {
  color: #eaf2ff !important;
}

.website-audit__container {
  max-width: 1040px;
}

.website-audit__header {
  background: linear-gradient(160deg, rgba(18, 33, 78, 0.94), rgba(8, 12, 28, 0.95));
  border: 1px solid var(--wa-border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 1.75rem 1.25rem;
}

.website-audit__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #f8fbff;
}

.website-audit__lead,
.website-audit .text-secondary,
.website-audit .form-text,
.website-audit .small.text-secondary {
  color: var(--wa-muted) !important;
}

.website-audit .text-dark,
.website-audit .text-black,
.website-audit [style*="color: black"],
.website-audit [style*="color:#000"],
.website-audit [style*="color: #000"] {
  color: #eaf2ff !important;
}

.website-audit__form {
  border-radius: 16px;
  background: var(--wa-surface);
  border: 1px solid var(--wa-border) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.website-audit__form .form-label {
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.website-audit__form .form-control {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: var(--wa-text);
  min-height: 56px;
  width: 100%;
  min-width: 0;
}

.website-audit__form .form-control::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.website-audit__form .form-control:focus {
  background: rgba(15, 23, 42, 0.98);
  color: var(--wa-text);
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow: 0 0 0 0.25rem rgba(79, 140, 255, 0.22);
}

#audit-submit {
  border: 0;
  min-height: 56px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wa-primary), #2563eb);
}

.website-audit__form .input-group {
  width: 100%;
  align-items: stretch;
}

#audit-submit:hover,
#audit-submit:focus {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.website-audit__empty,
.website-audit__loading,
.website-audit__result-inner {
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: 16px;
  padding: 1.2rem;
  overflow-x: hidden;
}

#audit-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
}

.website-audit__scores {
  --audit-good: var(--wa-good);
  --audit-avg: var(--wa-mid);
  --audit-poor: var(--wa-bad);
}

.website-audit__score-card {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: var(--wa-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.website-audit__score-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.website-audit__score-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  margin-top: 0.35rem;
}

.website-audit__score--good .website-audit__score-value {
  color: var(--audit-good);
}

.website-audit__score--avg .website-audit__score-value {
  color: var(--audit-avg);
}

.website-audit__score--poor .website-audit__score-value {
  color: var(--audit-poor);
}

.website-audit__score--na .website-audit__score-value {
  color: #94a3b8;
}

.website-audit__tabs .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(30, 41, 59, 0.75);
}

.website-audit__tabs .nav-link.active {
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  border-color: transparent;
}

.website-audit .table {
  --bs-table-bg: rgba(8, 12, 28, 0.86);
  --bs-table-color: #e2e8f0;
  --bs-table-border-color: rgba(148, 163, 184, 0.22);
}

.website-audit__metrics thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #bfdbfe;
}

.website-audit__shot {
  background: rgba(8, 12, 28, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

.website-audit__shot-frame {
  max-height: 430px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #020617;
}

.website-audit__issue {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.website-audit__item-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: #eaf2ff;
}

.website-audit__section-title {
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.website-audit__meta-row {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.website-audit__meta-row-item {
  font-size: 0.86rem;
  color: #dbeafe;
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.website-audit__meta-row-item:last-child {
  margin-bottom: 0;
}

.website-audit__meta-key {
  color: #93c5fd;
  font-weight: 700;
  text-transform: capitalize;
}

.website-audit__opp-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.website-audit__opp-image {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b1022;
}

.website-audit__issue .text-white-50 {
  color: #93c5fd !important;
}

.website-audit__severity {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
}

.website-audit__severity--high {
  background: rgba(239, 68, 68, 0.24);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.52);
}

.website-audit__severity--medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.website-audit__severity--low {
  background: rgba(100, 116, 139, 0.22);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.36);
}

.website-audit__biz {
  border-left: 3px solid rgba(56, 189, 248, 0.6);
  padding-left: 0.75rem;
  color: #bae6fd;
  overflow-wrap: anywhere;
}

.website-audit__item-title,
.website-audit__lead,
.website-audit p,
.website-audit li {
  overflow-wrap: anywhere;
}

.website-audit__cta {
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.22), rgba(8, 12, 28, 0.96));
  border: 1px solid rgba(96, 165, 250, 0.36) !important;
}

.website-audit__cta h2 {
  color: #eff6ff;
}

.website-audit__cta-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.website-audit__cta-list li {
  padding: 0.35rem 0;
  color: #e2e8f0;
}

.website-audit__cta .btn-outline-light {
  border-color: rgba(191, 219, 254, 0.65);
  color: #dbeafe;
}

.website-audit__cta .btn-outline-light:hover {
  background: rgba(191, 219, 254, 0.14);
  color: #fff;
}

@media (max-width: 576px) {
  .website-audit {
    padding-top: 0.5rem;
  }

  .website-audit__container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .website-audit__header {
    padding: 1.3rem 1rem;
  }

  .website-audit__score-value {
    font-size: 1.55rem;
  }

  .website-audit__form .card-body {
    padding: 1rem !important;
  }

  .website-audit__form .input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .website-audit__form .input-group > .form-control,
  .website-audit__form .input-group > .btn {
    width: 100% !important;
    border-radius: 12px !important;
  }

  #audit-submit {
    width: 100%;
    font-size: 1.25rem;
  }

  .website-audit__meta-row {
    padding: 0.6rem 0.55rem;
  }

  .website-audit__opp-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
