/* MailDeck Blog - Shared Styles */
:root {
  --brand-blue: #0062FF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-content: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-light: #F1F5F9;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.2;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Navigation */
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.blog-nav-logo img {
  width: 32px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(31%) sepia(94%) saturate(2256%) hue-rotate(211deg) brightness(98%) contrast(92%);
}

.blog-nav-logo span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.blog-nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-nav-cta {
  background: var(--text-primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.blog-nav-cta:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

/* Article Hero */
.article-hero {
  padding-top: 100px;
  padding-bottom: 48px;
  background: var(--bg-white);
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-category {
  display: inline-block;
  background: #EFF6FF;
  color: var(--brand-blue);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.article-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.15;
}

.article-hero .article-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.article-meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* Article Content */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-content .article-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
}

.article-content h3 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

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

/* Blockquote - Provider Breakdown / Highlight style */
.article-content blockquote {
  border-left: 4px solid var(--brand-blue);
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--bg-white);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article-content blockquote p {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Highlight box — light blue bg for MailDeck sections */
.article-content .highlight-box {
  background: #EFF6FF;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  border: 1px solid #DBEAFE;
}

.article-content .highlight-box p {
  color: var(--text-primary);
}

.article-content .highlight-box ul {
  padding-left: 20px;
}

.article-content .highlight-box li {
  color: var(--text-primary);
}

/* Table of Contents */
.toc {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0 0 40px 0;
}

.toc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.toc a {
  display: block;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover {
  color: #004BCC;
  text-decoration: none;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison-table th {
  background: var(--bg-light);
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

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

.comparison-table tr:hover td {
  background: #FAFBFC;
}

.comparison-table .highlight {
  background: #F0F7FF;
  font-weight: 600;
  color: var(--brand-blue);
}

/* CTA Section */
.article-cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}

.article-cta h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 12px;
  border-bottom: none;
}

.article-cta p {
  color: #94A3B8;
  font-size: 16px;
  margin-bottom: 24px;
}

.article-cta a {
  display: inline-block;
  background: var(--brand-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.article-cta a:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Related Articles */
.related-articles {
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
  margin-top: 48px;
}

.related-articles h2 {
  font-size: 24px;
  margin-bottom: 24px;
  border-bottom: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--bg-white);
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-card-body {
  padding: 20px;
}

.related-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.related-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Blog List Page */
.blog-list-hero {
  padding-top: 120px;
  padding-bottom: 48px;
  text-align: center;
  background: var(--bg-white);
}

.blog-list-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.blog-list-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  background: #EFF6FF;
  color: var(--brand-blue);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card-body h2 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  border-bottom: none;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-card-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* Footer */
.blog-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
}

.blog-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.blog-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-footer-brand img {
  width: 28px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(31%) sepia(94%) saturate(2256%) hue-rotate(211deg) brightness(98%) contrast(92%);
}

.blog-footer-brand span {
  font-weight: 700;
  font-size: 16px;
}

.blog-footer-links {
  display: flex;
  gap: 24px;
}

.blog-footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

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

.blog-footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .blog-nav-links { display: none; }
  .article-cta { padding: 32px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .toc { padding: 20px 24px; }
  .article-content blockquote { padding: 20px 22px; }
  .article-content .highlight-box { padding: 20px 24px; }
}
