/* ── SERP Keyword Checker – Styles ──────────────────────────────────────── */

.skc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 920px;
  margin: 2rem auto;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.skc__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.skc__logo { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }

.skc__title {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: #f8fafc;
}

.skc__desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* ── Domain row ──────────────────────────────────────────────────────────── */

.skc__domain-row {
  margin-bottom: 1.5rem;
}

.skc__domain-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

.skc__domain-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.skc__domain-input::placeholder { color: #475569; font-weight: 400; }

.skc__domain-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.skc__domain-hint {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.35rem;
  display: block;
}

/* ── Keyword section ─────────────────────────────────────────────────────── */

.skc__kw-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.skc__kw-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 0.15rem 0.55rem;
}

.skc__keywords {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skc__kw-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skc__kw-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  width: 1.4rem;
  text-align: right;
  flex-shrink: 0;
}

.skc__kw-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 9px;
  font-size: 0.95rem;
  color: #f1f5f9;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.skc__kw-input::placeholder { color: #475569; }

.skc__kw-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.skc__kw-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.skc__kw-remove:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.skc__btn-add {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1.5px dashed #334155;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-bottom: 1.25rem;
}

.skc__btn-add:hover:not(:disabled) { border-color: #3b82f6; color: #3b82f6; }

/* ── Check button ────────────────────────────────────────────────────────── */

.skc__btn-check {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.skc__btn-check:hover:not(:disabled) { filter: brightness(1.12); }
.skc__btn-check:active               { transform: scale(0.99); }
.skc__btn-check:disabled             { opacity: 0.7; cursor: wait; }

/* ── Error ───────────────────────────────────────────────────────────────── */

.skc__error {
  padding: 0.85rem 1rem;
  background: #450a0a;
  border: 1.5px solid #7f1d1d;
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: none;
}

.skc__error.visible { display: block; }

/* ── Results ─────────────────────────────────────────────────────────────── */

.skc__results { display: none; }
.skc__results.visible { display: block; }

/* ── Summary bar ─────────────────────────────────────────────────────────── */

.skc__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .skc__summary { grid-template-columns: repeat(2, 1fr); }
}

.skc__sum-stat {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.skc__sum-stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.skc__sum-stat {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skc__sum-total   span { color: #f1f5f9; }
.skc__sum-ranking span { color: #22d3ee; }
.skc__sum-top10   span { color: #4ade80; }
.skc__sum-none    span { color: #f87171; }

/* ── Table ───────────────────────────────────────────────────────────────── */

.skc__table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #1e293b;
  margin-bottom: 0.75rem;
}

.skc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.skc__table thead tr {
  background: #1e293b;
}

.skc__table th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.skc__table tbody tr {
  border-top: 1px solid #1e293b;
  transition: background 0.1s;
}

.skc__table tbody tr:hover { background: #1e293b; }

.skc__table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

.skc__th-kw  { min-width: 160px; }
.skc__th-pos { width: 120px; }
.skc__th-url { min-width: 200px; }
.skc__th-serp { width: 80px; }

/* ── Position badges ─────────────────────────────────────────────────────── */

.skc__badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.skc__pos--1     { background: #854d0e; color: #fef08a; border: 1px solid #ca8a04; }
.skc__pos--top3  { background: #14532d; color: #86efac; border: 1px solid #16a34a; }
.skc__pos--top10 { background: #1e3a5f; color: #93c5fd; border: 1px solid #2563eb; }
.skc__pos--top30 { background: #431407; color: #fdba74; border: 1px solid #ea580c; }
.skc__pos--low   { background: #450a0a; color: #fca5a5; border: 1px solid #dc2626; }
.skc__pos--none  { background: #1e293b; color: #64748b; border: 1px solid #334155; }

/* ── Keyword text ────────────────────────────────────────────────────────── */

.skc__kw-text {
  font-weight: 600;
  color: #e2e8f0;
}

/* ── Ranking URL ─────────────────────────────────────────────────────────── */

.skc__ranking-url {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.82rem;
  word-break: break-all;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.skc__ranking-url:hover { text-decoration: underline; color: #7dd3fc; }

.skc__no-url { color: #334155; font-size: 0.9rem; }

/* ── SERP link ───────────────────────────────────────────────────────────── */

.skc__link-serp {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.skc__link-serp:hover { border-color: #3b82f6; color: #93c5fd; }

/* ── Error cell ──────────────────────────────────────────────────────────── */

.skc__td-err {
  color: #f87171;
  font-size: 0.83rem;
}

/* ── Footer note ─────────────────────────────────────────────────────────── */

.skc__results-note {
  font-size: 0.77rem;
  color: #475569;
  text-align: center;
  margin-top: 0.5rem;
}
