/* ===== SW Meta Checker — style.css ===== */
:root {
  --sw-orange: #e97b33;
  --sw-blue:   #01266f;
  --sw-green:  #1a9e5c;
  --sw-yellow: #d4a017;
  --sw-red:    #d93025;
  --sw-bg:     #f8f9fb;
  --sw-card:   #ffffff;
  --sw-border: #e2e6ea;
  --sw-text:   #1a1a2e;
  --sw-muted:  #6b7280;
  --sw-radius: 12px;
  --sw-shadow: 0 2px 16px rgba(1,38,111,0.08);
}

.sw-mc-wrap * { box-sizing: border-box; }

.sw-mc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--sw-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.sw-mc-section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sw-blue);
  margin: 0 0 6px;
}

.sw-mc-intro {
  color: var(--sw-muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

/* Grid */
.sw-mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .sw-mc-grid { grid-template-columns: 1fr; }
}

/* Input panel */
.sw-mc-inputs {
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  padding: 24px;
  box-shadow: var(--sw-shadow);
}

.sw-mc-field-group { margin-bottom: 20px; }
.sw-mc-field-group:last-child { margin-bottom: 0; }

.sw-mc-field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sw-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sw-mc-optional { font-weight: 400; color: var(--sw-muted); text-transform: none; }
.sw-mc-required { color: var(--sw-orange); }

.sw-mc-field-group input,
.sw-mc-field-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--sw-border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--sw-text);
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
  outline: none;
}

.sw-mc-field-group input:focus,
.sw-mc-field-group textarea:focus { border-color: var(--sw-orange); }

/* Char bar */
.sw-mc-char-bar-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-mc-char-bar {
  flex: 1;
  height: 6px;
  background: var(--sw-border);
  border-radius: 99px;
  overflow: hidden;
}

.sw-mc-char-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  background: var(--sw-green);
  transition: width 0.15s, background 0.15s;
}

.sw-mc-char-count {
  font-size: 0.78rem;
  color: var(--sw-muted);
  white-space: nowrap;
}

/* SERP Panel */
.sw-mc-serp-panel {
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  padding: 24px;
  box-shadow: var(--sw-shadow);
  position: sticky;
  top: 80px;
}

.sw-mc-serp-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sw-blue);
  margin: 0 0 14px;
}

.sw-mc-serp-box {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 18px 20px;
  font-family: arial, sans-serif;
}

.sw-mc-serp-inner { max-width: 600px; }

.sw-mc-serp-url {
  font-size: 0.8rem;
  color: #202124;
  margin-bottom: 2px;
  word-break: break-all;
}

.sw-mc-serp-url::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23e8eaed'/%3E%3C/svg%3E") no-repeat center/contain;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 50%;
}

.sw-mc-serp-title {
  font-size: 1.1rem;
  color: #1a0dab;
  line-height: 1.4;
  cursor: pointer;
  margin-bottom: 4px;
  font-family: arial, sans-serif;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sw-mc-serp-desc {
  font-size: 0.85rem;
  color: #4d5156;
  line-height: 1.55;
  font-family: arial, sans-serif;
}

.sw-mc-serp-note {
  font-size: 0.75rem;
  color: var(--sw-muted);
  margin: 10px 0 0;
}

/* Results */
.sw-mc-results {
  margin-top: 32px;
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  padding: 28px;
  box-shadow: var(--sw-shadow);
}

/* Score circle */
.sw-mc-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sw-border);
}

.sw-mc-score-circle {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.sw-mc-score-circle svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.sw-mc-track { fill: none; stroke: var(--sw-border); stroke-width: 9; }
.sw-mc-progress {
  fill: none;
  stroke: var(--sw-orange);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.6s ease, stroke 0.4s;
}

.sw-mc-score-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
}

.sw-mc-score-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sw-blue);
  display: block;
}

.sw-mc-score-label { font-size: 0.72rem; color: var(--sw-muted); }

.sw-mc-score-summary h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--sw-blue); }
.sw-mc-score-summary p { margin: 0; font-size: 0.92rem; color: var(--sw-muted); line-height: 1.5; }

/* Sections */
.sw-mc-section { margin-bottom: 24px; }
.sw-mc-section:last-child { margin-bottom: 0; }

.sw-mc-result-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-blue);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sw-orange);
  display: inline-block;
}

/* Check items */
.sw-mc-checks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-mc-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sw-mc-check-item.pass  { background: #ecfdf5; color: #065f46; }
.sw-mc-check-item.warn  { background: #fffbeb; color: #92400e; }
.sw-mc-check-item.fail  { background: #fef2f2; color: #991b1b; }
.sw-mc-check-item.info  { background: #eff6ff; color: #1e3a8a; }

.sw-mc-check-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Suggestions */
.sw-mc-suggestions {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-mc-suggestion-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  background: #fff8f3;
  border-left: 4px solid var(--sw-orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--sw-text);
  line-height: 1.5;
}

.sw-mc-suggestion-item .sw-mc-sug-icon {
  color: var(--sw-orange);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.sw-mc-no-suggestions { font-size: 0.88rem; color: var(--sw-green); padding: 10px 0; }

@media (max-width: 600px) {
  .sw-mc-score-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sw-mc-results { padding: 18px; }
}
