/* ═══════════════════════════════════════════════════
   RESOURCES-SINGLE.CSS — Styles for resources-single.html
   Extends blog.css with resource-specific styles.
   ═══════════════════════════════════════════════════ */

/* Post header */
.post-header { padding: 7rem 0 2rem; }
@media (max-width: 768px) { .post-header { padding: 5rem 0 1.5rem; } }
.post-header h1 { margin-bottom: 1rem; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 0.5rem; }
.post-author { display: flex; align-items: center; gap: 8px; }
.post-author-name { font-size: 0.875rem; font-weight: 500; }

.feature-image {
  margin-top: 1.5rem; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9; border: 1px solid var(--border);
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* Article prose */
.article { font-size: 1.0625rem; line-height: 1.75; color: #d4d4d8; }
.article h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.article h3 { margin-top: 2rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.article h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.article p { font-size: inherit; line-height: inherit; color: #d4d4d8; margin-bottom: 1.25rem; }
.article p:last-child { margin-bottom: 0; }
.article a { color: #a5b4fc; border-bottom: 1px solid rgba(165,180,252,0.2); transition: border-color 0.2s; }
.article a:hover { border-color: #a5b4fc; }
.article strong { color: var(--text-primary); font-weight: 500; }
.article ul, .article ol { margin: 1rem 0 1.25rem; padding-left: 1.5rem; color: #d4d4d8; }
.article li { margin-bottom: 0.5rem; }
.article ul li { list-style: disc; }
.article ol li { list-style: decimal; }
.article li::marker { color: #a5b4fc; }

.article blockquote {
  border-left: 3px solid #a5b4fc;
  background: rgba(79,70,229,0.06);
  padding: 1.125rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article blockquote p { font-style: italic; color: #c4c4c8; margin-bottom: 0; }
.article blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.8125rem; font-style: normal; color: var(--text-muted); }

.article code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.875em; background: #0e0e10; padding: 0.15em 0.4em;
  border-radius: 4px; border: 1px solid var(--border); color: #e4e4e7;
}
.article pre {
  background: #0e0e10; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin: 1.25rem 0; overflow-x: auto;
}
.article pre code { background: none; border: none; padding: 0; font-size: 0.875rem; }
.article em { color: var(--text-secondary); }

/* Tips / callout boxes */
.article .tip {
  border-radius: var(--radius-md);
  background: rgba(79,70,229,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article .tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}
.article .tip-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.article .tip p { margin-bottom: 0; font-size: 0.9375rem; }

/* Download / action box */
.download-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.download-box_info { flex: 1; min-width: 150px; }
.download-box_info p { font-size: 0.875rem; margin-bottom: 0; }
.download-box_info strong { color: var(--text-primary); }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none !important;
  border-bottom: none !important;
}
.download-btn:hover { background: rgba(250,250,250,0.85); }
.download-btn svg { width: 16px; height: 16px; }

/* Share */
.share-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 0.8125rem; color: var(--text-muted); margin-right: 4px; }
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); transition: all 0.2s;
}
.share-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); border-color: var(--border-light); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.copied { color: #22c55e; border-color: rgba(34,197,94,0.3); }

/* Related resources */
.related-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

.rel-card {
  border-radius: var(--radius-md); background: var(--bg-surface);
  border: 1px solid var(--border); overflow: hidden;
  transition: background 0.2s;
  cursor: default;
}
.rel-card:hover { background: rgba(255,255,255,0.06); }
.rel-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.rel-card-body { padding: 1rem; }
.rel-card-body h4 { font-size: 1rem; font-weight: 600; transition: color 0.2s; }
.rel-card:hover .rel-card-body h4 { color: #a5b4fc; }
.rel-card-body p { font-size: 0.8125rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-card-footer { padding: 0 1rem 1rem; }
.rel-card-footer span { font-size: 0.75rem; color: var(--text-muted); }


