/* Shared blog post layout — used on public post page and admin preview */
.blog-post-page {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-header-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
  background: var(--bmp-border, rgba(255, 255, 255, 0.08));
}

.blog-post-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--bmp-text, #f1f5f9);
  margin: 0 0 8px;
}

.blog-post-date {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 28px;
}

.blog-post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #f1f5f9;
  margin: 1.5em 0 0.5em;
}

.blog-post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-post-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-post-body p { margin: 0 0 1em; }
.blog-post-body ul,
.blog-post-body ol { margin: 0 0 1em; padding-left: 1.5em; }
.blog-post-body ul { list-style-type: disc; }
.blog-post-body ol { list-style-type: decimal; }
.blog-post-body li { margin-bottom: 0.35em; }
.blog-post-body strong { font-weight: 700; }
.blog-post-body em { font-style: italic; }
.blog-post-body blockquote {
  margin: 0 0 1em;
  padding-left: 1em;
  border-left: 3px solid rgba(183, 109, 255, 0.5);
  color: #94a3b8;
  font-style: italic;
}
.blog-post-body a { color: #b76dff; }
.blog-post-body img { max-width: 100%; border-radius: 8px; }

.blog-list-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--bmp-border, rgba(255, 255, 255, 0.1));
  background: var(--bmp-glass-bg, rgba(255, 255, 255, 0.03));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.blog-list-row:hover {
  border-color: rgba(183, 109, 255, 0.4);
  background: rgba(183, 109, 255, 0.06);
}

.blog-list-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.blog-list-thumb-placeholder {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.blog-list-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f1f5f9;
  margin: 0 0 6px;
}

.blog-list-summary {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.blog-list-date {
  font-size: 0.75rem;
  color: #64748b;
  margin: 8px 0 0;
}

.blog-share-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bmp-border, rgba(255, 255, 255, 0.1));
}

.blog-share-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0 0 16px;
}

.blog-share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-share-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  min-width: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: #e2e8f0;
  font-size: 11px;
  font-family: inherit;
}

.blog-share-tile:hover {
  border-color: rgba(183, 109, 255, 0.5);
  background: rgba(183, 109, 255, 0.08);
}

.blog-share-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-share-tile-icon svg {
  width: 20px;
  height: 20px;
}

.blog-share-compose {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}

.blog-share-compose.open {
  display: flex;
}

.blog-share-compose-card {
  width: 100%;
  max-width: 480px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
}

.blog-share-compose-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #f1f5f9;
}

.blog-share-compose-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.blog-share-compose-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.blog-share-compose-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.blog-share-cancel {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.blog-share-submit {
  background: linear-gradient(135deg, #b76dff, #0566d9);
  color: #fff;
}

@media (max-width: 991px) {
  .blog-list-summary,
  .blog-list-date {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-list-row {
    grid-template-columns: 80px 1fr;
  }
  .blog-list-thumb,
  .blog-list-thumb-placeholder {
    width: 80px;
    height: 45px;
  }
}
