/* ── ECLA BLOG — Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:     #07090F;
  --bg-surface:  #0D1421;
  --bg-elevated: #111C30;
  --border:      #1A2840;
  --blue:        #0EA5E9;
  --indigo:      #6366F1;
  --text-1:      #EEF2F7;
  --text-2:      #7E96B0;
  --text-3:      #3D566E;
  --gradient:    linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --radius-sm:   8px;
  --radius-md:   16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.7;
  font-size: 17px;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 40, 64, 0.5);
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 200; font-size: 20px;
  letter-spacing: 0.12em; color: var(--text-1);
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px; color: var(--text-2);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-lang { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.nav-lang:hover { color: var(--text-2); }
.nav-cta {
  background: var(--gradient); color: #fff; border: none;
  padding: 9px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── BLOG INDEX ── */
.blog-hero {
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.blog-hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero p { color: var(--text-2); font-size: 18px; max-width: 500px; margin: 0 auto; }

.blog-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: rgba(99,102,241,0.4); transform: translateY(-2px); }
.card-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--text-1); line-height: 1.3;
}
.card-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.card-meta { font-size: 12px; color: var(--text-3); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── ARTICLE ── */
.article-container {
  max-width: 740px; margin: 0 auto;
  padding: 64px 24px 100px;
}
.article-header { margin-bottom: 48px; }
.article-tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
  display: block;
}
.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.article-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 14px; color: var(--text-3);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* Article content typography */
.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px; font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 600;
  margin: 32px 0 12px; color: var(--text-1);
}
.article-content p { margin-bottom: 20px; color: var(--text-2); line-height: 1.8; }
.article-content p strong { color: var(--text-1); font-weight: 600; }
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px; color: var(--text-2);
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content a { color: var(--blue); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

/* Comparison table */
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 32px 0; font-size: 14px;
}
.article-content th {
  background: var(--bg-elevated);
  padding: 12px 16px; text-align: left;
  font-weight: 600; font-size: 13px;
  color: var(--text-1); border-bottom: 2px solid var(--indigo);
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2); vertical-align: top;
}
.article-content tr:hover td { background: var(--bg-surface); }
.yes { color: #34D399; font-weight: 600; }
.no  { color: #F87171; font-weight: 600; }
.partial { color: #FBBF24; font-weight: 600; }

/* Highlight box */
.highlight-box {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  padding: 20px 24px; margin: 32px 0;
}
.highlight-box p { color: var(--text-1); margin: 0; font-size: 16px; }

/* CTA box */
.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px; margin: 56px 0;
  text-align: center;
}
.cta-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 600;
  margin-bottom: 12px;
}
.cta-box p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.cta-box a {
  display: inline-block;
  background: var(--gradient); color: #fff;
  padding: 12px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; transition: opacity 0.2s;
}
.cta-box a:hover { opacity: 0.88; }

/* Related articles */
.related { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 48px; }
.related h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 600; margin-bottom: 24px;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  text-decoration: none; transition: border-color 0.2s;
}
.related-card:hover { border-color: rgba(99,102,241,0.4); }
.related-card span { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.related-card p { color: var(--text-1); font-size: 15px; font-weight: 600; margin-top: 6px; font-family: 'Outfit', sans-serif; }

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 200; font-size: 18px;
  letter-spacing: 0.12em; color: var(--text-3);
  text-decoration: none;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-2); }
footer p { font-size: 13px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .article-container { padding: 40px 20px 60px; }
  .related-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px; }
}
