:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a25;
  --border: #2a2a3a;
  --accent: #c47aff;
  --accent2: #8b5cf6;
  --accent3: #a78bfa;
  --text: #f0f0f8;
  --text2: #a0a0b8;
  --white: #ffffff;
  --green: #34d399;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.nav-back { color: var(--text2); text-decoration: none; font-size: 0.85rem; }
.nav-back:hover { color: var(--accent); }
.article-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, #0f0f1a 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.article-inner { max-width: 780px; margin: 0 auto; }
.article-tag {
  display: inline-block;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: var(--accent3); padding: 0.35rem 0.9rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.5rem;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2;
  margin-bottom: 1.2rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1.5rem;
  color: var(--text2); font-size: 0.85rem; margin-bottom: 1.5rem;
}
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-lead {
  font-size: 1.15rem; color: var(--text2); line-height: 1.75;
  border-left: 3px solid var(--accent2); padding-left: 1.2rem;
}
.article-body {
  max-width: 780px; margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; margin: 3rem 0 1rem;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.8rem;
  color: var(--accent3);
}
.article-body p { color: var(--text2); line-height: 1.8; margin-bottom: 1.2rem; }
.article-body p strong { color: var(--text); }
.article-body ul, .article-body ol {
  color: var(--text2); padding-left: 1.5rem; margin-bottom: 1.2rem;
}
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body li strong { color: var(--text); }
.callout {
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25);
  border-radius: 12px; padding: 1.5rem 1.8rem; margin: 2rem 0;
}
.callout p { color: var(--text); margin: 0; font-size: 1rem; }
.callout-title { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.code-block {
  background: #0d0d18; border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  margin: 1.5rem 0; overflow-x: auto;
}
.code-block pre { color: #c4b5fd; font-size: 0.88rem; font-family: 'Courier New', monospace; line-height: 1.6; }
.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.author-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-top: 4rem;
}
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.author-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.author-info p { color: var(--text2); font-size: 0.85rem; line-height: 1.6; }
.related-articles {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 4rem 2rem;
}
.related-inner { max-width: 780px; margin: 0 auto; }
.related-inner h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.2rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: rgba(139,92,246,0.4); }
.related-card-num { font-size: 0.7rem; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.related-card h4 { font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: var(--text); }
/* SHARE BUTTONS */
.share-section {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.share-section h4 {
  font-size: 0.85rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.share-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s; color: var(--text2);
  background: var(--bg3);
}
.share-btn:hover { transform: translateY(-2px); color: white; border-color: transparent; }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.twitter:hover  { background: #1DA1F2; }
.share-btn.linkedin:hover { background: #0A66C2; }
.share-btn.copy:hover     { background: var(--accent2); }


.article-img-hero {
  margin: 0;
  display: block;
  width: 100%;
  line-height: 0;
}
.article-img-hero svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 340px;
}

@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .share-buttons { gap: 0.5rem; }
}
