/* ── HTTP Status Checker ─────────────────────────────────────────────── */

/* Tool icon */
.tool-icon--hs {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
}

/* Form */
.hs-form .form-row {
  display: flex;
  gap: 10px;
}

.hs-input-wrap {
  flex: 1;
}

.hs-form .input {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--mono);
  transition: border-color .2s, box-shadow .2s;
}

.hs-form .input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 138, 248, .3);
}

.hs-form .hs-submit {
  min-height: 44px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s, filter .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-form .hs-submit:hover   { transform: scale(1.02); filter: brightness(1.1); }
.hs-form .hs-submit:active  { transform: scale(0.98); }
.hs-form .hs-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* Error */
.hs-error {
  color: var(--red);
  font-size: 14px;
  margin-top: 16px;
  animation: fadeInUp .3s var(--ease-out);
}

/* Badge */
.hs-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
  animation: fadeInUp .3s var(--ease-out);
}

.hs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 40px;
  border-radius: 16px;
  border: 2px solid;
  min-width: 180px;
}

.hs-badge-code {
  font-size: 56px;
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
}

.hs-badge-msg {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Badge variants */
.hs-badge--2xx {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .07);
  color: #22c55e;
}

.hs-badge--3xx {
  border-color: rgba(91, 138, 248, .35);
  background: rgba(91, 138, 248, .07);
  color: var(--accent);
}

.hs-badge--4xx {
  border-color: rgba(250, 173, 20, .35);
  background: rgba(250, 173, 20, .07);
  color: var(--yellow);
}

.hs-badge--5xx {
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .07);
  color: var(--red);
}

.hs-badge--unknown {
  border-color: var(--border2);
  background: var(--surface2);
  color: var(--muted);
}

/* Result grid */
.hs-result-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp .4s var(--ease-out);
}

.hs-result-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.hs-result-row:last-child {
  border-bottom: none;
}

.hs-result-label {
  flex: 0 0 140px;
  color: var(--muted);
  font-size: 12px;
  padding-top: 1px;
}

.hs-result-value {
  flex: 1;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

.hs-cached-note {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* SEO: HTTP codes reference */
.hs-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hs-codes-group {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.hs-codes-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hs-codes-title--2xx { color: #22c55e; }
.hs-codes-title--3xx { color: var(--accent); }
.hs-codes-title--4xx { color: var(--yellow); }
.hs-codes-title--5xx { color: var(--red); }

.hs-codes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-codes-list li {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.45;
}

.hs-codes-list li strong {
  color: var(--text);
  font-family: var(--mono);
}

/* Mobile */
@media (max-width: 600px) {
  .hs-form .form-row { flex-direction: column; }
  .hs-form .hs-submit { width: 100%; justify-content: center; }
  .hs-badge { padding: 20px 28px; }
  .hs-badge-code { font-size: 44px; }
  .hs-result-label { flex: 0 0 110px; }
  .hs-codes-grid { grid-template-columns: 1fr; }
}
