/* Shared styles for article/comparison pages */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #191919;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f4f4f4;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --red: #ff453a;
  --green: #30d158;
  --orange: #ff9f0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Top Bar (compact, centered, wraps content) ---- */
.top-bar {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 980px;
  box-shadow: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.top-bar.scrolled {
  background: rgba(25, 25, 25, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.top-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.top-bar-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

.top-bar-name span {
  color: var(--text-secondary);
}

/* ---- CTA Button ---- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 980px;
  text-decoration: none;
  border: none;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--accent-hover);
}

/* ---- Article Layout ---- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.tldr {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tldr strong {
  color: var(--text-primary);
}

/* ---- Article Content ---- */
.article h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.article ul,
.article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.article li strong {
  color: var(--text-primary);
}

.article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}

.comparison-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.check {
  color: var(--green);
}

.cross {
  color: var(--red);
}

.partial {
  color: var(--orange);
}

/* ---- Bottom Line / CTA Section ---- */
.article-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.article-cta h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.article-cta p {
  margin-bottom: 20px;
}

.article-cta .cta-button {
  font-size: 16px;
  padding: 14px 32px;
}

/* ---- Alternatives Grid ---- */
.alt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.alt-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.alt-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 18px;
}

.alt-card .price-tag {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.alt-card .best-for {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.alt-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.alt-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.alt-card li {
  font-size: 14px;
  margin-bottom: 4px;
}

.alt-card-featured {
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.04);
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cta-button {
    font-size: 13px;
    padding: 8px 16px;
  }

  .article {
    padding: 40px 16px 60px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article h2 {
    font-size: 20px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }

  .comparison-table td:first-child {
    min-width: 120px;
  }
}
