/* ============================================================
   BrandingLab AEO Scanner — Shared styles
   Used by: /aeo-audit and embedded in /aeo-services
   ============================================================ */

/* App container */
.audit-app {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* URL input card */
.audit-url-card {
  background: #1a1917;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2.5rem;
}
.audit-url-card h2 {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.audit-url-card p {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.5rem;
}
.audit-input-row { display: flex; gap: 0.75rem; }
.audit-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.audit-input:focus { border-color: #ff6602; }
.audit-input::placeholder { color: rgba(255,255,255,0.28); }
.audit-btn-scan {
  background: #ff6602;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.audit-btn-scan:hover { background: #e55a00; transform: translateY(-1px); }
.audit-btn-scan:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.audit-url-note {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.75rem;
  text-align: center;
}

/* Loading state */
.audit-loading {
  background: #1a1917;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.audit-loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,102,2,0.2);
  border-top-color: #ff6602;
  border-radius: 50%;
  animation: auditSpin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes auditSpin { to { transform: rotate(360deg); } }
.audit-loading-title {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.audit-loading-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.audit-loading-check {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}
.audit-loading-check.active { color: #ff6602; }
.audit-loading-check.done { color: rgba(50,200,100,0.8); }
.audit-loading-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Error */
.audit-error {
  background: rgba(255,65,65,0.08);
  border: 1px solid rgba(255,65,65,0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  font-family: Satoshi, Arial, sans-serif;
}
.audit-error-title { font-size: 1rem; font-weight: 700; color: #ff8080; margin-bottom: 0.5rem; }
.audit-error-text { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.audit-btn-retry {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
}
.audit-btn-retry:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* Results */
.audit-results { animation: auditFadeUp 0.4s ease; }
@keyframes auditFadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.audit-score-card {
  background: #1a1917;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.audit-score-ring { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.audit-score-ring svg { transform: rotate(-90deg); }
.audit-score-ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 9; }
.audit-score-ring-fill {
  fill: none; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.audit-score-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: Satoshi, Arial, sans-serif;
}
.audit-score-num { font-size: 2.25rem; font-weight: 800; color: #fff; line-height: 1; }
.audit-score-denom { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.audit-score-meta { text-align: left; flex: 1; }
.audit-score-grade {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.4rem;
}
.audit-score-desc {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.audit-score-site {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* Category breakdown */
.audit-categories {
  background: #1a1917;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.audit-cat-header-row {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.audit-cat-header-title {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.audit-cat-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.audit-cat-item:last-child { border-bottom: none; }
.audit-cat-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.audit-cat-summary:hover { background: rgba(255,255,255,0.02); }
.audit-cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.audit-cat-name {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.audit-cat-bar-wrap {
  width: 100px; height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.audit-cat-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}
.audit-cat-score-label {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 3.5rem;
  text-align: right;
  flex-shrink: 0;
}
.audit-cat-chevron {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.audit-cat-item.open .audit-cat-chevron { transform: rotate(90deg); }

/* Check list (inside accordion) */
.audit-checks {
  display: none;
  padding: 0 2rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}
.audit-cat-item.open .audit-checks { display: flex; }
.audit-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
}
.audit-check-icon { flex-shrink: 0; margin-top: 1px; font-size: 0.9rem; }
.audit-check-text { color: rgba(255,255,255,0.7); }
.audit-check-detail {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-left: 1.5rem;
  font-family: 'Courier New', monospace;
}

/* Recommendations */
.audit-recs {
  background: #1a1917;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}
.audit-recs-title {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}
.audit-rec {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.audit-rec:last-child { border-bottom: none; padding-bottom: 0; }
.audit-rec-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.7rem; font-weight: 800;
  margin-top: 2px;
}
.p-high { background: rgba(255,65,65,0.18); color: #ff8080; }
.p-med  { background: rgba(255,165,0,0.18); color: #ffa500; }
.p-low  { background: rgba(50,200,100,0.18); color: #32c864; }
.audit-rec-cat {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.2rem;
}
.audit-rec-text {
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

/* CTA */
.audit-cta {
  background: linear-gradient(135deg, rgba(255,102,2,0.13) 0%, rgba(104,64,255,0.09) 100%);
  border: 1px solid rgba(255,102,2,0.22);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.audit-cta-title { font-family: Satoshi, Arial, sans-serif; font-size: 1.375rem; font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.audit-cta-sub { font-family: Satoshi, Arial, sans-serif; font-size: 0.9375rem; color: rgba(255,255,255,0.5); line-height: 1.55; margin: 0 0 1.75rem; }
.audit-cta-btns { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

.audit-scan-again {
  text-align: center;
  font-family: Satoshi, Arial, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  background: none; border: none;
  transition: color 0.2s;
}
.audit-scan-again:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 600px) {
  .audit-url-card, .audit-loading, .audit-recs, .audit-cta { padding: 1.75rem 1.25rem; }
  .audit-input-row { flex-direction: column; }
  .audit-cat-summary { padding: 1rem 1.25rem; }
  .audit-checks { padding: 0 1.25rem 1rem; }
  .audit-score-card { padding: 2rem 1.25rem; flex-direction: column; gap: 1.5rem; }
}
