/* ============================================
   SnoopMy.com — Design System
   Color: Blue #2563eb
   ============================================ */

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

:root {
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-light:  #dbeafe;
  --accent-muted:  #eff6ff;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-card:       #ffffff;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:        #3b82f6;
    --accent-dark:   #2563eb;
    --accent-light:  #1e3a5f;
    --accent-muted:  #172033;
    --bg:            #0f172a;
    --bg-alt:        #1e293b;
    --bg-card:       #1e293b;
    --text:          #f1f5f9;
    --text-muted:    #94a3b8;
    --text-light:    #64748b;
    --border:        #334155;
    --border-strong: #475569;
  }
}

html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.navbar-logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.navbar-logo span { color: var(--accent); }
.navbar-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.navbar-links a { font-size: 13px; color: var(--text-muted); padding: 5px 10px; border-radius: var(--radius); text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.navbar-links a:hover, .navbar-links a.active { background: var(--accent-muted); color: var(--accent); text-decoration: none; }
.navbar-lang { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.navbar-lang a { font-size: 12px; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; text-decoration: none; transition: background 0.15s; }
.navbar-lang a:hover, .navbar-lang a.active { background: var(--accent-muted); color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--accent-muted) 0%, var(--bg) 60%); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.hero-text { text-align: center; margin-bottom: 32px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.hero p { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* Live Card */
.live-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow-md); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .live-grid { grid-template-columns: 1fr; } }
.live-card-header { background: var(--accent); padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-card-header span { font-size: 13px; font-weight: 600; color: #fff; }
.live-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
.live-row:last-child { border-bottom: none; }
.live-label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); min-width: 140px; }
.live-label i { font-size: 16px; color: var(--accent); width: 20px; text-align: center; }
.live-value { font-size: 16px; font-weight: 600; color: var(--text); text-align: right; }
.live-value.loading { color: var(--text-light); font-weight: 400; font-style: italic; }
.status-safe { color: #16a34a; }
.status-warn { color: #d97706; }
.status-danger { color: #dc2626; }

/* Tools Grid */
.tools-section { padding: 48px 0; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; display: block; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 22px; }
.tool-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.tool-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-top: 10px; }
.badge-live { background: #dcfce7; color: #15803d; }
.badge-soon { background: var(--bg-alt); color: var(--text-light); }

/* Result Card */
.tool-page { padding: 48px 0; }
.tool-page-header { margin-bottom: 32px; }
.tool-page-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.tool-page-header p { font-size: 0.95rem; color: var(--text-muted); max-width: 600px; }
.result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; }
.result-card-header { background: var(--accent-muted); padding: 14px 20px; border-bottom: 1px solid var(--border); }
.result-card-header h2 { font-size: 14px; font-weight: 700; color: var(--accent); }
.result-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border); gap: 16px; }
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 13px; color: var(--text-muted); min-width: 160px; }
.result-value { font-size: 13px; font-weight: 600; color: var(--text); text-align: right; word-break: break-all; }

/* SEO Content */
.seo-section { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 56px; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.seo-block { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.seo-block:last-child { border-bottom: none; padding-bottom: 0; }
.seo-block h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.seo-block h3 { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin: 16px 0 6px; }
.seo-block p, .seo-block li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }
.seo-block ul, .seo-block ol { padding-left: 18px; }
.seo-block li { margin-bottom: 4px; }

/* FAQ */
.faq-section { padding: 48px 0; }
.faq-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 14px 18px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); user-select: none; }
.faq-question::after { content: '+'; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 18px 14px; font-size: 13px; color: var(--text-muted); line-height: 1.7; background: var(--bg-card); }
.faq-item.open .faq-answer { display: block; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-light); }

/* Copy button */
.copy-btn { background: var(--accent-muted); color: var(--accent); border: 1px solid var(--accent-light); border-radius: 6px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.copy-btn:hover { background: var(--accent-light); }

/* Responsive */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hero { padding: 32px 0 28px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .live-label { min-width: 100px; }
  .result-label { min-width: 120px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .seo-grid { grid-template-columns: 1fr; }
}
