/* Blog Styles */

/* Blog Hero */
.blog-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4a6fdc 0%, #6b5bd8 100%);
}

.blog-search-form {
  max-width: 500px;
  margin: 0 auto;
}

/* Cards */
.hover-lift {
  transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Post Categories & Tags */
.badge.bg-primary-soft {
  background-color: rgba(74, 111, 220, 0.15);
}

.tags-cloud .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Avatars */
.avatar-sm {
  width: 32px;
  height: 32px;
  overflow: hidden;
}

.avatar-md {
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  width: 100%;
  height: 100%;
}

/* Post Detail */
.post-header {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4a6fdc 0%, #6b5bd8 100%);
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.8);
}

.post-meta .badge {
  font-weight: normal;
}

.post-author-bio {
  border-radius: 0.5rem;
  border: none;
  background-color: #f8f9fa;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.post-content blockquote {
  border-left: 4px solid #4a6fdc;
  padding-left: 1rem;
  font-style: italic;
  color: #495057;
  margin: 1.5rem 0;
}

.post-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
}

.post-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* TOC */
.toc ul {
  padding-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #495057;
  text-decoration: none;
}

.toc a:hover {
  color: #4a6fdc;
  text-decoration: underline;
}

/* Comments */
.comment-content {
  white-space: pre-line;
}

/* Skip Link (for accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1050;
  background: #fff;
  color: #4a6fdc;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: left 0.3s;
}

.skip-link:focus {
  left: 1rem;
}

/* Newsletter Subscribe Form */
.newsletter-subscribe {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4a6fdc 0%, #6b5bd8 100%);
}

/* Responsiveness */
@media (max-width: 767.98px) {
  .post-header {
    padding: 3rem 0;
  }
  
  .post-content {
    font-size: 1rem;
  }
}

/* Rich Text Editor (for admin) */
.rich-text-editor {
  min-height: 300px;
}