/* whois-lookup.css */

.whois-main { max-width: 720px; }

.whois-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 1.2rem;
}
.whois-hint a { color: var(--color-primary); }

.whois-loading {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.whois-error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #c00;
    font-size: 0.9rem;
}

/* ── Domain resolution banner ──────────────────────────────────────────────── */
.wh-domain-banner {
    padding: 0.55rem 1rem;
    background: #e8f4fd;
    border-bottom: 1px solid #90c4f0;
    font-size: 0.85rem;
    color: #1a5a8a;
}
.wh-domain-ips {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* ── Result card ───────────────────────────────────────────────────────────── */
.wh-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: #f0f4fa;
    border-bottom: 1px solid var(--color-border);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wh-ip-big {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.wh-rdap-link {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
}
.wh-rdap-link:hover { text-decoration: underline; }

/* ── Key-value table ───────────────────────────────────────────────────────── */
.wh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.wh-table tr { border-bottom: 1px solid #f0f0f0; }
.wh-table tr:last-child { border-bottom: none; }

.wh-key {
    padding: 0.4rem 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    width: 38%;
    vertical-align: top;
}

.wh-val {
    padding: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    word-break: break-all;
}

/* ── Contacts ──────────────────────────────────────────────────────────────── */
.wh-entities {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    border-top: 1px solid var(--color-border);
}

.wh-entities ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.8;
}

/* ── Remarks ───────────────────────────────────────────────────────────────── */
.wh-remarks {
    padding: 0.6rem 1rem;
    font-size: 0.83rem;
    color: var(--color-text-muted);
    background: #fafbfd;
    border-top: 1px solid var(--color-border);
    line-height: 1.6;
}
.wh-remarks p { margin: 0 0 0.3rem; }

/* ── Input row ─────────────────────────────────────────────────────────────── */
.input-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.input-row .tool-input { flex: 1; min-width: 200px; }

@media (max-width: 480px) {
    .input-row { flex-direction: column; }
    .wh-key, .wh-val { padding: 0.35rem 0.7rem; }
    .wh-key { width: 42%; font-size: 0.78rem; }
}
