/* Public IP Lookup — matches the bozcode.com palette (grey #c8cdd2, blue
   #3D7AB8, white cards). Standalone from the admin panel's ip_lookup.css. */

.pubip-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    width: 100%;
}

.pubip-hero {
    text-align: center;
    margin-bottom: 1.75rem;
}

.pubip-hero h1 {
    font-size: 2rem;
    color: #111;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.pubip-sub {
    max-width: 640px;
    margin: 0 auto;
    color: #475569;
    font-size: 1rem;
}

/* ── Card ── */
.pubip-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pubip-card-title {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* ── Form ── */
.pubip-form-card { margin-bottom: 1.5rem; }

.pubip-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pubip-input {
    flex: 1 1 280px;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    color: #111;
    background: #fff;
}

.pubip-input:focus {
    outline: none;
    border-color: #3D7AB8;
    box-shadow: 0 0 0 3px rgba(61, 122, 184, 0.18);
}

.pubip-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pubip-btn-primary {
    background: #3f82cd;
    border-color: #1b4684;
    color: #fff;
}
.pubip-btn-primary:hover { background: #3268a8; }

.pubip-btn-secondary {
    background: #eef3f8;
    border-color: #94a3b8;
    color: #1f2937;
}
.pubip-btn-secondary:hover { background: #e2eaf2; }

.pubip-btn:disabled { opacity: 0.6; cursor: default; }

.pubip-status {
    margin-top: 0.75rem;
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: #475569;
}
.pubip-status.error { color: #b91c1c; }

/* ── Results grid ── */
.pubip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.pubip-fields { display: flex; flex-direction: column; gap: 0.55rem; }

.pubip-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px dotted #e2e8f0;
    padding-bottom: 0.55rem;
}
.pubip-field:last-child { border-bottom: none; padding-bottom: 0; }

.pubip-field dt {
    color: #64748b;
    font-size: 0.85rem;
    flex: 0 0 auto;
}
.pubip-field dd {
    color: #111;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.pubip-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9rem; }

/* ── Map ── */
.pubip-map-card { margin-bottom: 1.1rem; }
.pubip-map {
    width: 100%;
    height: 320px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
.pubip-map-note { margin-top: 0.6rem; font-size: 0.9rem; }
.pubip-map-note a { color: #3D7AB8; text-decoration: none; }
.pubip-map-note a:hover { text-decoration: underline; }

/* ── Meta / disclaimer ── */
.pubip-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pubip-disclaimer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {
    .pubip-field { flex-direction: column; gap: 0.15rem; }
    .pubip-field dd { text-align: left; }
}
