/* Moj IP — temna tehnološka tema */
:root {
  --bg: #0b0f1a;
  --bg-card: #131a2b;
  --bg-card-hover: #18213a;
  --border: #232e4d;
  --text: #e7ecf6;
  --text-muted: #8b96b3;
  --accent: #4f8cff;
  --accent-2: #9d6bff;
  --accent-3: #2dd4bf;
  --warn: #fbbf24;
  --error: #f87171;
  --radius: 14px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% -10%, rgba(79,140,255,.18), transparent 70%),
    radial-gradient(700px 500px at 85% 10%, rgba(157,107,255,.13), transparent 70%);
  z-index: 0;
}

.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* --- header --- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,.8);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-icon { color: var(--accent); }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-highlight {
  color: var(--accent-3); font-weight: 600;
  padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08);
  transition: all .15s;
}
.nav-links a.nav-highlight:hover { background: rgba(45,212,191,.18); color: #5eead4; }
.nav-links a.nav-mono { font-family: var(--mono); font-size: .85rem; color: var(--accent-2); }
.nav-links a.nav-mono:hover { color: #c4b5fd; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  color: var(--text-muted); text-decoration: none; font-size: .8rem; font-weight: 600;
  padding: 4px 9px; border-radius: 8px; border: 1px solid transparent;
}
.lang-switch a.active { color: var(--accent); border-color: var(--border); background: var(--bg-card); }
.lang-switch a:hover { color: var(--text); }

/* --- hero --- */
.hero { text-align: center; padding: 64px 0 40px; }
.hero-small { padding: 48px 0 24px; }
.hero-label { color: var(--text-muted); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.ip-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ip-display {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 6.5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(95deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-all;
}
.ip-display-small { font-size: clamp(1.3rem, 4.5vw, 2.2rem); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent-3); border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08);
  padding: 3px 12px; border-radius: 999px; margin: 0 4px;
}
.badge-warn { color: var(--warn); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.badge-error { color: var(--error); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }

.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  color: var(--text); background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: all .15s;
}
.copy-btn:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent-3); border-color: var(--accent-3); }

/* --- cards & grid --- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s;
}
.card:hover { border-color: #324270; }
.card-wide { margin-bottom: 20px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.muted { color: var(--text-muted); }
.small { font-size: .8rem; }
.mono { font-family: var(--mono); }

.data-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.data-list div:last-child { border-bottom: none; }
.data-list dt { color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
.data-list dd { text-align: right; font-size: .92rem; word-break: break-word; }
.flag { font-size: .7rem; font-weight: 700; color: var(--accent); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; vertical-align: middle; }

/* --- forms --- */
.lookup-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.lookup-form input {
  flex: 1; min-width: 220px;
  font-family: var(--mono); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  outline: none; transition: border-color .15s;
}
.lookup-form input:focus { border-color: var(--accent); }
.btn-primary {
  font-family: var(--font); font-size: .92rem; font-weight: 700; color: #fff;
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  border: none; border-radius: 10px; padding: 11px 22px; cursor: pointer; transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }

.alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .92rem; }
.alert-error { color: var(--error); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); }
.alert-warn { color: var(--warn); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }

.lookup-result { margin-top: 24px; text-align: center; }
.lookup-result .data-list { text-align: left; max-width: 560px; margin: 18px auto 0; }

/* --- API --- */
.api-examples { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.api-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-row code {
  font-family: var(--mono); font-size: .84rem; color: var(--accent-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px;
}

/* --- DNS report --- */
.dns-report { text-align: center; margin-top: 8px; }
.dns-report .dns-cat { text-align: left; }
.btn-dns { background: linear-gradient(95deg, var(--accent-3), var(--accent)); }
.dns-table { width: 100%; border-collapse: collapse; }
.dns-row td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .9rem; }
.dns-row:last-child td { border-bottom: none; }
.dns-status { white-space: nowrap; width: 36px; text-align: center; }
.dns-test { width: 190px; font-size: .84rem; font-weight: 600; color: var(--text-muted); }
.dns-test .tip { border-bottom: 1px dotted var(--text-muted); }
.status-label { font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--text-muted); }

/* tooltip */
.tip { position: relative; cursor: help; display: inline-block; }
.tip::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: 130%;
  width: 280px; max-width: 70vw;
  background: #1c2740; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: .78rem; font-weight: 400; line-height: 1.5;
  text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity .15s;
  pointer-events: none; z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.tip:hover::after, .tip:focus::after { opacity: 1; visibility: visible; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.status-pass { background: var(--accent-3); box-shadow: 0 0 6px rgba(45,212,191,.6); }
.status-warn { background: var(--warn); box-shadow: 0 0 6px rgba(251,191,36,.6); }
.status-error { background: var(--error); box-shadow: 0 0 6px rgba(248,113,113,.6); }
.status-info { background: var(--accent); box-shadow: 0 0 6px rgba(79,140,255,.6); }
.dns-pass .status-label { color: var(--accent-3); }
.dns-warn .status-label { color: var(--warn); }
.dns-error .status-label { color: var(--error); }
.dns-text { word-break: break-word; white-space: pre-line; }

/* --- fingerprint --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 12, .78); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  max-width: 540px; width: 100%; padding: 30px 28px; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}
.modal-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  color: var(--warn); border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.08);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.modal h2 { font-size: 1.15rem; margin-bottom: 12px; }
.modal-list {
  text-align: left; margin: 12px auto 14px; padding-left: 22px; max-width: 430px;
  color: var(--text-muted); font-size: .92rem;
}
.modal-list li { margin-bottom: 6px; }
.modal-note { border-top: 1px solid var(--border); padding-top: 14px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.btn-secondary {
  display: inline-block; font-size: .92rem; font-weight: 700; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 22px; text-decoration: none; transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--text-muted); }
.fp-hash-card { text-align: center; }
.fp-hash { font-size: .95rem; color: var(--accent-3); word-break: break-all; }

/* --- FAQ --- */
.faq { margin: 40px 0 60px; }
.faq h2 { font-size: 1.3rem; margin-bottom: 16px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: .97rem; }
.faq details p { color: var(--text-muted); font-size: .92rem; padding-top: 10px; }

.back-link { text-align: center; margin: 24px 0 48px; }
.back-link a { color: var(--accent); text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; margin-top: auto; }
.site-footer p { color: var(--text-muted); font-size: .85rem; text-align: center; }
.footer-legal { margin-top: 4px; font-size: .78rem !important; }
.footer-legal a { color: var(--text-muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--text); }
.privacy-owner { line-height: 1.8; }
.privacy-text { font-size: .92rem; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 30px; }
}
