/* ═══════════════════════════════════════════════════════════════
   Maya Standard — SEO Audit Page Styles
   Brand tokens synced with style.css — July 2026
   ═══════════════════════════════════════════════════════════════ */

/* ── Audit Hero ── */
.audit-hero {
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 70px);
  text-align: center;
}

.audit-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.audit-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.audit-hero h1 .accent {
  color: var(--teal);
}

.audit-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── URL Input Bar ── */
.audit-input-wrap {
  display: flex;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
  align-items: stretch;
}

.audit-url-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.audit-url-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.audit-url-input:focus {
  border-color: var(--orange);
}

.audit-url-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.audit-scan-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-scan-btn:hover:not(:disabled) {
  background: var(--teal-mid);
  transform: translateY(-2px);
}

.audit-scan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Spinner ── */
.audit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auditSpin 0.6s linear infinite;
}

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

/* ── Error / Rate Limit ── */
.audit-error {
  display: none;
  max-width: 580px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  background: var(--orange-dim);
  border: 1px solid rgba(242, 140, 40, 0.3);
  color: var(--orange);
}

.audit-error.visible {
  display: block;
}

/* ── Progress Bar ── */
.audit-progress-wrap {
  display: none;
  max-width: 580px;
  margin: 20px auto 0;
}

.audit-progress-wrap.visible {
  display: block;
}

.audit-progress-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: center;
}

.audit-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.audit-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Results Section ── */
.audit-results {
  display: none;
  padding: 0 clamp(20px, 5vw, 80px) clamp(60px, 10vw, 100px);
}

.audit-results.visible {
  display: block;
}

.audit-results-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.audit-results h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.audit-results-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ── Score Summary Bar ── */
.audit-score-summary {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.audit-score-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-score-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.audit-score-chip.pass .dot { background: var(--teal); }
.audit-score-chip.warn .dot { background: var(--orange); }
.audit-score-chip.fail .dot { background: #e74c3c; }

.audit-score-chip.pass { color: var(--teal); border-color: rgba(42, 122, 78, 0.3); }
.audit-score-chip.warn { color: var(--orange); border-color: rgba(242, 140, 40, 0.3); }
.audit-score-chip.fail { color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); }

/* ── Results Grid ── */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .audit-grid {
    grid-template-columns: 1fr;
  }
  .audit-input-wrap {
    flex-direction: column;
  }
  .audit-scan-btn {
    justify-content: center;
  }
}

/* ── Result Card ── */
.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all var(--transition);
}

.audit-card:hover {
  border-color: rgba(42, 122, 78, 0.3);
  transform: translateY(-2px);
}

.audit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.audit-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.audit-card-icon.crawl   { background: var(--teal-dim); }
.audit-card-icon.speed   { background: var(--orange-dim); }
.audit-card-icon.mobile  { background: rgba(108, 99, 255, 0.15); }
.audit-card-icon.onseo   { background: rgba(242, 140, 40, 0.12); }
.audit-card-icon.tech    { background: rgba(42, 122, 78, 0.12); }
.audit-card-icon.schema  { background: rgba(108, 99, 255, 0.12); }
.audit-card-icon.content { background: rgba(242, 140, 40, 0.1); }

.audit-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.audit-card-badge.pass { background: var(--teal-dim); color: var(--teal); }
.audit-card-badge.warn { background: var(--orange-dim); color: var(--orange); }
.audit-card-badge.fail { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.audit-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.audit-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-card ul li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.audit-card ul li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.audit-card ul li.pass-item::before { content: '✓'; color: var(--teal); }
.audit-card ul li.warn-item::before { content: '!'; color: var(--orange); }
.audit-card ul li.fail-item::before { content: '✗'; color: #e74c3c; }
.audit-card ul li.info-item::before { content: '•'; color: var(--muted); }

/* ── Scores within cards ── */
.audit-card-score {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.audit-card-score.good  { color: var(--teal); }
.audit-card-score.ok    { color: var(--orange); }
.audit-card-score.bad   { color: #e74c3c; }

.audit-card-score-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── CTA Section ── */
.audit-cta {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 80px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audit-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.audit-cta p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ── Security Audit Teaser ── */
.audit-teaser {
  padding: clamp(40px, 6vw, 60px) clamp(20px, 5vw, 80px);
  text-align: center;
}

.audit-teaser-card {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 36px;
  max-width: 440px;
  transition: all var(--transition);
}

.audit-teaser-card:hover {
  border-color: rgba(242, 140, 40, 0.3);
  transform: translateY(-2px);
}

.audit-teaser-badge {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.audit-teaser-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.audit-teaser-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Tab Toggle ── */
.audit-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.audit-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.audit-tab:hover {
  border-color: var(--orange);
  color: var(--white);
}

.audit-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}
