/* BestToolsAU — Global Styles */
:root {
  --bg-primary: #0c1222;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2b3d;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245,158,11,0.12);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 10px;
  --max-width: 1140px;
}

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Inter');
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,18,34,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: .5rem;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--accent); }
.hero p { color: var(--text-secondary); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

/* Trust bar */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
  padding: 1.5rem; margin-bottom: 2rem;
}
.trust-item { display: flex; align-items: center; gap: .5rem; color: var(--text-secondary); font-size: .9rem; }
.trust-icon { color: var(--accent); font-size: 1.2rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Section */
.section { padding: 4rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

/* Category grid (home) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.cat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.cat-card p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1rem; }
.cat-card .link { font-weight: 600; font-size: .9rem; }

/* Article hero */
.article-hero {
  padding: 4rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.article-hero .container { max-width: 860px; }
.article-hero .breadcrumb { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; }
.article-hero .breadcrumb a { color: var(--text-muted); }
.article-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.article-hero .meta { color: var(--text-secondary); font-size: .9rem; }

/* Article content */
.article { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article h2:first-child { border-top: none; padding-top: 0; }
.article h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .75rem; }
.article p { color: var(--text-secondary); margin-bottom: 1rem; }
.article ul, .article ol { color: var(--text-secondary); margin: 0 0 1rem 1.5rem; }
.article li { margin-bottom: .35rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { background: var(--bg-secondary); padding: .85rem 1rem; text-align: left; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card); }
.check { color: var(--green); }
.cross { color: var(--red); }

/* Badge */
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 50px;
  background: var(--accent-light); color: var(--accent);
}
.badge-blue { background: rgba(59,130,246,0.12); color: var(--blue); }

/* Product card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.product-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.product-name { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); }
.product-score { display: flex; align-items: center; gap: .5rem; }
.score-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.score-label { font-size: .8rem; color: var(--text-muted); }
.product-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.product-card .pricing { background: var(--bg-secondary); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0; }
.pricing-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pricing-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.pricing-period { font-size: .85rem; color: var(--text-muted); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.25rem 0; }
.pros h4, .cons h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.pros h4 { color: var(--green); }
.cons h4 { color: var(--red); }
.pros li::marker { content: "✓ "; color: var(--green); }
.cons li::marker { content: "✗ "; color: var(--red); }
.pros ul, .cons ul { list-style: none; padding: 0; font-size: .9rem; color: var(--text-secondary); }
.pros li, .cons li { margin-bottom: .3rem; padding-left: 1.2rem; position: relative; }
.pros li::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.cons li::before { content: "✗"; color: var(--red); position: absolute; left: 0; font-weight: 700; }
.product-card .best-for { font-size: .9rem; color: var(--text-secondary); margin: 1rem 0; }
.product-card .best-for strong { color: var(--text-primary); }

/* CTA button */
.btn {
  display: inline-block; padding: .7rem 1.5rem;
  background: var(--accent); color: #000; font-weight: 700; font-size: .9rem;
  border-radius: 8px; transition: background .2s;
}
.btn:hover { background: var(--accent-hover); color: #000; }

/* FAQ */
.faq { margin: 2rem 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text-primary);
  font-size: 1rem; font-weight: 600; text-align: left;
  padding: 1.25rem 2rem 1.25rem 0; cursor: pointer;
  position: relative; font-family: inherit;
}
.faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--accent); }
.faq-q.open::after { content: "−"; }
.faq-a { padding: 0 0 1.25rem; color: var(--text-secondary); display: none; font-size: .95rem; }
.faq-a.open { display: block; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: .85rem; }

/* Related comparisons */
.related-comparisons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 860px;
}
.related-comparisons h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.related-comparisons a {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: .5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  margin: .25rem .5rem .25rem 0;
  transition: background .2s;
}
.related-comparisons a:hover {
  background: var(--accent);
  color: #000;
}

/* Stars */
.stars { color: var(--accent); letter-spacing: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-primary); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem 1.5rem; gap: .75rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .section { padding: 2.5rem 0; }
}

/* Footer sister links */
.footer-sister {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footer-sister a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-sister a:hover {
  color: var(--accent);
}
