/* ckip.top — DNS Lookup
   Calm, low-contrast slate palette with a single muted blue accent. */

:root {
  --background: #f7f8fa;
  --foreground: #363c47;
  --card: #ffffff;
  --primary: #3f6c96;
  --primary-foreground: #fbfcfd;
  --muted: #f4f5f7;
  --muted-foreground: #7c828d;
  --accent: #e7edf4;
  --accent-foreground: #4a6480;
  --border: #e6e8ec;
  --ring: #3f6c96;
  --destructive: #b5544a;
  --destructive-bg: #faf1f0;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-soft: 0 1px 2px rgba(70, 80, 95, 0.04), 0 8px 24px -12px rgba(70, 80, 95, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.mono, .input.mono { font-family: var(--font-mono); }

/* ── Header / nav ── */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 32px; text-decoration: none;
}
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.brand-name {
  font-size: 18px; font-weight: 600; letter-spacing: 0.18em; color: var(--foreground);
}
.nav-wrap {
  display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 16px;
  border-top: 1px solid var(--border); background: var(--muted);
}
.nav-btn {
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--muted-foreground); padding: 6px 14px; transition: background .15s, color .15s;
  display: inline-block; text-decoration: none;
}
.nav-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.nav-dropdown { position: relative; }
.nav-menu {
  display: none; position: absolute; top: 110%; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); min-width: 190px; overflow: hidden; z-index: 10;
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block; padding: 10px 16px; color: var(--foreground); text-decoration: none;
  font-size: 13px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:hover { background: var(--accent); color: var(--accent-foreground); }

/* ── Form-level error message ── */
.form-error {
  display: none; margin-top: 12px; padding: 10px 14px;
  background: var(--destructive-bg); color: var(--destructive);
  border: 1px solid var(--destructive); border-radius: var(--radius);
  font-size: 13px;
}
.form-error.visible { display: block; }
.record-count.is-error { color: var(--destructive); }

/* ── Layout ── */
.container { width: 100%; max-width: 768px; margin: 0 auto; padding: 56px 20px; }
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.page-sub { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.form-card { margin-top: 28px; padding: 24px; }

/* ── Form ── */
.lookup-form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) {
  .lookup-form { flex-direction: row; }
  .field-grow { flex: 1; }
  .field-type { width: 160px; }
  .field-action { display: flex; align-items: flex-end; }
}
.field-label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500;
  color: var(--muted-foreground);
}
.input {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a7acb5; }
.input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(63, 108, 150, 0.15); }
.select { padding: 0 10px; }
.btn-primary {
  width: 100%; height: 44px; padding: 0 24px; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground);
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow-soft);
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: 0.9; }
@media (min-width: 640px) { .btn-primary { width: auto; } }

/* ── Results ── */
.results { margin-top: 36px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.results-title { font-size: 14px; font-weight: 600; }
.results-meta { font-size: 12px; color: var(--muted-foreground); }
.results-meta .mono { font-family: var(--font-mono); }

.results-list { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.record-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden;
}
.record-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.record-card:not(:has(.record-values)) .record-head { border-bottom: 0; }
.record-type {
  background: var(--accent); color: var(--accent-foreground);
  border-radius: 6px; padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.record-count { font-size: 12px; color: var(--muted-foreground); }
.record-values { list-style: none; }
.record-values li {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; word-break: break-all;
}
.record-values li:last-child { border-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--border); padding: 32px 16px; text-align: center;
  font-size: 14px; color: var(--muted-foreground);
}
