/* Free SEO audit tool (v1.6.0). Uses the theme tokens from main.css. */

.wsm-steps { margin: 0 0 22px; padding-left: 20px; color: var(--charcoal); }
.wsm-steps li { margin-bottom: 6px; }
.wsm-btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.wsm-btn--ghost:hover { border-color: var(--navy); }
.wsm-btn:disabled { opacity: 0.6; cursor: wait; }
.wsm-grad { background: linear-gradient(90deg, var(--orange), #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wsm-no-print { }

/* Loader */
.wsm-audit__loading { text-align: center; padding: 36px 24px; }
.wsm-loader { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.wsm-loader span { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); animation: wsm-audit-bounce 1s infinite ease-in-out; }
.wsm-loader span:nth-child(2) { animation-delay: 0.15s; }
.wsm-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wsm-audit-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-10px); opacity: 1; } }
.wsm-loader__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 14px; }
.wsm-loader__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; text-align: left; }
.wsm-loader__steps li { padding: 6px 0; color: rgba(27,29,44,0.45); transition: color 0.3s; }
.wsm-loader__steps li.is-active { color: var(--navy); font-weight: 600; }
.wsm-loader__steps li.is-done { color: var(--navy); }
.wsm-loader__steps li.is-done::before { content: "\2713  "; color: var(--orange-dark); font-weight: 700; }
.wsm-loader__steps li[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .wsm-loader span { animation: none; } }

/* Report header */
.wsm-report__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.wsm-report__head .wsm-h2 { font-size: clamp(1.4rem, 3vw, 2rem); word-break: break-all; }
.wsm-report__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wsm-report__actions .wsm-btn { padding: 10px 16px; font-size: 0.95rem; }
.wsm-status { min-height: 1.4em; color: var(--charcoal); font-size: 0.92rem; }

/* Score dashboard */
.wsm-score-grid { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 28px; align-items: start; margin: 12px 0 26px; }
.wsm-score-main { text-align: center; }
.wsm-score-main h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.wsm-ring { --p: 0; --c: var(--orange); width: 180px; height: 180px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), #e7ebf4 0); position: relative; }
.wsm-ring::before { content: ""; position: absolute; inset: 14px; background: var(--white); border-radius: 50%; }
.wsm-ring span { position: relative; font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--navy); }
.wsm-ring--good { --c: #1f9d55; }
.wsm-ring--ok { --c: var(--orange); }
.wsm-ring--low { --c: #d64545; }
.wsm-ring--na { --c: #9aa0ad; }
.wsm-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wsm-cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--white); }
.wsm-cat__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wsm-cat__top h4 { margin: 0; font-size: 1rem; }
.wsm-cat__val { font-family: var(--font-display); font-size: 1.4rem; }
.wsm-bar { height: 8px; background: #e7ebf4; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.wsm-bar__fill { display: block; height: 100%; border-radius: 99px; background: var(--orange); transition: width 0.8s var(--ease); }
.wsm-bar__fill--good { background: #1f9d55; }
.wsm-bar__fill--low { background: #d64545; }
.wsm-cat__how { font-size: 0.86rem; color: var(--charcoal); margin: 0; }

/* Severity chips */
.wsm-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.wsm-chip { border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 7px 12px; border-radius: 99px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.wsm-chip b { margin-left: 4px; }
.wsm-chip:hover { border-color: var(--navy); }
.wsm-chip--critical { border-color: #d64545; }
.wsm-chip--high { border-color: #e4762b; }
.wsm-chip--medium { border-color: #d6a51a; }
.wsm-chip--low { border-color: #3b82c4; }
.wsm-chip--passed { border-color: #1f9d55; }

/* Issues */
.wsm-issues { display: grid; gap: 12px; margin-bottom: 26px; }
.wsm-issue { border: 1px solid var(--line); border-left: 5px solid #9aa0ad; border-radius: var(--radius); padding: 16px 18px; background: var(--white); }
.wsm-issue[hidden] { display: none; }
.wsm-issue--critical { border-left-color: #d64545; }
.wsm-issue--high { border-left-color: #e4762b; }
.wsm-issue--medium { border-left-color: #d6a51a; }
.wsm-issue--low { border-left-color: #3b82c4; }
.wsm-issue header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.wsm-issue h4 { margin: 0; font-size: 1.05rem; }
.wsm-sev { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; color: var(--white); background: #9aa0ad; }
.wsm-sev--critical { background: #d64545; }
.wsm-sev--high { background: #e4762b; }
.wsm-sev--medium { background: #d6a51a; color: var(--navy); }
.wsm-sev--low { background: #3b82c4; }
.wsm-issue dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: 0.93rem; }
.wsm-issue dt { font-weight: 600; color: var(--navy); }
.wsm-issue dd { margin: 0; color: var(--charcoal); word-break: break-word; }

.wsm-passed { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.wsm-passed li { padding: 10px 14px; border-radius: 12px; background: rgba(31,157,85,0.08); font-size: 0.92rem; }
.wsm-passed li span { display: block; color: var(--charcoal); font-size: 0.85rem; word-break: break-word; }

.wsm-metrics { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 0.93rem; margin: 0 0 24px; }
.wsm-metrics dt { font-weight: 600; }
.wsm-metrics dd { margin: 0; color: var(--charcoal); word-break: break-word; }

.wsm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.wsm-tag { display: inline-block; padding: 6px 12px; border-radius: 99px; background: rgba(239,157,39,0.14); font-size: 0.9rem; }
.wsm-tag em { font-style: normal; opacity: 0.6; }
.wsm-tag--lg { font-size: 1.05rem; padding: 8px 14px; font-weight: 600; }

.wsm-copy { border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; color: var(--navy); white-space: nowrap; }
.wsm-copy:hover { border-color: var(--navy); }

/* Suggestions (audit result) */
.wsm-report .wsm-suggest li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wsm-report .wsm-suggest li span { flex: 1 1 280px; word-break: break-word; }
.wsm-report .wsm-suggest li.is-over em { color: #b42323; font-weight: 600; }

/* Meta generator */
.wsm-form__full { display: block; margin-bottom: 18px; }
.wsm-form__full textarea { width: 100%; }
.wsm-meta__kw { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; }
.wsm-meta__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wsm-meta-list { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 10px; }
.wsm-meta-item { display: flex; gap: 14px; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--white); }
.wsm-meta-item p { margin: 0; word-break: break-word; }
.wsm-meta-count { font-size: 0.82rem; color: var(--charcoal); margin-top: 4px !important; }
.wsm-meta-item.is-over { border-color: #d64545; background: rgba(214,69,69,0.05); }
.wsm-meta-item.is-over .wsm-meta-count { color: #b42323; font-weight: 600; }
.wsm-meta-item.is-over b { color: #b42323; }
.wsm-meta-item > div { flex: 1; min-width: 0; }

/* Print: PDF through the browser's Save as PDF. Only the report is printed, with the brand header. */
.wsm-print-head { display: none; }
@media print {
	body * { visibility: hidden !important; }
	#wsm-audit-result, #wsm-audit-result * { visibility: visible !important; }
	#wsm-audit-result { position: absolute; left: 0; top: 0; width: 100%; padding: 0; margin: 0; box-shadow: none; }
	.wsm-no-print, .wsm-chip, .wsm-copy, #wsm-status, .wsm-print-hide { display: none !important; }
	.wsm-issue, .wsm-cat, .wsm-passed li, .wsm-passed { break-inside: avoid; }
	.wsm-print-head { display: flex !important; gap: 16px; align-items: center; border-bottom: 2px solid var(--orange); padding-bottom: 10px; margin-bottom: 18px; font-size: 12px; }
	.wsm-print-head img { width: 180px; height: auto; background: var(--navy); padding: 6px 10px; border-radius: 8px; }
	.wsm-print-foot { display: block !important; font-size: 11px; }
	.wsm-ring, .wsm-bar__fill, .wsm-sev, .wsm-issue, .wsm-passed li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.wsm-issue[hidden] { display: none !important; }
}
.wsm-print-foot { display: none; }
@media print { .wsm-print-foot { display: block; } }

/* Mobile */
@media (max-width: 760px) {
	.wsm-score-grid { grid-template-columns: 1fr; }
	.wsm-cats { grid-template-columns: 1fr; }
	.wsm-issue dl { grid-template-columns: 1fr; gap: 2px; }
	.wsm-issue dt { margin-top: 8px; }
	.wsm-metrics { grid-template-columns: 1fr; gap: 2px; }
	.wsm-metrics dt { margin-top: 8px; }
	.wsm-meta__kw { grid-template-columns: 1fr; }
	.wsm-meta-item { flex-direction: column; align-items: stretch; }
	.wsm-report__actions .wsm-btn { flex: 1 1 auto; text-align: center; }
	.wsm-ring { width: 150px; height: 150px; }
	.wsm-ring span { font-size: 2.6rem; }
}
