/* ============================================
   CoinGyaan — blog.css
   Shared styles for guides, articles and
   static content pages
   ============================================ */

/* ── Page layout ── */
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Back link ── */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: #f59e0b; }

/* ── Article tag ── */
.article-tag {
  display: inline-block;
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ── Article meta ── */
.article-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 32px;
}

/* ── Article content ── */
.article-content {
  max-width: 700px;
}
.article-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 20px;
}
.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 40px;
  margin-bottom: 12px;
}
.article-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 28px;
  margin-bottom: 10px;
}
.article-content ul {
  margin: 0 0 20px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.8;
}
.article-content ol {
  margin: 0 0 20px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.8;
}
.article-content li { margin-bottom: 6px; }
.article-content a { color: #f59e0b; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content strong { color: #e2e8f0; }

/* ── Article wrap (alternate container) ── */
.article-wrap { max-width: 700px; }
.article-wrap p {
  font-size: 15px;
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 20px;
}
.article-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 40px;
  margin-bottom: 12px;
}
.article-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 28px;
  margin-bottom: 10px;
}
.article-wrap ul {
  margin: 0 0 20px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.8;
}
.article-wrap ol {
  margin: 0 0 20px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.8;
}
.article-wrap li { margin-bottom: 6px; }
.article-wrap a { color: #f59e0b; text-decoration: none; }
.article-wrap strong { color: #e2e8f0; }

/* ── Page body (static pages) ── */
.page-body { max-width: 680px; }
.page-body p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #d1d5db;
  font-size: 15px;
}
.page-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 40px;
  margin-bottom: 12px;
}
.page-body ul {
  margin: 0 0 20px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.8;
}
.page-body ul li { margin-bottom: 6px; }

/* ── Code blocks ── */
.code-block {
  position: relative;
  background: #0f1821;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 40px 16px 16px 16px; /* top padding reserves space for copy button */
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}
.code-block pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
  white-space: pre;
}
.code-block code {
  color: #7fb3d5;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: transparent;
  padding: 0;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  visibility: visible;
  opacity: 1;
  line-height: 1.6;
}

/* ── CTA section ── */
.cta-section {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 48px;
}
.cta-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
}
.cta-section p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.cta-button {
  display: inline-block;
  background: #f59e0b;
  color: #0a0f1e !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.cta-button:hover { background: #d97706; color: #0a0f1e !important; }

/* ── Disclaimer badge in articles ── */
.disclaimer {
  font-size: 12px;
  color: #475569;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

/* ── Result hidden state ── */
.hidden { display: none !important; }

/* ── Badge styles ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge.bullish { background: rgba(34,197,94,0.1); color: #22c55e; }
.badge.bearish { background: rgba(239,68,68,0.1); color: #ef4444; }
.badge.neutral { background: rgba(148,163,184,0.1); color: #94a3b8; }
