:root {
  --primary: #14334c;
  --secondary: #5a6b7a;
  --secondary-soft: #eceff3;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --ink: #14334c;
  --text: #14334c;
  --muted: #5a6b7a;
  --line: #e4e9ee;
  --card: #ffffff;
  --bg-2: var(--surface-2);
  --brand: var(--primary);
  --pass: #2f9e44;
  --pass-bg: color-mix(in srgb, var(--pass) 12%, white);
  --warn: #b45309;
  --warn-bg: #fff4e5;
  --fail: #be123c;
  --fail-bg: #fde8ee;
  --info: #334155;
  --info-bg: #eef2f6;
  --shadow: 0 12px 40px rgba(15, 41, 66, 0.08);
  --radius: 0.5rem;
}

* { box-sizing: border-box; }

/* Embedded in wnm.com.tr AppChrome — scope tool chrome, not site header/footer. */
.wnm-seo-analiz {
  margin-bottom: 5rem;
  color: var(--text);
  line-height: 1.625;
}

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.hero { padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 20ch;
  color: var(--text);
}
.lede { max-width: 62ch; color: var(--muted); margin: 0 0 28px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
input:focus { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); border-color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.wnm-seo-analiz button#submit-btn,
.wnm-seo-analiz button:not(.wnm-menu-toggle):not(.wnm-mobile-backdrop):not(.wnm-mobile-expand) {
  border: 0;
  border-radius: 4em;
  padding: 0.65em 1.5em;
  font: inherit;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.wnm-seo-analiz button#submit-btn:hover:not(:disabled),
.wnm-seo-analiz button:not(.wnm-menu-toggle):not(.wnm-mobile-backdrop):not(.wnm-mobile-expand):hover:not(:disabled) {
  background: #1a4060;
}
button:disabled { opacity: 0.65; cursor: wait; }
button.ghost {
  background: transparent;
  color: var(--brand-2);
  border: 1px solid var(--line);
}
.hint { margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; }

.status, .results { padding-bottom: 56px; }
/* Scoped — global .hidden breaks SiteHeader (hidden xl:flex). */
.wnm-seo-analiz .hidden { display: none !important; }

.loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d7e5df;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box {
  background: var(--fail-bg);
  color: #881337;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 16px 18px;
}

.report-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 8px 0 22px;
}
.gauge {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: conic-gradient(var(--g-color) calc(var(--score) * 1%), #e4ebe6 0);
  position: relative;
}
.gauge::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: var(--card);
  border-radius: 50%;
}
.gauge-value {
  position: relative;
  z-index: 1;
  text-align: center;
}
.gauge-value strong {
  display: block;
  font-size: 3rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
.gauge-value span { color: var(--muted); font-size: 0.86rem; font-weight: 700; }

.ready { color: var(--primary); font-weight: 700; margin: 0 0 6px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.report-head h2 { margin: 0 0 8px; letter-spacing: -0.03em; font-size: 1.55rem; }
.score-of { color: var(--muted); margin: 0 0 16px; }
.meta-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.meta-grid div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 0.94rem;
}
.meta-grid dt { color: var(--muted); font-weight: 700; }
.meta-grid dd { margin: 0; word-break: break-word; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}
.pill.pass { background: var(--pass-bg); color: var(--pass); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.fail { background: var(--fail-bg); color: var(--fail); }
.report-head__main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  justify-content: flex-end;
}
.wnm-seo-analiz .btn-pdf-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4em;
  padding: 0.55em 1.15em;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.wnm-seo-analiz .btn-pdf-print:hover {
  background: var(--secondary-soft);
  border-color: var(--primary);
}
.wnm-seo-analiz .btn-pdf-print svg {
  flex-shrink: 0;
  color: var(--primary);
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}
.section > summary::-webkit-details-marker { display: none; }
.section-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.section-blurb { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.section-score {
  min-width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--bg-2);
}
.checks { border-top: 1px solid var(--line); }

.check {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #edf2ee;
}
.check:last-child { border-bottom: 0; }
.icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.icon.pass { background: var(--pass); color: #fff; }
.icon.warn { background: var(--warn); color: #fff; }
.icon.fail { background: var(--fail); color: #fff; }
.icon.info { background: #64748b; color: #fff; }
.check h4 { margin: 0 0 4px; font-size: 1rem; }
.check p { margin: 0; color: var(--muted); }
.check details { margin-top: 8px; }
.check details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}
.learn {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
}
.learn strong { display: block; margin-bottom: 4px; }

@media (max-width: 800px) {
  .fields, .report-head, .meta-grid div { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

@media print {
  .wnm-seo-analiz { background: #fff; }
  .no-print { display: none !important; }
  .section { break-inside: avoid; box-shadow: none; }
  .section { display: block !important; }
  .wnm-seo-analiz .hidden { display: none !important; }
  .report-head { box-shadow: none; }
}
