/* SEO Ranker Tool Styles */

.seo-hero {
  padding: 64px 0 32px;
  text-align: center;
}
.seo-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.seo-hero .subhead {
  max-width: 620px;
  margin: 0 auto 28px;
}

/* Input row */
.seo-input-row {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  align-items: stretch;
}
.seo-input-wrap {
  flex: 1;
}
.seo-url-input {
  height: 52px;
  font-size: 16px;
  padding: 0 16px;
  border-radius: 14px;
}
.seo-analyze-btn {
  white-space: nowrap;
  padding: 0 28px;
  height: 52px;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: all 0.25s ease;
}
.seo-analyze-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.seo-disclaimer {
  margin: 14px auto 0;
  text-align: center;
}

/* Loading */
.seo-loading-card {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  max-width: 520px;
  margin: 0 auto;
}
.seo-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--accent2);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: seo-spin 0.8s linear infinite;
}
@keyframes seo-spin {
  to { transform: rotate(360deg); }
}
.seo-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.seo-load-step {
  color: var(--muted);
  font-size: 13px;
  padding-left: 22px;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.seo-load-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
}
.seo-load-step.active {
  opacity: 1;
  color: var(--text);
}
.seo-load-step.active::before {
  border-color: var(--accent2);
  background: var(--accent2);
}
.seo-load-step.done {
  opacity: 0.7;
}
.seo-load-step.done::before {
  border-color: #22c55e;
  background: #22c55e;
}

/* Error */
.seo-error-card {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 18px;
  background: rgba(239,68,68,.06);
  max-width: 520px;
  margin: 0 auto;
}
.seo-error-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239,68,68,.15);
  color: #ef4444;
  font-size: 28px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

/* Score Hero */
.seo-score-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(27,168,212,.06));
  margin-bottom: 28px;
}
.seo-score-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.seo-score-ring {
  width: 100%;
  height: 100%;
}
#score-ring-fill {
  transition: stroke-dashoffset 1.2s ease, stroke 0.5s ease;
}
.seo-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.seo-score-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}
.seo-score-of {
  font-size: 14px;
  color: var(--muted);
}
.seo-score-meta {
  flex: 1;
}
.seo-grade {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.seo-grade-label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.seo-grade-excellent { color: #22c55e; }
.seo-grade-strong { color: #3b82f6; }
.seo-grade-needs { color: #f59e0b; }
.seo-grade-critical { color: #ef4444; }

/* Category Cards */
.seo-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.seo-cat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  transition: border-color 0.2s;
}
.seo-cat-card:hover {
  border-color: rgba(124,92,255,.35);
}
.seo-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.seo-cat-name {
  font-weight: 700;
  font-size: 14px;
}
.seo-cat-score {
  font-weight: 800;
  font-size: 20px;
}
.seo-cat-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.seo-cat-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s ease;
  width: 0%;
}
.seo-cat-detail {
  font-size: 12px;
  color: var(--muted);
}
.bar-excellent { background: #22c55e; }
.bar-strong { background: #3b82f6; }
.bar-needs { background: #f59e0b; }
.bar-critical { background: #ef4444; }

/* Priority Fixes */
.seo-section-block {
  margin-bottom: 28px;
}
.seo-section-block h2 {
  margin-bottom: 16px;
}
.seo-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.seo-priority-col {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.02);
}
.seo-priority-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.seo-priority-high { color: #ef4444; }
.seo-priority-medium { color: #f59e0b; }
.seo-priority-low { color: #3b82f6; }

.seo-fix-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.seo-fix-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.seo-fix-item:last-child {
  border-bottom: none;
}
.seo-fix-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.seo-fix-detail {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.seo-fix-how {
  font-size: 12px;
  color: var(--accent2);
  padding: 6px 10px;
  background: rgba(27,168,212,.08);
  border-radius: 8px;
  margin-top: 6px;
}

/* Detailed Results */
.seo-detail-category {
  margin-bottom: 18px;
}
.seo-detail-category-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.seo-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.seo-check-row:hover {
  background: rgba(255,255,255,.03);
}
.seo-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.seo-check-pass {
  background: rgba(34,197,94,.15);
  color: #22c55e;
}
.seo-check-fail {
  background: rgba(239,68,68,.15);
  color: #ef4444;
}
.seo-check-info {
  flex: 1;
  min-width: 0;
}
.seo-check-name {
  font-weight: 700;
  font-size: 14px;
}
.seo-check-value {
  font-size: 13px;
  color: var(--muted);
  word-break: break-word;
}
.seo-check-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.seo-check-points {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Passed Checks */
.seo-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

/* Lead CTA */
.seo-cta-block {
  padding: 32px;
  border: 1px solid rgba(124,92,255,.3);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(27,168,212,.08));
  margin-top: 32px;
  text-align: center;
}
.seo-cta-block h2 {
  margin-bottom: 8px;
}
.seo-lead-form {
  max-width: 600px;
  margin: 24px auto 0;
  text-align: left;
}
.seo-lead-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 10px;
}
.seo-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.seo-lead-submit {
  width: 100%;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 14px;
}

/* What We Check grid */
.seo-what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.seo-what-grid .card ul {
  padding-left: 16px;
  margin: 0;
}
.seo-what-grid .card li {
  font-size: 13px;
  margin: 4px 0;
}
.seo-weight-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(27,168,212,.1);
  border: 1px solid rgba(27,168,212,.25);
  border-radius: 99px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .seo-categories,
  .seo-priority-grid,
  .seo-what-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-score-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .seo-check-grid {
    grid-template-columns: 1fr;
  }
  .seo-lead-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .seo-input-row {
    flex-direction: column;
  }
  .seo-analyze-btn {
    width: 100%;
  }
  .seo-categories,
  .seo-priority-grid,
  .seo-what-grid {
    grid-template-columns: 1fr;
  }
  .seo-score-ring-wrap {
    width: 130px;
    height: 130px;
  }
  .seo-score-num {
    font-size: 40px;
  }
  .seo-grade {
    font-size: 34px;
  }
}
