/*
 * SheetFlux Blog — Shared Article Styles
 *
 * Used by all blog articles and the blog index page.
 * Loaded after style.css.
 */

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

.blog-article h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.blog-article h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 20px;
}

.blog-article h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 16px;
}

.blog-article p {
  font-size: 17px;
  color: var(--gray-800);
  line-height: 1.8;
  margin-bottom: 24px;
}

.blog-article strong {
  font-weight: 700;
  color: var(--gray-900);
}

.blog-article a {
  color: #00897B;
  text-decoration: underline;
  text-decoration-color: rgba(0, 137, 123, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.blog-article a:hover {
  text-decoration-color: #00897B;
}

/* Meta (date + read time) */
.blog-meta {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* Back to Blog link */
.blog-back {
  margin-bottom: 32px;
}

.blog-back a {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-back a:hover { color: var(--gray-900); }

/* Lists */
.blog-article ul,
.blog-article ol {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}

.blog-article ul li,
.blog-article ol li {
  font-size: 17px;
  color: var(--gray-800);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.blog-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00BFA5;
}

.blog-article ol {
  counter-reset: blog-counter;
}

.blog-article ol li {
  counter-increment: blog-counter;
}

.blog-article ol li::before {
  content: counter(blog-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #00BFA5;
}

/* Blockquote */
.blog-article blockquote {
  border-left: 4px solid #00BFA5;
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
}

.blog-article blockquote p {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Product mention inline */
.product-mention {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* CTA Box — Dark variant (articles 1-3) */
.blog-cta {
  border-radius: 16px;
  padding: 40px 32px;
  margin-top: 56px;
  text-align: center;
}

.blog-cta h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
}

.blog-cta p {
  font-size: 15px;
  margin-bottom: 24px;
}

.blog-cta-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Dark CTA (default) */
.blog-cta-dark {
  background: linear-gradient(135deg, var(--gray-900), #312E81);
}

.blog-cta-dark h3 { color: white; }
.blog-cta-dark p { color: rgba(255, 255, 255, 0.6); }

.blog-cta-dark .blog-cta-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-cta-dark .blog-cta-links a:hover { color: white; }

/* Dark CTA button */
.blog-cta-dark .blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--gray-900);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta-dark .blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

/* Light CTA (articles 4-5) */
.blog-cta-light {
  background: linear-gradient(135deg, #F0FDF9, #E0F2F1);
  border: 1px solid var(--gray-200);
}

.blog-cta-light h3 { color: var(--gray-900); }
.blog-cta-light p { color: var(--gray-600); line-height: 1.6; }

.blog-cta-light .blog-cta-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Light CTA buttons */
.blog-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-cta-btn-primary {
  background: linear-gradient(135deg, #00BFA5, #009688);
  color: white;
}

.blog-cta-btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

/* Product grid (year-in-review CTA) */
.blog-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.blog-product-link {
  display: block;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  transition: border-color 0.2s, transform 0.2s;
}

.blog-product-link:hover {
  border-color: #00BFA5;
  transform: translateY(-1px);
}

.blog-product-link .product-emoji {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

/* More Articles — Card grid variant (articles 1-3) */
.more-articles {
  margin-top: 56px;
  border-top: 1px solid var(--gray-200);
  padding-top: 40px;
}

.more-articles h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.more-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .more-articles-grid { grid-template-columns: 1fr 1fr; }
}

.more-article-card {
  display: block;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.more-article-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.more-article-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
}

.more-article-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
}

/* More Articles — List variant (articles 4-5) */
.blog-more {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.blog-more h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.blog-more-list {
  list-style: none;
  padding: 0;
}

.blog-more-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.blog-more-list li:last-child { border-bottom: none; }

.blog-more-list a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s;
}

.blog-more-list a:hover { color: #00897B; }

.blog-more-list .current {
  color: var(--gray-400);
  font-size: 15px;
  font-weight: 700;
}

/* Comparison table (google-sheets-vs-notion) */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.blog-article th {
  text-align: left;
  padding: 10px 12px;
  background: var(--gray-100);
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 2px solid var(--gray-200);
}

.blog-article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.blog-article tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 640px) {
  .blog-article { padding: 32px 16px 64px; }
  .blog-cta { padding: 24px; }
}
