/* ==========================================================================
   HostRomeo WHOIS lookup page (whois-lookup.html)
   Builds on hr-guides.css (cards, notes, buttons) in the brand style.
   ========================================================================== */

/* ---- search box in the hero ---- */
.hrw-search { max-width: 760px; margin: 0 auto; }
.hrw-form {
    display: flex; align-items: center; gap: 8px;
    padding: 8px; border-radius: 18px; background: #fff;
    box-shadow: 0 24px 60px -24px rgba(14, 7, 38, .75), 0 0 0 6px rgba(255, 255, 255, .08);
}
.hrw-form__ico { flex: none; width: 44px; text-align: center; color: #8A3FFC; font-size: 18px; }
.hrw-form input {
    flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent;
    font: 600 18px/1.2 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #161c2d;
}
.hrw-form input::placeholder { color: #9aa1b4; font-weight: 500; }
.hrw-form button {
    flex: none; height: 54px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #FF2E93 0%, #8A3FFC 100%); color: #fff;
    font: 800 16px/1 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 12px 26px -12px rgba(255, 46, 147, .8);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.hrw-form button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(255, 46, 147, .9); }
.hrw-form button:disabled { opacity: .65; cursor: progress; transform: none; }
.hrw-form:focus-within { box-shadow: 0 24px 60px -24px rgba(14, 7, 38, .75), 0 0 0 6px rgba(255, 46, 147, .28); }
.hrw-try { margin: 18px 0 0; color: rgba(255, 255, 255, .75); font-size: 14px; text-align: center; }
.hrw-try button {
    margin: 4px 3px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
    font: 600 13px/1.4 inherit; transition: background .2s, border-color .2s;
}
.hrw-try button:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
@media (max-width: 575px) {
    .hrw-form { flex-wrap: wrap; padding: 8px; }
    .hrw-form__ico { display: none; }
    .hrw-form input { flex-basis: 100%; height: 50px; padding: 0 12px; font-size: 16px; }
    .hrw-form button { width: 100%; height: 50px; }
}

/* ---- results area ---- */
.hrw-result { scroll-margin-top: 90px; }
.hrw-result:empty { display: none; }
.hrw-card {
    margin-top: 6px; padding: 30px; border-radius: 22px; background: #fff;
    border: 1px solid #ece6fb; box-shadow: 0 26px 60px -38px rgba(42, 22, 96, .55);
    animation: hrw-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hrw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hrw-card { animation: none; } }
.hrw-card--free { background: linear-gradient(135deg, #fff 0%, #fff6fb 100%); border-color: #ffd3e8; }
.hrw-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.hrw-domain { margin: 10px 0 4px !important; font-size: clamp(24px, 3.4vw, 34px) !important; word-break: break-word; }
.hrw-sub { margin: 0; }
.hrw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hrw-actions--row { margin-top: 4px; }
.hrw-actions .hrg-btn, .hrw-actions button.hrg-btn { border: 0; cursor: pointer; font-family: inherit; }

.hrw-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.hrw-badge.is-taken { background: #f1eaff; color: #6b2bd9; }
.hrw-badge.is-free { background: linear-gradient(135deg, #FF2E93, #8A3FFC); color: #fff; }
.hrw-badge.is-unknown { background: #fff1e0; color: #b45309; }

/* key facts */
.hrw-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1099px) { .hrw-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hrw-facts { grid-template-columns: 1fr; } }
.hrw-fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: #fbf9ff; border: 1px solid #ece6fb; min-width: 0; }
.hrw-fact .hrg-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; background: #fff; }
.hrw-fact div { min-width: 0; }
.hrw-fact small { display: block; color: #5b6478; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.hrw-fact b { display: block; margin-top: 2px; color: #161c2d; font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.hrw-fact b a { color: #6b2bd9; }
.hrw-fact div > span { display: block; margin-top: 2px; color: #5b6478; font-size: 12.5px; }
.hrw-fact.is-warn { background: #fff8eb; border-color: #fde2b3; }
.hrw-fact.is-warn div > span { color: #b45309; font-weight: 700; }
.hrw-fact.is-bad { background: #fff0f6; border-color: #ffc6df; }
.hrw-fact.is-bad div > span { color: #d6246e; font-weight: 700; }

/* two-column boxes */
.hrw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 767px) { .hrw-cols { grid-template-columns: 1fr; } }
.hrw-box { padding: 20px 22px; border-radius: 16px; border: 1px solid #ece6fb; background: #fff; min-width: 0; }
.hrw-box h3 { display: flex; align-items: center; gap: 9px; font-size: 16px !important; margin-bottom: 12px !important; }
.hrw-box h3 i { color: #8A3FFC; }
.hrw-muted { margin: 0; font-size: 14.5px !important; }
.hrw-muted i { color: #8A3FFC; margin-right: 4px; }
.hrw-mini { margin: 12px 0 0; font-size: 13.5px !important; }
.hrw-mini b { color: #161c2d; }
.hrw-ns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hrw-ns li {
    margin: 0; padding: 8px 12px; border-radius: 10px; background: #f6f3ff; color: #161c2d !important;
    font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere;
}
.hrw-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hrw-status li { margin: 0; padding: 10px 12px 10px 14px; border-radius: 10px; background: #fbf9ff; border-left: 3px solid #8A3FFC; font-size: 13.5px !important; line-height: 1.5 !important; }
.hrw-status li b { color: #161c2d; margin-right: 6px; }
.hrw-status li code { font-size: 11.5px; color: #6b2bd9; background: #f1eaff; padding: 1px 6px; border-radius: 6px; }
.hrw-status li span { display: block; margin-top: 3px; color: #5b6478; }
.hrw-status li.is-lock { border-left-color: #FF2E93; }
.hrw-status li.is-warn { border-left-color: #f59e0b; background: #fffaf0; }
.hrw-status li.is-ok { border-left-color: #22c55e; }
.hrw-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14.5px; }
.hrw-dl dt { color: #5b6478; font-weight: 700; }
.hrw-dl dd { margin: 0; color: #161c2d; overflow-wrap: anywhere; }

.hrw-card .hrg-note { margin: 4px 0 18px; }
.hrw-alt p { margin: 0 0 10px; }
.hrw-alt b { color: #161c2d; }
.hrw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hrw-chip {
    padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid #e6dafc; background: #fff;
    color: #161c2d; font: 600 14px/1.3 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: border-color .2s, background .2s, transform .2s;
}
.hrw-chip b { color: #FF2E93; font-weight: 800; }
.hrw-chip:hover { border-color: #c9b0ff; background: #f6f3ff; transform: translateY(-1px); }

.hrw-card__foot {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 16px; border-top: 1px dashed #e6dafc; color: #5b6478; font-size: 13px;
}
.hrw-card__foot a { font-size: 13px; }
.hrw-raw { margin-top: 14px; }
.hrw-raw summary { cursor: pointer; color: #6b2bd9; font-weight: 700; font-size: 14px; }
.hrw-raw pre {
    max-height: 420px; overflow: auto; margin: 12px 0 0; padding: 16px; border-radius: 14px;
    background: #0e0726; color: #e9e3ff; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}

.hrw-loading { display: flex; align-items: center; gap: 16px; }
.hrw-loading p { margin: 0; }
.hrw-spin {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid #ece6fb; border-top-color: #FF2E93; border-right-color: #8A3FFC;
    animation: hrw-spin .8s linear infinite;
}
@keyframes hrw-spin { to { transform: rotate(360deg); } }
.hrw-error { padding: 18px 22px; border-radius: 16px; background: #fff0f6; border: 1px solid #ffc6df; color: #a3134f; font-weight: 600; }

/* status code reference table */
.hrw-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hrw-code { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #ece6fb; }
.hrw-code code { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 6px; background: #f1eaff; color: #6b2bd9; font-size: 12.5px; font-weight: 700; }
.hrw-code p { margin: 0; font-size: 14px !important; line-height: 1.6 !important; }

/* FAQ */
.hrw-faq { display: grid; gap: 10px; }
.hrw-faq details { border-radius: 14px; background: #fff; border: 1px solid #ece6fb; padding: 0 20px; }
.hrw-faq summary {
    list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
    color: #161c2d; font-weight: 800; font-size: 16px;
}
.hrw-faq summary::-webkit-details-marker { display: none; }
.hrw-faq summary::after {
    content: "\f067"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 13px;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #8A3FFC; transition: transform .2s;
}
.hrw-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hrw-faq details p { margin: 0 0 18px; }

.hrw-search .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* keep the search clickable above the hero's decorative wave */
.hrw-search { position: relative; z-index: 5; }
.hr-page-whois-lookup .hero-area-coodiv .wave-shape-bottom { pointer-events: none; }
.hrw-result-section { padding-top: 10px; }
.hrw-result-section:has(.hrw-result:empty) { display: none; }
@media (max-width: 575px) {
    .hrw-card { padding: 20px 16px; border-radius: 18px; }
    .hrw-box { padding: 16px; }
    .hrw-facts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hrw-fact { flex-direction: column; gap: 8px; padding: 14px; }
}
