/* ========================================
   HAPPENGRID - Blog Post Page Styles
   ======================================== */

:root {
  --background: hsl(240, 10%, 4%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(240, 10%, 6%);
  --card-foreground: hsl(0, 0%, 98%);
  --primary: hsl(270, 80%, 65%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(240, 5%, 15%);
  --muted: hsl(240, 5%, 15%);
  --muted-foreground: hsl(240, 5%, 65%);
  --accent: hsl(280, 70%, 60%);
  --border: hsl(240, 5%, 18%);
  --radius: 0.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.w-full {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

/* Navbar styles handled by global.css */

/* Blog Post Page */
.blog-post-page {
  padding: 6rem 0 4rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--muted-foreground);
}

.breadcrumb .current {
  color: var(--foreground);
}

/* Article Header */
.article-header {
  text-align: center;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.reading-time {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-foreground);
}

.author-avatar.large {
  width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
}

.author-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.publish-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Featured Image */
.featured-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.article-content .intro-paragraph {
  font-size: 1.125rem;
  color: var(--foreground);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 2rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.article-content li strong {
  color: var(--foreground);
}

.article-content a.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a.text-link:hover {
  color: var(--accent);
}

/* Callout Box */
.callout-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.callout-box.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.callout-content {
  font-size: 0.9375rem;
  color: var(--foreground);
}

.callout-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Article Image */
.article-image {
  margin: 2rem 0;
}

.article-image img {
  width: 100%;
  border-radius: var(--radius);
}

.article-image figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Agenda Table */
.agenda-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}

.agenda-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.agenda-row:last-child {
  border-bottom: none;
}

.agenda-row.header {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--foreground);
}

.time-col {
  width: 120px;
  padding: 0.875rem 1rem;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 500;
}

.agenda-row.header .time-col {
  color: var(--foreground);
}

.activity-col {
  flex: 1;
  padding: 0.875rem 1rem;
  color: var(--muted-foreground);
}

.agenda-row.header .activity-col {
  color: var(--foreground);
}

/* Promotion Grid */
.promotion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .promotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.promo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}

.promo-card:hover {
  border-color: var(--primary);
}

.promo-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.promo-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.promo-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary);
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--foreground);
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted-foreground);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--secondary);
  color: var(--muted-foreground);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.share-label {
  font-weight: 500;
  color: var(--foreground);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

.share-btn.twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: white;
}

.share-btn.linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.share-btn.copy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Author Bio */
.author-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

@media (min-width: 640px) {
  .author-bio {
    flex-direction: row;
    text-align: left;
  }
}

.author-bio-content h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.author-bio-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.author-bio-content p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .author-social {
    justify-content: flex-start;
  }
}

.social-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.social-link:hover {
  text-decoration: underline;
}

/* Related Posts */
.related-posts {
  margin: 4rem 0;
}

.related-posts h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
}

.post-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.25rem;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Blog CTA */
.blog-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(192, 132, 252, 0.1));
}

.blog-cta h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-cta p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--foreground);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #22c55e;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* ============================================
   BLOG POST — AUTHOR EDIT/DELETE ADDITIONS
   ============================================ */

/* Author action bar */
.author-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
  background: hsla(270, 80%, 55%, 0.06);
  border: 1px solid hsla(270, 80%, 55%, 0.18);
  border-radius: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-action-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(270, 80%, 70%);
  font-weight: 500;
}

.author-action-bar-left svg {
  color: hsl(270, 80%, 65%);
  flex-shrink: 0;
}

.author-action-bar-right {
  display: flex;
  gap: 0.6rem;
}

.author-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.author-action-btn.edit {
  background: hsla(270, 80%, 55%, 0.1);
  border-color: hsla(270, 80%, 55%, 0.25);
  color: hsl(270, 80%, 72%);
}

.author-action-btn.edit:hover {
  background: hsla(270, 80%, 55%, 0.2);
  border-color: hsla(270, 80%, 55%, 0.45);
  transform: translateY(-1px);
}

.author-action-btn.delete {
  background: hsla(0, 80%, 55%, 0.08);
  border-color: hsla(0, 80%, 55%, 0.2);
  color: hsl(0, 80%, 68%);
}

.author-action-btn.delete:hover {
  background: hsla(0, 80%, 55%, 0.18);
  border-color: hsla(0, 80%, 55%, 0.4);
  transform: translateY(-1px);
}

/* ============================================
   EDIT MODAL
   ============================================ */
.blog-edit-overlay {
  position: fixed;
  inset: 0;
  background: hsla(240, 20%, 4%, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bpFadeIn 0.2s ease;
}

@keyframes bpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bpZoomIn { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.blog-edit-modal {
  background: hsl(240, 15%, 9%);
  border: 1px solid hsla(270, 30%, 35%, 0.25);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 700px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: bpZoomIn 0.25s ease;
}

.blog-edit-header {
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid hsla(270, 30%, 35%, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.blog-edit-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: hsl(0, 0%, 98%);
}

.text-gradient {
  background: linear-gradient(135deg, hsl(270, 80%, 65%), hsl(290, 80%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-edit-header p {
  font-size: 0.78rem;
  color: hsla(0, 0%, 100%, 0.45);
  margin: 0;
}

.blog-edit-close {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  color: hsla(0, 0%, 100%, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.blog-edit-close:hover {
  background: hsla(0, 80%, 60%, 0.15);
  color: hsl(0, 80%, 70%);
}

.blog-edit-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Reuse blog-form-* classes from blog.css — add any overrides here */
.blog-form-label-hint {
  font-size: 0.7rem;
  color: hsla(0, 0%, 100%, 0.35);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.35rem;
}

/* Current image preview inside edit modal */
.blog-current-image {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background: hsla(240, 15%, 8%, 0.6);
  border: 1px solid hsla(270, 30%, 35%, 0.15);
  border-radius: 0.65rem;
  margin-bottom: 0.75rem;
}

.blog-current-image img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.blog-current-image span {
  font-size: 0.78rem;
  color: hsla(0, 0%, 100%, 0.45);
}

.blog-upload-area-sm {
  padding: 1rem !important;
}

.blog-upload-area-sm .blog-upload-placeholder p {
  font-size: 0.8rem;
}

.blog-edit-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid hsla(270, 30%, 35%, 0.15);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Shared button styles (also used in blog.css, duplicated here for blog-post page) */
.blog-btn-ghost {
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 0.65rem;
  color: hsla(0, 0%, 100%, 0.55);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-btn-ghost:hover {
  background: hsla(0, 0%, 100%, 0.05);
  color: hsl(0, 0%, 95%);
}

.blog-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, hsl(270, 80%, 60%), hsl(290, 80%, 55%));
  border: none;
  border-radius: 0.65rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px hsla(270, 80%, 65%, 0.3);
}

.blog-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsla(270, 80%, 65%, 0.45);
}

/* ============================================
   DELETE CONFIRM MODAL
   ============================================ */
.blog-delete-overlay {
  position: fixed;
  inset: 0;
  background: hsla(240, 20%, 4%, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bpFadeIn 0.2s ease;
}

.blog-delete-modal {
  background: hsl(240, 15%, 9%);
  border: 1px solid hsla(0, 80%, 55%, 0.2);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: bpZoomIn 0.25s ease;
}

.blog-delete-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsla(0, 80%, 55%, 0.1);
  border: 1.5px solid hsla(0, 80%, 55%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: hsl(0, 80%, 65%);
}

.blog-delete-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(0, 0%, 98%);
  margin-bottom: 0.6rem;
}

.blog-delete-modal p {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.blog-delete-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.blog-btn-danger {
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, hsl(0, 80%, 50%), hsl(0, 70%, 45%));
  border: none;
  border-radius: 0.65rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px hsla(0, 80%, 50%, 0.3);
}

.blog-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsla(0, 80%, 50%, 0.45);
}

/* ============================================
   BLOG CARD — EDIT BUTTON OVERLAY
   ============================================ */
.blog-card-author-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.blog-card:hover .blog-card-author-actions {
  opacity: 1;
}

.blog-card-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.blog-card-action-btn.edit {
  background: hsla(270, 80%, 55%, 0.85);
  color: white;
}

.blog-card-action-btn.edit:hover {
  background: hsl(270, 80%, 60%);
  transform: scale(1.1);
}

/* Toast for blog-post page */
.bp-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  max-width: 320px;
  transition: all 0.3s ease;
}

.bp-toast.success {
  background: hsla(150, 70%, 40%, 0.15);
  border: 1px solid hsla(150, 70%, 40%, 0.3);
  color: hsl(150, 70%, 60%);
}

.bp-toast.error {
  background: hsla(0, 80%, 55%, 0.15);
  border: 1px solid hsla(0, 80%, 55%, 0.3);
  color: hsl(0, 80%, 65%);
}

.bp-toast.info {
  background: hsla(270, 80%, 55%, 0.12);
  border: 1px solid hsla(270, 80%, 55%, 0.25);
  color: hsl(270, 80%, 70%);
}

/* Inline form styles needed on blog-post page (mirrors blog.css) */
.blog-form-group { margin-bottom: 1.25rem; }

.blog-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsla(0, 0%, 100%, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.required { color: hsl(0, 80%, 65%); }

.blog-form-input,
.blog-form-textarea,
.blog-form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: hsla(240, 15%, 8%, 0.7);
  border: 1.5px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 0.75rem;
  color: hsl(0, 0%, 98%);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.blog-input-lg { font-size: 1.1rem; font-weight: 600; }

.blog-form-textarea { min-height: 100px; resize: vertical; }

.blog-form-input:focus,
.blog-form-textarea:focus,
.blog-form-select:focus {
  outline: none;
  border-color: hsla(270, 80%, 65%, 0.5);
  box-shadow: 0 0 0 3px hsla(270, 80%, 65%, 0.1);
}

.blog-form-input::placeholder,
.blog-form-textarea::placeholder { color: hsla(0, 0%, 100%, 0.25); }

.blog-form-select option { background: hsl(240, 15%, 9%); }

.blog-char-hint {
  font-size: 0.72rem;
  color: hsla(0, 0%, 100%, 0.35);
  margin-top: 0.3rem;
  display: block;
}

.blog-upload-area {
  border: 2px dashed hsla(270, 30%, 35%, 0.3);
  border-radius: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: hsla(240, 15%, 8%, 0.4);
}

.blog-upload-area:hover {
  border-color: hsla(270, 80%, 65%, 0.4);
  background: hsla(270, 80%, 65%, 0.04);
}

.blog-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: hsla(0, 0%, 100%, 0.4);
}

.blog-upload-placeholder p { font-size: 0.8rem; margin: 0; }
.blog-upload-placeholder span { color: hsl(270, 80%, 70%); font-weight: 600; }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.blog-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid hsla(270, 30%, 35%, 0.2);
}
