/**
 * IDInfo — Unified theme
 * Theme: Navy / Sky Blue — matching the IDInfo icon
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0f7fc;
  --card: #ffffff;
  --text: #1B2A4A;
  --muted: #5a6d87;
  --accent: #3DB8D9;
  --accent-h: #2A9BBD;
  --accent-light: rgba(61, 184, 217, 0.08);
  --navy: #1B2A4A;
  --border: #dce6f0;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Nav ——— */
nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.logo:hover { text-decoration: none !important; }

.logo span {
  background: linear-gradient(135deg, #3DB8D9 0%, #2A9BBD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.45rem;
  border-radius: 8px;
  object-fit: contain;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

nav .links a {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

nav .links a:hover {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* ——— Hero ——— */
.hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ——— Search ——— */
.search-wrap {
  position: sticky;
  top: 53px;
  z-index: 9;
  background: var(--bg);
  padding: 0.75rem 0 0.6rem;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}

.search-box label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-row input::placeholder { color: #94a3b8; }

/* Buttons */
.btn,
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
}

.btn:hover,
.s-btn:hover {
  background: var(--accent-h);
  text-decoration: none;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn svg,
.s-btn svg { width: 18px; height: 18px; }

.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; border-radius: 7px; }

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); color: #fff; }

#loader {
  display: none;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.83rem;
  color: var(--accent);
}

#loader .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.35rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Alerts ——— */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ——— Cards (result, profile) ——— */
.card,
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
  text-align: center;
}

.card-body,
.result-card .card-body {
  padding: 2rem 1.5rem;
}

.result-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1B2A4A 0%, #2A9BBD 50%, #4CC9F0 100%);
}

.result-banner-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #1B2A4A 0%, #3DB8D9 70%);
  display: block;
}

.avatar,
.result-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  background: var(--bg);
  margin-top: -65px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.avatar-placeholder,
.result-card .avatar-ph {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
  margin: -65px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.name,
.r-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.4rem 0;
}

/* Badges */
.badges {
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.badge.facebook { background: #1877f2; }
.badge.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.badge.threads { background: #000; }
.badge.x { background: #000; }
.badge.youtube { background: #ff0000; }
.badge.tiktok { background: #010101; }
.badge.github { background: #24292f; }
.badge.telegram { background: #0088cc; }

.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.badge-status.valid { background: #d1fae5; color: #065f46; }
.badge-status.limited { background: #fef3c7; color: #92400e; }

.badge-verified {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #0ea5e9;
  color: #fff;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.stat-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.stat-num { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

/* Info rows */
.info,
.r-info {
  text-align: left;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.row,
.r-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.row:last-child,
.r-row:last-child { border-bottom: none; }

.row-label,
.r-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.row-value,
.r-val {
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.row-value a,
.r-val a { color: var(--accent); }

.id-box { display: flex; align-items: center; gap: 0.4rem; }

.id-text {
  font-family: 'DM Sans', ui-monospace, monospace;
  background: var(--bg);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.copy-btn {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--card);
  color: var(--accent);
  transition: all 0.2s;
  font-family: inherit;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
}

.actions,
.r-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ——— Platforms grid (home) ——— */
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.plat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  transition: border-color 0.15s;
}

.plat:hover { border-color: var(--accent); }

.plat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.plat-icon.fb { background: #1877f2; }
.plat-icon.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.plat-icon.x { background: #000; }
.plat-icon.yt { background: #ff0000; }
.plat-icon.tt { background: #010101; }
.plat-icon.gh { background: #24292f; }
.plat-icon.tg { background: #0088cc; }
.plat-icon.th { background: #000; }

.plat-info strong { display: block; font-weight: 600; color: var(--text); font-size: 0.8rem; }
.plat-info span { color: var(--muted); font-size: 0.7rem; }

/* ——— Content (about, contact, etc.) ——— */
.content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.content h2 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.content p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.65rem; }
.content ul { margin-left: 1.25rem; margin-bottom: 0.75rem; }
.content li { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.3rem; }
.content code { background: var(--bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.88em; }
.last-updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.feature strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 0.2rem; }
.feature span { font-size: 0.82rem; color: var(--muted); }

/* ——— Ad slots (AdSense-friendly) ——— */
.ad-slot {
  margin: 1.5rem 0;
  text-align: center;
  min-height: 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.ad-inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}
/* Google AdSense: reserve space, reduce layout shift (CLS) */
ins.adsbygoogle {
  display: block !important;
  margin: 0 auto;
  text-align: center;
  min-height: 90px;
}
.ad-slot iframe[src*="googlesyndication"],
.ad-slot iframe[name^="google_ads_iframe"] {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
/* Legacy placeholder (profile etc.) */
.ad {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.78rem;
  margin: 1.5rem 0;
}
/* SEO content block (clear separation from ads) */
.seo-content {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.seo-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.note {
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.55;
}

.note strong { color: var(--text); }

/* Repos, About blocks (profile) */
.repos { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; text-align: left; }
.repos h3 { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.repo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}
.repo a { color: var(--accent); font-weight: 600; }
.repo .meta { color: var(--muted); font-size: 0.7rem; margin-left: 0.3rem; }

.about { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; text-align: left; }
.about h3 { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.about ul { padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.about li { margin-bottom: 0.2rem; }

.bio-text { white-space: pre-wrap; word-break: break-word; text-align: left; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ——— Footer ——— */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 2rem 0 1.5rem;
  box-shadow: 0 -1px 3px rgba(15, 23, 42, 0.04);
}

.footer-inner { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 1rem; } }

.footer-grid h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 0.3rem; }
.footer-grid li a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-grid li a:hover { color: var(--accent); text-decoration: none; }

.footer-social { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* About section (profile card) */
.about-section { margin-top: 1rem; padding: 1rem; background: var(--bg); border-radius: 10px; border: 1px solid var(--border); }
.about-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.about-section-title svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }

.seo { margin: 1.5rem 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.seo h2 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }

/* Contact page */
.email-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0; text-align: center; }
.email-box a { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0; }
@media (max-width: 500px) { .social-links { grid-template-columns: 1fr; } }
.social-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.15s; }
.social-link:hover { border-color: var(--accent); text-decoration: none; }
.social-link .s-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.65rem; color: #fff; flex-shrink: 0; }
.s-icon.fb { background: #1877f2; }
.s-icon.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.s-icon.tw { background: #000; }
.s-icon.tt { background: #010101; }
.s-icon.pi { background: #e60023; }
.s-icon.rd { background: #ff4500; }
.s-icon.gh { background: #24292f; }
.s-icon.pa { background: #f96854; }
.s-icon.pp { background: #003087; }
.social-link .s-info { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.social-link .s-info span { display: block; font-size: 0.73rem; color: var(--muted); font-weight: 400; }
