/* shared.css — Extracted from free-tools/index.html for reuse across tool pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --bg: #ffffff;
  --surface: #f7f8f7;
  --text: #1a1a1a;
  --text-muted: #595959;
  --border: #e8e8e8;
  --accent: #28ef91;
  --accent-deep: #15c777;
  --red: #ef4444;
  --amber: #f59e0b;
  --green: #22c55e;
}
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 13px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; }
.brand span { font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nav-right a { color: var(--text-muted); transition: color 0.15s; }
.nav-right a:hover { color: var(--accent-deep); }
.btn-signup {
  padding: 8px 18px; background: var(--text); color: #fff;
  font-weight: 600; font-size: 13px; border-radius: 999px;
  transition: transform 0.15s, background 0.15s;
}
.btn-signup:hover { background: #0a0a0a; transform: translateY(-1px); }

/* Hero */
.hero {
  max-width: 800px; margin: 0 auto; padding: 56px 28px 32px; text-align: center;
}
.hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.usage-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 6px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.usage-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.usage-badge.warning .dot { background: var(--amber); }
.usage-badge.exhausted .dot { background: var(--red); }

/* Tabs */
.tabs-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }

/* Tool panel */
.tool-panels { max-width: 1100px; margin: 0 auto; padding: 32px 28px 80px; }
.tool-panel { display: none; }
.tool-panel.active { display: block; }
.tool-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.tool-panel .desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

/* Input row */
.input-row {
  display: flex; gap: 10px; max-width: 600px;
}
.input-row input {
  flex: 1; padding: 12px 16px; font-size: 15px; font-family: inherit;
  border: 2px solid var(--border); border-radius: 10px;
  outline: none; transition: border-color 0.15s;
}
.input-row input:focus { border-color: var(--accent); }
.input-row input::placeholder { color: #b0b0b0; }
.btn-check {
  padding: 12px 28px; background: var(--accent); color: #0d0d0d;
  font-weight: 700; font-size: 15px; border-radius: 10px;
  transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-check:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-check:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Results */
.result-area { margin-top: 28px; min-height: 120px; }
.result-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

/* Result header strip */
.r-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.r-avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff; flex-shrink: 0; overflow: hidden;
}
.r-avatar img { width: 100%; height: 100%; object-fit: cover; }
.r-avatar.safe { background: var(--green); border-color: rgba(34,197,94,0.3); }
.r-avatar.risky { background: var(--amber); border-color: rgba(245,158,11,0.3); }
.r-avatar.invalid { background: var(--red); border-color: rgba(239,68,68,0.3); }
.r-meta { flex: 1; min-width: 0; }
.r-email { font-size: 17px; font-weight: 700; word-break: break-all; }
.r-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.r-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.r-badge.safe { background: #e8f5e9; color: #00c853; }
.r-badge.risky { background: #fff3e0; color: #ff9800; }
.r-badge.invalid { background: #ffebee; color: #f44336; }
.r-badge.unknown { background: #f5f5f5; color: #9e9e9e; }
.r-badge.neutral { background: #f5f5f5; color: #616161; }
.r-score-pill {
  margin-left: auto; padding: 6px 16px; border-radius: 999px;
  font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.r-score-pill.safe { background: var(--green); }
.r-score-pill.risky { background: var(--amber); }
.r-score-pill.invalid { background: var(--red); }

/* Quick-result strip */
.r-strip {
  display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--border);
}
.r-kv {
  flex: 1 1 auto; min-width: 120px; padding: 12px 18px;
  border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px;
}
.r-kv:last-child { border-right: none; }
.r-kv .k { font-size: 10px; font-weight: 700; color: #9e9e9e; text-transform: uppercase; letter-spacing: 0.06em; }
.r-kv .v { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.v-pass { color: #00c853; }
.v-fail { color: #f44336; }
.v-warn { color: #ff9800; }
.v-muted { color: #9e9e9e; }
.chk::before { content: '\2713'; margin-right: 2px; }
.cross::before { content: '\2717'; margin-right: 2px; }

/* Detail sections */
.r-sections { padding: 0 24px 24px; }
.r-section { margin-top: 20px; }
.r-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.r-rows {}
.r-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px;
}
.r-row:last-child { border-bottom: none; }
.r-row .rl { color: var(--text-muted); font-weight: 500; }
.r-row .rv { font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* Gravatar inline */
.gravatar-inline {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #eee;
  vertical-align: middle;
}

/* Blacklist hits */
.bl-hits { margin-top: 10px; }
.bl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.bl-row:last-child { border-bottom: none; }
.bl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bl-dot.listed { background: var(--red); }
.bl-dot.clean { background: var(--green); }
.bl-zone { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.bl-code { margin-left: auto; color: #9e9e9e; font-size: 11px; }

/* Loading spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state {
  display: flex; align-items: center; gap: 12px;
  padding: 24px; color: var(--text-muted); font-size: 15px;
}

/* Error */
.error-msg {
  padding: 14px 18px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; color: var(--red); font-size: 14px; font-weight: 500;
}

/* Signup gate modal */
.gate-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.gate-overlay.visible { display: flex; }
.gate-card {
  background: #fff; border-radius: 16px; padding: 40px; max-width: 440px; width: 90%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.gate-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.gate-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.gate-card .btn-signup-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--accent); color: #0d0d0d;
  font-weight: 700; font-size: 16px; border-radius: 999px;
  transition: transform 0.15s;
}
.gate-card .btn-signup-lg:hover { transform: translateY(-2px); }
.gate-card .gate-dismiss {
  display: block; margin-top: 14px; font-size: 13px; color: var(--text-muted);
  cursor: pointer;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 24px 28px;
  text-align: center; font-size: 13px; color: var(--text-muted);
}
.footer a { color: var(--accent-deep); }

@media (max-width: 640px) {
  .input-row { flex-direction: column; }
  .nav-right a:not(.btn-signup) { display: none; }
}

/* ===== Individual tool page layout (not tabbed) ===== */
.tool-page { max-width: 1100px; margin: 0 auto; padding: 32px 28px 40px; }
.tool-page h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.tool-page .tool-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 700px; }

/* Related content section */
.related-section { max-width: 1100px; margin: 0 auto; padding: 40px 28px 60px; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.related-card {
  display: block; padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card .rc-label { font-size: 11px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.related-card .rc-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.related-card .rc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Other tools section */
.other-tools { max-width: 1100px; margin: 0 auto; padding: 0 28px 60px; }
.other-tools h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tool-link {
  display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s;
}
.tool-link:hover { border-color: var(--accent); }
.tool-link .tl-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: #0d0d0d; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.tool-link .tl-name { font-size: 14px; font-weight: 600; }
.tool-link .tl-desc { font-size: 12px; color: var(--text-muted); }

/* FAQ section (for schema) */
.faq-section { max-width: 1100px; margin: 0 auto; padding: 0 28px 60px; }
.faq-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 600; margin-bottom: 6px; cursor: pointer; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
