/* ============================================
   BLOG STYLES (separate from main site)
   ============================================ */

/* Blog homepage header */
.blog-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 16px;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe5cc 100%);
  border-radius: 16px;
}

.blog-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--ink);
}

.blog-header .subtitle {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

/* Post card */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.post-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.1);
}

.post-card-link {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.post-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-2);
}

.post-category {
  background: var(--brand);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.post-read-time {
  font-size: 12px;
  color: var(--ink-2);
}

.post-card h2 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}

.post-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}

.post-card-arrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card-arrow {
  transform: translateX(4px);
}

/* ============================================
   INDIVIDUAL POST PAGE
   ============================================ */

.blog-post {
  margin-bottom: 30px;
}

.post-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.post-header .post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.post-header h1 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
}

.post-excerpt {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.post-author {
  font-size: 14px;
  color: var(--ink-2);
}

.post-author strong {
  color: var(--ink);
}

/* Post content */
.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.post-content h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--ink);
  scroll-margin-top: 20px;
}

.post-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}

.post-content p {
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 16px;
  padding-left: 22px;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-thickness: 2.5px;
}

.post-content strong {
  color: var(--ink);
  font-weight: 700;
}

.post-content blockquote {
  border-left: 4px solid var(--brand);
  background: #fff4e6;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink);
}

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

.post-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'Cascadia Mono', 'Source Code Pro', monospace;
  font-size: 0.9em;
  color: var(--brand);
}

.post-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 13px;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.post-content th,
.post-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.post-content th {
  background: var(--bg-2);
  font-weight: 700;
}

.post-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

/* Post footer */
.post-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post-tags {
  margin-bottom: 14px;
  font-size: 14px;
}

.post-tag {
  display: inline-block;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.post-share {
  margin-top: 14px;
  font-size: 14px;
}

.post-share strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.share-link {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.share-link:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* CTA box (between post and related) */
.post-cta {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe5cc 100%);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.post-cta h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}

.post-cta p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.post-cta .btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease;
}

.post-cta .btn:hover {
  background: #e55a00;
}

/* Related posts */
.related-posts {
  margin-bottom: 30px;
}

.related-posts h2 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--ink);
}
