/* ========================================
   Marbos Audit – SEO & Technology Audit
   Extends style.css + reuses security.css patterns
   ======================================== */

/* Reuse loading/progress/score styles from security page */
.loading-card--wide { max-width: 620px; }

.sec-progress { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 0 8px; }
.sec-progress-row { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-secondary); }
.sec-progress-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 0.875rem; }
.sec-progress-label { flex: 1; min-width: 0; }
.sec-progress-status { font-size: 0.75rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sec-progress-status .mini-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--color-border); border-top-color: var(--marbos-violet); border-radius: 50%; animation: spin 0.75s linear infinite; }
.sec-progress-status.done { color: var(--color-good); font-weight: 700; }
.sec-progress-status.failed { color: var(--color-poor); font-weight: 700; }

.progress-bar-wrap { margin-top: 18px; height: 4px; border-radius: 2px; background: var(--color-border-light); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--marbos-violet), var(--marbos-cyan)); border-radius: 2px; transition: width 0.4s var(--ease); }

/* Overall score */
.overall-score-panel { text-align: center; padding: 32px 20px; margin-bottom: 28px; }
.overall-ring-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto 20px; }
.overall-ring-svg { width: 100%; height: 100%; }
.overall-ring-bg { stroke: var(--color-border-light); }
.overall-ring-fg { stroke: var(--color-border); stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1), stroke 0.4s; }
.overall-ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.overall-score-value { font-family: var(--font-display); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--color-text); }
.overall-grade { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-top: 4px; }
.overall-verdict { font-size: 1.0625rem; color: var(--color-text-secondary); font-weight: 600; max-width: 480px; margin: 0 auto 20px; line-height: 1.55; }

.score-color-good .overall-score-value, .score-color-good .overall-grade { color: var(--color-good); }
.score-color-good .overall-ring-fg { stroke: var(--color-good); }
.score-color-avg .overall-score-value, .score-color-avg .overall-grade { color: var(--color-avg); }
.score-color-avg .overall-ring-fg { stroke: var(--color-avg); }
.score-color-poor .overall-score-value, .score-color-poor .overall-grade { color: var(--color-poor); }
.score-color-poor .overall-ring-fg { stroke: var(--color-poor); }

/* Card body helpers */
.sec-card { animation: fadeUp 0.45s var(--ease); }
.sec-card-body { min-height: 60px; }
.sec-card-placeholder { color: var(--color-text-muted); font-size: 0.8125rem; font-style: italic; padding: 12px 0; }

/* Check row (✓ / ✗) */
.seo-check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 0.8125rem; line-height: 1.55; }
.seo-check-row--pass { background: var(--color-good-bg); }
.seo-check-row--fail { background: var(--color-poor-bg); opacity: 0.85; }
.seo-check-row--warn { background: var(--color-avg-bg); }
.seo-check-icon { flex-shrink: 0; font-size: 1rem; width: 20px; text-align: center; }
.seo-check-label { font-weight: 700; color: var(--color-text); min-width: 130px; flex-shrink: 0; }
.seo-check-value { flex: 1; color: var(--color-text-secondary); word-break: break-word; }
.seo-check-meta { font-size: 0.6875rem; color: var(--color-text-muted); margin-top: 2px; }

/* Heading tree */
.heading-tree { background: var(--color-bg-elevated); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 14px; font-size: 0.8125rem; font-family: monospace; line-height: 1.7; overflow-x: auto; color: var(--color-text-secondary); }
.heading-tree .ht-tag { color: var(--marbos-violet); font-weight: 700; }
.heading-tree .ht-warn { color: var(--color-poor); font-weight: 700; }

/* Tech badges */
.tech-category { margin-bottom: 16px; }
.tech-category:last-child { margin-bottom: 0; }
.tech-cat-label { font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; border: 1px solid var(--color-border-light); background: var(--color-bg-elevated); color: var(--color-text); }
.tech-badge--cms { border-color: rgba(99,91,255,0.2); background: var(--color-primary-light); color: var(--marbos-violet); }
.tech-badge--server { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.06); color: #0891b2; }
.tech-badge--analytics { border-color: rgba(234,179,8,0.2); background: var(--color-avg-bg); color: var(--color-avg); }
.tech-badge--framework { border-color: rgba(34,197,94,0.2); background: var(--color-good-bg); color: var(--color-good); }

/* Schema badges */
.schema-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.schema-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; background: var(--color-primary-light); color: var(--marbos-violet); border: 1px solid rgba(99,91,255,0.15); }
.schema-code { background: var(--color-bg-elevated); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 12px; font-size: 0.6875rem; font-family: monospace; line-height: 1.6; max-height: 200px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--color-text-secondary); }

/* Social preview mockup */
.og-preview { background: var(--color-bg-elevated); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); overflow: hidden; max-width: 500px; margin: 0 auto 18px; }
.og-preview-img { width: 100%; height: auto; max-height: 260px; object-fit: cover; display: block; background: var(--color-border-light); }
.og-preview-img-placeholder { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; background: var(--color-border-light); color: var(--color-text-muted); font-size: 0.8125rem; }
.og-preview-body { padding: 14px 16px; }
.og-preview-url { font-size: 0.6875rem; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: 4px; }
.og-preview-title { font-size: 0.9375rem; font-weight: 800; color: var(--color-text); line-height: 1.35; margin-bottom: 4px; }
.og-preview-desc { font-size: 0.8125rem; color: var(--color-text-secondary); line-height: 1.45; }

/* Code block (robots.txt) */
.code-block { background: var(--color-bg-elevated); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.75rem; font-family: monospace; line-height: 1.65; overflow-x: auto; white-space: pre-wrap; word-break: break-all; color: var(--color-text-secondary); max-height: 300px; overflow-y: auto; }

/* Missed opportunities (reuse compare.css pattern) */
.missed-opportunities { position: relative; border: none; padding: 0; overflow: hidden; }
.missed-border { position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 2px; background: linear-gradient(135deg, var(--marbos-violet), var(--marbos-cyan)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.missed-inner { padding: clamp(20px,3vw,28px); background: linear-gradient(180deg,#fafaff 0%,#f5f5ff 100%); border-radius: var(--radius-lg); }
.missed-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.8125rem; line-height: 1.65; color: var(--color-text-secondary); }
.missed-item:last-child { border-bottom: none; }
.missed-severity { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
.missed-cta { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(99,91,255,0.15); text-align: center; }
.btn-missed-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 0.875rem; font-weight: 700; font-family: var(--font); color: #fff; background: linear-gradient(135deg, var(--marbos-violet) 0%, #4f46e5 100%); border: none; border-radius: var(--radius-full); text-decoration: none; cursor: pointer; transition: box-shadow var(--duration) var(--ease), transform 0.12s var(--ease); }
.btn-missed-cta:hover { box-shadow: 0 8px 28px rgba(99,91,255,0.35); transform: translateY(-1px); }

/* Verdict helper */
.seo-verdict { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.seo-verdict--good { background: var(--color-good-bg); color: var(--color-good); }
.seo-verdict--warn { background: var(--color-avg-bg); color: var(--color-avg); }
.seo-verdict--bad  { background: var(--color-poor-bg); color: var(--color-poor); }

/* Responsive */
@media (max-width: 768px) {
    .overall-ring-wrap { width: 150px; height: 150px; }
    .overall-score-value { font-size: 2.5rem; }
    .seo-check-row { flex-wrap: wrap; }
    .seo-check-label { min-width: 0; width: 100%; }
    .og-preview { max-width: 100%; }
}
