/* ── AI Visibility Checker ─────────────────────────────────────
   Scoped under .avc-. Reuses --bg / --bg-lift / --panel / --text /
   --text-muted / --gold / --gold-soft / --line / --container from
   style.css. The master prompt's visual-direction section assumed a
   light background with glass/acrylic panels; ehyong.com is a dark
   site throughout (#050505), so this translates that direction —
   premium, minimal, generous whitespace, glass-panel depth — into
   the site's actual palette rather than breaking it with a light
   page in the middle of a black site. */

.avc-section{ padding-block: var(--s-8, 96px); }

.avc-hero{ max-width: 720px; margin: 0 auto 48px; text-align:center; }
/* Supplied transparent artwork: preserve its full composition and reserve its height. */
.avc-hero-art{ display:block; width:min(100%, 560px); margin:16px auto 24px; }
.avc-hero-art img{ display:block; width:100%; height:auto; }
.avc-hero h1{ margin-top: 10px; }
.avc-hero p{ color: var(--text-muted); max-width: 620px; margin-inline:auto; }

/* ---------- input form ---------- */
.avc-form{
  display:flex; gap:10px; flex-wrap:wrap;
  max-width: 640px; margin: 32px auto 0;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg, 16px);
  padding: 10px;
}
.avc-input{
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
}
.avc-input::placeholder{ color: var(--text-dim); }
.avc-submit{
  flex: 0 0 auto;
  background: var(--gold);
  color: #1a1610;
  border: none;
  border-radius: var(--r-md, 12px);
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.avc-submit:hover{ filter: brightness(1.08); }
.avc-submit:active{ transform: scale(.98); }
.avc-submit:disabled{ opacity:.5; cursor:not-allowed; }

.avc-formnote{
  text-align:center; font-size:.8rem; color: var(--text-dim); margin-top:12px;
}

.avc-error{
  max-width:640px; margin:18px auto 0; padding:14px 18px;
  border:1px solid rgba(214,90,90,.4); background:rgba(214,90,90,.08);
  border-radius: var(--r-md, 12px); color:#f0c9c9; font-size:.92rem;
  display:none;
}
.avc-error.is-visible{ display:block; }

/* ---------- loading state ---------- */
.avc-loading{
  display:none;
  max-width:480px; margin:40px auto 0; text-align:center;
}
.avc-loading.is-visible{ display:block; }
.avc-loading-line{
  width:40px; height:2px; background:var(--gold); margin:0 auto 18px;
  animation: avc-pulse 1.1s ease-in-out infinite;
}
@keyframes avc-pulse{ 0%,100%{ width:24px; opacity:.5 } 50%{ width:64px; opacity:1 } }
.avc-loading-text{ color: var(--text-muted); font-size:.92rem; min-height:1.4em; }

/* ---------- report ---------- */
.avc-report{ display:none; max-width:960px; margin:56px auto 0; }
.avc-report.is-visible{ display:block; }

.avc-analyzed-url{
  text-align:center; color:var(--text-dim); font-size:.82rem;
  word-break: break-all; margin-bottom: 32px;
}

.avc-scores{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap:16px; margin-bottom:40px;
}
.avc-score-card{
  background:var(--panel); border:1px solid var(--line-soft); border-radius:var(--r-lg,16px);
  padding:24px 16px; text-align:center;
}
.avc-score-card.is-overall{ border-color: var(--line); background: var(--bg-lift); }
.avc-score-num{ font-family:"Playfair Display", Georgia, serif; font-style:italic; font-weight:600;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold-soft); line-height:1; }
.avc-score-num small{ font-size:.4em; font-style:normal; color: var(--text-dim); font-family: Inter, sans-serif; }
.avc-score-label{ margin-top:8px; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); font-weight:700; }

.avc-datanote{
  font-size:.78rem; color:var(--text-dim); text-align:center; max-width:560px; margin:0 auto 48px;
  line-height:1.6;
}
.avc-datanote button{
  background:none; border:none; color:var(--gold); text-decoration:underline; cursor:pointer; font-size:inherit; padding:0;
}

.avc-methodology{
  display:none; max-width:720px; margin:0 auto 48px; padding:20px 24px;
  background:var(--panel); border:1px solid var(--line-soft); border-radius:var(--r-lg,16px);
  font-size:.88rem; color:var(--text-muted); line-height:1.7;
}
.avc-methodology.is-visible{ display:block; }

.avc-findings-group{ margin-bottom:40px; }
.avc-findings-group h3{ margin-bottom:16px; }
.avc-finding{
  display:flex; gap:14px; align-items:flex-start;
  padding:16px 0; border-bottom:1px solid var(--line-soft);
}
.avc-finding:last-child{ border-bottom:none; }
.avc-finding-mark{ flex:0 0 auto; font-size:1.1rem; line-height:1.4; width:22px; text-align:center; }
.avc-finding-mark.pass{ color:#7fbf8e; }
.avc-finding-mark.warn{ color:var(--gold); }
.avc-finding-mark.fail{ color:#d97a7a; }
.avc-finding-body{ flex:1 1 auto; min-width:0; }
.avc-finding-title{ font-weight:700; margin-bottom:4px; }
.avc-finding-desc{ color:var(--text-muted); font-size:.92rem; line-height:1.6; }

.avc-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.avc-tag{
  font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700;
  padding:3px 9px; border-radius:999px; border:1px solid var(--line-soft); color:var(--text-dim);
}
.avc-tag.priority-critical{ color:#d97a7a; border-color:rgba(217,122,122,.4); }
.avc-tag.priority-high{ color:var(--gold); border-color:var(--line); }

.avc-codeblock{
  margin-top:10px; padding:10px 14px; background:var(--bg); border:1px solid var(--line-soft);
  border-radius:8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size:.82rem;
  color:var(--text-muted); overflow-x:auto; white-space:pre;
}
.avc-codeblock.recommended{ border-color: var(--line); color: var(--gold-soft); }

.avc-crawler-table{ width:100%; border-collapse:collapse; font-size:.9rem; }
.avc-crawler-table td{ padding:10px 8px; border-bottom:1px solid var(--line-soft); }
.avc-crawler-status{ font-weight:700; text-transform:uppercase; font-size:.72rem; letter-spacing:.06em; }
.avc-crawler-status.allowed{ color:#7fbf8e; }
.avc-crawler-status.blocked{ color:#d97a7a; }
.avc-crawler-status.unknown{ color:var(--text-dim); }

.avc-roadmap{ display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.avc-roadmap-card{
  background:var(--panel); border:1px solid var(--line-soft); border-radius:var(--r-lg,16px); padding:20px;
}
.avc-roadmap-card h4{ color:var(--gold); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.avc-roadmap-card ul{ margin:0; padding-left:18px; color:var(--text-muted); font-size:.88rem; line-height:1.7; }

.avc-cta{
  margin-top:56px; padding:32px 28px; text-align:center;
  background: var(--bg-lift); border:1px solid var(--line); border-radius: var(--r-xl,24px);
}
.avc-cta h3{ margin-bottom:10px; }
.avc-cta p{ color:var(--text-muted); max-width:520px; margin:0 auto 20px; }

@media (max-width:640px){
  .avc-form{ flex-direction:column; }
  .avc-submit{ width:100%; }
}
