/* =========================================================
   WHOIS Abfrage – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.wh { display: grid; gap: 20px; }
.wh .tu-card__head { flex-wrap: wrap; }
.wh-form .tu-card__title { margin-bottom: 14px; }
.wh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.wh-input { height: 54px; font-size: 17px; }
.wh-go { height: 54px; padding: 0 26px; font-size: 15px; }
.wh-go:disabled { opacity: .6; cursor: progress; }
.wh-form .tu-hint { margin: 12px 0 0; }
.wh-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(91,140,255,.08); overflow-wrap: anywhere; }
.wh-status[hidden] { display: none; }
.wh-status[data-level="err"] { background: rgba(209,52,56,.08); color: #8f1f1a; }
.wh-spin { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid rgba(91,140,255,.25); border-top-color: var(--blue); animation: whSpin .8s linear infinite; }
@keyframes whSpin { to { transform: rotate(360deg); } }
.wh-result { display: grid; gap: 20px; }
.wh-result[hidden] { display: none; }
.wh.is-busy .wh-result { opacity: .45; transition: opacity .2s; }

.wh-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.wh-sum__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--blue), var(--violet)); }
.wh-sum__icon[data-state="free"] { background: linear-gradient(140deg, #22c08c, #12996c); }
.wh-sum__icon[data-state="err"] { background: linear-gradient(140deg, #e5534b, #c42d2d); }
.wh-sum__icon[data-state="ip"] { font-size: 24px; background: linear-gradient(140deg, #3f4a7a, #0f1330); }
.wh-sum__name { margin: 0; font-family: var(--mono); font-size: 22px; color: var(--ink); overflow-wrap: anywhere; }
.wh-sum__line { margin: 4px 0 0; font-size: 14.5px; color: var(--text); }
.wh-sum__line b { color: var(--ink); }

.wh-dl { margin: 0; display: grid; }
.wh-dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid rgba(15,19,48,.07); }
.wh-dl > div:first-child { border-top: 0; padding-top: 0; }
.wh-dl dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.wh-dl dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.wh-dl small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.wh-dl code { font-size: 12.5px; }
.wh-dl a { color: var(--blue); }
.wh-muted { color: var(--muted); }

.wh-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wh-codes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(15,19,48,.035); }
.wh-codes li[data-kind="lock"] { background: rgba(34,192,140,.08); }
.wh-codes li[data-kind="bad"] { background: rgba(209,52,56,.08); }
.wh-codes b { font-size: 14px; color: var(--ink); }
.wh-codes code { font-size: 11.5px; color: var(--muted); align-self: center; }
.wh-codes span { grid-column: 1 / -1; font-size: 13px; color: var(--text); }

.wh-rawbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wh-rawbar .tu-hint { margin: 0; overflow-wrap: anywhere; }
.wh-pre { max-height: 480px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wh .tu-details > summary .tu-card__title { margin: 0; }

.wh-checks li span { min-width: 0; overflow-wrap: anywhere; }
.wh-checks li b { color: var(--ink); }
.wh-checks li.is-info { background: rgba(91,140,255,.07); }
.wh-checks li.is-info::before { background-color: var(--blue); }
.wh-ns { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.wh-ns code { font-size: 12.5px; word-break: break-all; }
.wh-dns { width: 100%; justify-content: center; }
.wh-meta { margin: 0; text-align: center; }

@media (max-width: 640px) {
  .wh-row { grid-template-columns: minmax(0, 1fr); }
  .wh-sum { grid-template-columns: auto minmax(0, 1fr); }
  .wh-sum__actions { grid-column: 1 / -1; }
  .wh-sum__icon { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
  .wh-sum__name { font-size: 18px; }
  .wh-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .wh-spin { animation-duration: 2.4s; } }
