/* ============================================================
   EmailProbe shared stylesheet — pSEO + auxiliary pages.
   Mirrors the homepage's dark/gold palette and typography.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1612;
  --surface: #231f1b;
  --surface-elevated: #2a2520;
  --border: rgba(212, 168, 83, 0.15);
  --border-bright: rgba(212, 168, 83, 0.35);
  --text-primary: #f5f0e8;
  --text-secondary: #a39888;
  --text-muted: #a89e8a;
  --accent: #d4a853;
  --accent-bright: #e8bf6a;
  --accent-dim: #b8923f;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #d4a853 0%, #f0d48a 50%, #d4a853 100%);
  --warm-glow: 0 0 30px rgba(212, 168, 83, 0.1);
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px; /* room for fixed nav */
}

/* Subtle paper texture (matches homepage) */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4, h5 { font-family: var(--font-headline); color: var(--text-primary); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.75em; margin-top: 2em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5em; margin-top: 1.5em; }
p { margin-bottom: 1em; color: var(--text-secondary); }
strong { color: var(--text-primary); }
code { font-family: var(--font-mono); font-size: 0.875em; color: var(--accent-bright); background: rgba(212,168,83,0.08); padding: 1px 6px; border-radius: 3px; }
pre { font-family: var(--font-mono); background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; overflow-x: auto; margin: 1em 0 1.5em; }
pre code { background: transparent; padding: 0; color: var(--text-primary); font-size: 0.85rem; }

/* Container ------------------------------------------------- */
main, .container, header.directory-header, .site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
main { padding-top: 32px; padding-bottom: 64px; }
main > section { margin-bottom: 56px; }

/* Hero ------------------------------------------------------ */
.hero { padding: 56px 0 32px; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 56px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 + .verdict-badge { margin-bottom: 16px; }
.hero-sub { font-size: 1.125rem; max-width: 640px; margin: 0 auto 12px; }
.hero-meta {
  font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.5px;
  text-transform: uppercase; margin: 0 auto 28px;
}
.hero-meta time { color: inherit; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.verdict-badge {
  display: inline-block; padding: 6px 14px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.verdict-disposable { background: rgba(239,68,68,0.12); color: #ff8585; border: 1px solid rgba(239,68,68,0.35); }
.verdict-clean { background: rgba(74,222,128,0.12); color: #66e893; border: 1px solid rgba(74,222,128,0.35); }

/* Buttons --------------------------------------------------- */
.btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.25s; cursor: pointer; border: 1px solid transparent; font-family: var(--font-body); }
.btn-primary { background: var(--gold-gradient); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,168,83,0.3); color: var(--bg); }
.btn-secondary, .btn-outline { background: transparent; color: var(--accent); border-color: var(--border-bright); }
.btn-secondary:hover, .btn-outline:hover { background: rgba(212,168,83,0.08); color: var(--accent-bright); }

/* Section card visuals -------------------------------------- */
section.about, section.live-status, section.domains-table, section.infra, section.why, section.block-cta, section.related, section.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
}
section.about { background: transparent; border: none; padding: 0; }
section.about p { font-size: 1.05rem; color: var(--text-primary); }

/* Live status ----------------------------------------------- */
.live-status p { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }
.status-active { background: rgba(74,222,128,0.12); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.status-inactive { background: rgba(122,111,99,0.15); color: var(--text-muted); border: 1px solid var(--border); }

/* Tables ---------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.92rem; }
thead th { text-align: left; padding: 10px 14px; background: var(--surface-elevated); color: var(--text-secondary); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
tbody tr:hover td { background: rgba(212,168,83,0.04); }
tbody td code { font-size: 0.82rem; }

.domains-table > p { margin-top: 18px; font-size: 0.92rem; }
.domains-table .sample-notice { margin-top: 0; margin-bottom: 16px; padding: 12px 14px; background: rgba(212,168,83,0.06); border-left: 3px solid var(--accent); border-radius: 4px; color: var(--text-secondary); font-size: 0.9rem; }
.domains-table .api-cta-line { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.domains-table .api-cta-line strong { color: var(--accent); }

/* Infra section --------------------------------------------- */
.infra ul { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.infra li { padding: 6px 12px; background: rgba(212,168,83,0.05); border-left: 2px solid var(--border-bright); border-radius: 4px; font-size: 0.9rem; }
.infra h3 { margin-top: 18px; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 600; }

/* Why section ----------------------------------------------- */
.why h3 { font-size: 1rem; color: var(--accent); margin-top: 1.25em; }

/* Block CTA section ----------------------------------------- */
.block-cta h3 { font-size: 1rem; color: var(--accent); }
.block-cta p:last-child { margin-top: 24px; text-align: center; }

/* Related cards --------------------------------------------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: all 0.25s; }
.related-card:hover { border-color: var(--border-bright); transform: translateY(-2px); color: var(--text-primary); }
.related-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text-primary); font-family: var(--font-body); font-weight: 600; }
.related-domain { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin: 0; }
.related-count { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* FAQ accordion --------------------------------------------- */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-primary); font-size: 1rem; padding: 4px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.25s; font-weight: 300; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-secondary); }

/* Directory page -------------------------------------------- */
.directory-header { padding: 64px 24px 32px; text-align: center; }
.directory-header h1 { margin-bottom: 18px; }
.directory-header p { font-size: 1.125rem; max-width: 640px; margin: 0 auto 24px; color: var(--text-secondary); }
.directory-header .btn { margin-top: 8px; }
table.provider-directory { max-width: 960px; margin: 24px auto; }
main p[style] { text-align: center; }

/* Pagination ------------------------------------------------ */
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 32px 0; }
.pagination a, .pagination strong { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.pagination strong { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.pagination a:hover { background: rgba(212,168,83,0.08); }

/* Footer ---------------------------------------------------- */
.site-footer { padding: 48px 24px 32px; border-top: 1px solid var(--border); margin-top: 64px; max-width: 1200px; }
.site-footer .breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.site-footer .breadcrumbs a { color: var(--text-secondary); }
.site-footer .breadcrumbs a:hover { color: var(--accent); }
.site-footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.site-footer .footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-copy { font-size: 0.82rem; color: var(--text-muted); }

/* Provider-database-promo (blog post) ----------------------- */
.provider-database-promo { margin: 32px 0; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.provider-database-promo h2 { margin-top: 0; }

/* Responsive ------------------------------------------------ */
@media (max-width: 720px) {
  main, .container, header.directory-header, .site-footer { padding-left: 16px; padding-right: 16px; }
  section.about, section.live-status, section.domains-table, section.infra, section.why, section.block-cta, section.related, section.faq { padding: 22px 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  thead th, tbody td { padding: 8px 10px; font-size: 0.85rem; }
}

/* ============================================================
 * Live disposable-email checker widget (auto-injected by navbar.js
 * into pSEO pages — answers "is X.com disposable?" in <1 second).
 * Also rendered standalone via <div id="ep-live-checker">.
 * ============================================================ */
.ep-live-checker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin: 0 auto 36px;
  max-width: 820px;
}
.ep-live-checker-title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.ep-live-checker-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.ep-live-checker-sub code {
  background: rgba(212,168,83,0.10);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-bright);
}
.ep-live-checker-form { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ep-live-checker-input {
  flex: 1; min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ep-live-checker-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,168,83,0.15); }
.ep-live-checker-btn {
  background: var(--gold-gradient);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
}
.ep-live-checker-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,83,0.25); }
.ep-live-checker-btn:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }
.ep-live-checker-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}
.ep-live-checker-result.is-disposable { border-left: 3px solid var(--danger); }
.ep-live-checker-result.is-safe       { border-left: 3px solid var(--success); }
.ep-live-checker-result.is-error      { border-left: 3px solid var(--text-muted); color: var(--text-secondary); }
.ep-live-checker-foot { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; margin: 0; }
.ep-live-checker-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212,168,83,0.3);
  text-underline-offset: 3px;
  font-weight: 600;
}
.ep-live-checker-foot a:hover { text-decoration-color: var(--accent); }

/* ============================================================
 * AI-source banner — only shown when ?utm_source matches a known
 * AI assistant (ChatGPT, Perplexity, Claude, Gemini, Copilot).
 * Injected by navbar.js into the hero section.
 * ============================================================ */
.ep-ai-banner {
  background: linear-gradient(90deg, rgba(74,222,128,0.10) 0%, rgba(74,222,128,0.02) 100%);
  border: 1px solid rgba(74,222,128,0.30);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px auto 0;
  max-width: 820px;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.ep-ai-banner strong { color: var(--success); }
.ep-ai-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
