/* ═══════════════════════════════════════════════════════════════
   HiTechBits — Free domain security check (check.html)
   Builds on style.css (tokens) + pages.css (header, hero, footer)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sc-pass: #34d399;
  --sc-warn: #fbbf24;
  --sc-fail: #ff5c5c;
  --sc-info: #7aa7e6;
}

/* ── form (inside the hero) ── */
.sc-form { display: flex; gap: 10px; margin-top: 1.6rem; max-width: 620px; }
.sc-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 1rem;
  font-family: var(--font-ui); font-size: 1.05rem; color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: 10px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-input::placeholder { color: var(--text-dim); }
.sc-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,158,255,0.2); }
.sc-btn {
  height: 52px; padding: 0 1.4rem; flex-shrink: 0;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: #0f1117;
  background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.sc-btn:hover { background: #74b3ff; box-shadow: 0 4px 20px rgba(79,158,255,0.35); }
.sc-btn:disabled { opacity: 0.7; cursor: progress; }
.sc-note { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-dim); max-width: 620px; line-height: 1.55; }

.sc-main { max-width: 1040px; margin: 0 auto; padding: 2rem 2rem 4rem; position: relative; z-index: 1; }

/* ── loading / error ── */
.sc-loading { display: flex; align-items: center; gap: 14px; padding: 1.4rem 1.2rem; margin-bottom: 2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.sc-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--border-hi); border-top-color: var(--accent); animation: sc-spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-spinner { animation-duration: 2.5s; } }
.sc-step { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }
.sc-error { padding: 1rem 1.2rem; margin-bottom: 2rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.55;
  color: var(--text-primary); background: rgba(255,92,92,0.08); border: 1px solid rgba(255,92,92,0.45); }

/* ── summary ── */
.sc-report { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.sc-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; margin-bottom: 1.4rem; }
.sc-grade { width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: #0f1117; }
.sc-grade.g-A { background: var(--sc-pass); }
.sc-grade.g-B { background: #a3e635; }
.sc-grade.g-C { background: var(--sc-warn); }
.sc-grade.g-D { background: #fb923c; }
.sc-grade.g-F { background: var(--sc-fail); }
.sc-domain { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; line-height: 1.25; }
.sc-verdict { font-size: 0.95rem; color: var(--text-secondary); margin: 0.2rem 0 0.55rem; }
.sc-counts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 0.75rem; }
.sc-counts .c-pass { color: var(--sc-pass); } .sc-counts .c-warn { color: var(--sc-warn); } .sc-counts .c-fail { color: var(--sc-fail); }
.sc-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); margin-top: 0.5rem; }
.sc-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sc-link-btn { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; color: var(--accent); background: transparent;
  border: 1px solid var(--border-hi); border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.sc-link-btn:hover { border-color: var(--accent); background: rgba(79,158,255,0.08); }

/* ── fix first ── */
.sc-first { background: rgba(255,92,92,0.07); border: 1px solid rgba(255,92,92,0.35); border-radius: 12px; padding: 1rem 1.2rem 1rem 1.3rem; margin-bottom: 1.6rem; }
.sc-first h3 { font-family: var(--font-display); font-size: 1rem; color: var(--sc-fail); margin-bottom: 0.5rem; }
.sc-first ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary); }
.sc-first b { color: var(--text-primary); }

/* ── groups and rows ── */
.sc-group { margin-bottom: 1.6rem; }
.sc-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem 1.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.sc-group-head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.sc-group-head p { font-size: 0.84rem; color: var(--text-dim); }
.sc-rows { list-style: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sc-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--border); }
.sc-row:last-child { border-bottom: 0; }
.sc-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #0f1117; margin-top: 1px; }
.is-pass .sc-icon { background: var(--sc-pass); } .is-warn .sc-icon { background: var(--sc-warn); }
.is-fail .sc-icon { background: var(--sc-fail); } .is-info .sc-icon { background: var(--sc-info); font-family: Georgia, serif; font-style: italic; }
.sc-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-row-title { font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; color: var(--text-primary); }
.sc-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; }
.is-pass .sc-tag { color: var(--sc-pass); } .is-warn .sc-tag { color: var(--sc-warn); } .is-fail .sc-tag { color: var(--sc-fail); } .is-info .sc-tag { color: var(--sc-info); }
.sc-row-sum { font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); margin-top: 0.25rem; }
.sc-more { margin-top: 0.45rem; }
.sc-more summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--accent); width: fit-content; }
.sc-more summary:hover { text-decoration: underline; }
.sc-fix { font-size: 0.88rem; line-height: 1.6; color: var(--text-primary); margin: 0.5rem 0 0; padding: 0.6rem 0.8rem; background: var(--bg-surface); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.sc-detail { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.6; color: var(--text-dim); margin-top: 0.5rem; white-space: pre-wrap; word-break: break-all; }
.sc-disclaimer { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; margin-top: 0.4rem; }

/* ── what we check ── */
.sc-about { margin: 1rem 0 2.5rem; }
.sc-about h2, .sc-cta h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--text-primary); margin: 0.2rem 0 1rem; letter-spacing: -0.01em; }
.sc-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.3rem; }
.sc-about-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.sc-about-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.6rem; }
.sc-about-card ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; }
.sc-about-card b { color: var(--text-primary); }

/* ── call to action ── */
.sc-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  background: linear-gradient(120deg, rgba(79,158,255,0.12), rgba(79,158,255,0.03)); border: 1px solid rgba(79,158,255,0.35); border-radius: 14px; padding: 1.5rem 1.6rem; }
.sc-cta h2 { margin-bottom: 0.4rem; }
.sc-cta p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; max-width: 620px; }
.sc-cta .btn-contact { flex-shrink: 0; }
.sc-cta-top { margin-bottom: 2rem; scroll-margin-top: 80px; }

/* ── phones ── */
@media (max-width: 768px) {
  .sc-main { padding: 1.5rem 1rem 3rem; }
  .sc-form { flex-direction: column; }
  .sc-input { flex: none; width: 100%; }
  .sc-btn { width: 100%; }
  .sc-domain { font-size: 1.15rem; }
  .sc-summary { grid-template-columns: auto minmax(0, 1fr); padding: 1.1rem; gap: 1rem; }
  .sc-grade { width: 64px; height: 64px; font-size: 2.1rem; border-radius: 14px; }
  .sc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .sc-link-btn { flex: 1; }
  .sc-about-grid { grid-template-columns: 1fr; }
  .sc-cta { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
  .sc-row { padding: 0.85rem 0.9rem; gap: 10px; }
}
