/* SaaS Alternatives Hub - Stylesheet */
/* Designed for conversion: clean, fast, trust-building */

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --border: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --orange: #d29922;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* LANGUAGE SELECTOR */
.lang-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.lang-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.lang-label {
  font-size: 0.9em;
}
#lang-selector {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* HERO */
.hero {
  padding: 40px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2.5em; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero-sub { color: var(--text-muted); font-size: 1.15em; margin-bottom: 30px; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-bottom: 30px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2em; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85em; color: var(--text-muted); }

.cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cat-pill {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: 0.85em;
  transition: all 0.2s;
}
.cat-pill:hover { color: var(--accent); border-color: var(--accent); }

/* EMAIL CAPTURE */
.email-capture { padding: 25px 0; }
.capture-box {
  background: linear-gradient(135deg, #1a2332, #161b22);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.capture-box h2 { font-size: 1.5em; margin-bottom: 8px; }
.capture-box p { color: var(--text-muted); margin-bottom: 20px; }
.capture-form { display: flex; gap: 10px; max-width: 450px; margin: 0 auto; }
.capture-form input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1em;
}
.capture-form input:focus { outline: none; border-color: var(--accent); }
.capture-form button {
  padding: 12px 24px; border-radius: var(--radius); border: none;
  background: var(--accent); color: #fff; font-weight: 600;
  cursor: pointer; font-size: 1em; white-space: nowrap;
  transition: opacity 0.2s;
}
.capture-form button:hover { opacity: 0.9; }
.capture-note { font-size: 0.8em; color: var(--text-muted); margin-top: 12px; }
.success { color: var(--green); font-weight: 600; font-size: 1.1em; }

/* TOP ALTERNATIVES */
.top-section { padding: 35px 0; border-bottom: 1px solid var(--border); }
.top-section h2 { font-size: 1.6em; margin-bottom: 5px; }
.section-desc { color: var(--text-muted); margin-bottom: 25px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }
.top-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s;
}
.top-card:hover { border-color: var(--accent); }
.top-switch { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.1em; }
.top-from { color: var(--red); text-decoration: line-through; }
.top-arrow { color: var(--text-muted); }
.top-to { color: var(--green); font-weight: 600; }
.top-prices { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.9em; }
.price-old { color: var(--red); text-decoration: line-through; }
.price-new { color: var(--green); font-weight: 600; }
.top-why { color: var(--text-muted); font-size: 0.9em; margin-bottom: 12px; }
.top-link {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9em;
}
.top-link:hover { text-decoration: underline; }

/* WHY SWITCH */
.why-section { padding: 35px 0; border-bottom: 1px solid var(--border); }
.why-section h2 { font-size: 1.6em; margin-bottom: 25px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 25px; text-align: center;
}
.why-icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 1.5em; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 0.9em; }

/* FILTERS */
.filters { display: flex; gap: 15px; margin: 30px 0 20px; }
.filters input, .filters select {
  padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 0.95em;
}
.filters input { flex: 1; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }
.filters select { min-width: 200px; }

/* DIRECTORY ENTRIES */
.cat-section { margin-bottom: 25px; }
.cat-title {
  font-size: 1.4em; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); margin-bottom: 15px;
  display: flex; align-items: baseline; gap: 10px;
}
.cat-count { font-size: 0.6em; color: var(--text-muted); font-weight: 400; }
.entries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; }

.entry-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: border-color 0.2s;
}
.entry-card:hover { border-color: var(--accent); }
.entry-header { display: flex; gap: 20px; margin-bottom: 10px; }
.entry-replace, .entry-with { flex: 1; }
.label-replace, .label-with {
  display: block; font-size: 0.7em; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 3px;
}
.label-replace { color: var(--red); }
.label-with { color: var(--green); }
.entry-replace strong { color: var(--text-muted); }
.entry-with strong { color: var(--text); }
.entry-price { display: block; font-size: 0.82em; margin-top: 3px; }
.entry-price.old { color: var(--red); }
.entry-price.new { color: var(--green); }
.entry-why { color: var(--text-muted); font-size: 0.88em; margin-bottom: 12px; }

.entry-actions { display: flex; align-items: center; gap: 10px; }
.btn-visit {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--accent); text-decoration: none; font-size: 0.88em; font-weight: 600;
  transition: all 0.2s;
}
.btn-visit:hover { background: var(--accent); color: #fff; }
.btn-visit.affiliate { border-color: var(--green); }
.badge-aff {
  font-size: 0.7em; padding: 2px 8px; border-radius: 10px;
  background: #0d3321; color: var(--green);
}

/* BOTTOM CTA */
.bottom-cta {
  padding: 40px 0; text-align: center;
  border-top: 1px solid var(--border);
}
.bottom-cta h2 { font-size: 1.6em; margin-bottom: 10px; }
.bottom-cta p { color: var(--text-muted); margin-bottom: 20px; }
.btn-cta {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.1em;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.9; }
.cta-sub { margin-top: 15px; font-size: 0.85em; color: var(--text-muted); }
.cta-sub a { color: var(--accent); }

/* FOOTER */
footer {
  padding: 30px 0; border-top: 1px solid var(--border);
  text-align: center; font-size: 0.85em; color: var(--text-muted);
}
footer a { color: var(--accent); text-decoration: none; }
.disclaimer { margin-top: 10px; font-size: 0.8em; max-width: 700px; margin-left: auto; margin-right: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8em; }
  .hero-stats { gap: 25px; }
  .entries-grid { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .capture-form { flex-direction: column; }
  .entry-header { flex-direction: column; gap: 10px; }
  .filters { flex-direction: column; }
}
