/* SEO Checker — shares site.css theme tokens */

.seo-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--accent), #f43f5e);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 25px var(--accent-soft);
}

.seo-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.seo-hero h1 span {
  color: var(--accent);
}

.seo-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.seo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.35rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.seo-field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.icon-box {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.seo-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.seo-input::placeholder {
  color: var(--muted);
}

.seo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.seo-analyze-btn {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), #e11d48);
  box-shadow: 0 12px 28px var(--accent-soft);
}

.seo-analyze-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.seo-error {
  margin: 0.85rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

.video-meta {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.video-meta img {
  width: 16rem;
  max-width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--panel-2);
}

.video-meta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.channel-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.channel-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.score-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.score-ring {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #e11d48);
  padding: 0.25rem;
}

.score-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring strong {
  font-size: 1.85rem;
  color: var(--accent);
  line-height: 1;
}

.score-ring small {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.score-highlight {
  font-weight: 800;
  color: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}
.dot.pass {
  background: #10b981;
}
.dot.fail {
  background: #ef4444;
}
.dot.manual {
  background: #f59e0b;
}

.copy-btn,
.mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 0.75rem;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mark-btn.is-done {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #059669;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.report-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--accent), #e11d48);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.report-head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.check-item.pass {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.check-item.fail {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.check-item.manual {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.check-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.check-item.pass .check-icon {
  background: #10b981;
}
.check-item.fail .check-icon {
  background: #ef4444;
}
.check-item.manual .check-icon {
  background: #f59e0b;
}

.check-body {
  flex: 1;
  min-width: 0;
}

.check-body strong {
  display: block;
}

.check-body p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .seo-grid,
  .video-meta,
  .score-left {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .video-meta img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
