/* Blog-specific styles */

/* Blog post previews */
.blog-post-preview {
  margin-bottom: 2em;
  padding: 1.5em;
  border-left: 3px solid #2879d0;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
}

.blog-post-preview:hover {
  background: #f5f5f5;
  border-left-width: 4px;
  transform: translateX(2px);
}

/* Blog post preview titles - improve readability */
.blog-post-preview h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.6em;
  line-height: 1.4;
}

.blog-post-preview h2 a {
  text-decoration: none;
  color: #2c3e50 !important;
  font-weight: 600;
}

.blog-post-preview h2 a:hover {
  text-decoration: underline;
  color: #2879d0 !important;
}

/* Post metadata */
.post-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.post-meta time {
  font-weight: 500;
}

/* Post tags */
.post-tags {
  margin-top: 1em;
}

.post-tags .tag {
  display: inline-block;
  background: #f3e5f5;
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.8em;
  margin-right: 0.5em;
  margin-bottom: 0.25em;
  transition: background-color 0.2s ease;
}

.post-tags .tag:hover {
  background: #e1bee7;
}

/* Category tags */
.category-tag {
  background: #e1f5fe;
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.category-tag:hover {
  background: #b3e5fc;
}

/* Pagination */
.pagination {
  margin-top: 3em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.5em 1em;
  background: #2879d0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.page-link:hover {
  background: #1e5aa8;
}

.page-info {
  color: #666;
  font-weight: 500;
}

/* Individual blog post styles */
.blog-post {
  line-height: 1.7;
}

.post-header {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 2px solid #f0f0f0;
  /* Override main header styling */
  background: none !important;
  padding-top: 0 !important;
  border-bottom: 2px solid #f0f0f0 !important;
  font-family: inherit !important;
}

/* Blog post title - override main theme styles */
#main-content .post-header h1 {
  margin-bottom: 1em;
  color: #2c3e50 !important;
  line-height: 1.3;
  font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
  font-size: 2.2em;
  font-weight: 600;
  text-indent: 0 !important;
  letter-spacing: normal !important;
}

/* Remove the "/" character for blog post titles */
#main-content .post-header h1:before {
  content: none !important;
}

.post-description {
  font-style: italic;
  color: #555;
  margin-bottom: 2em;
  padding: 1em;
  border-left: 4px solid #2879d0;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
}

.post-content {
  max-width: none;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #333;
}

.post-content h2 {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5em;
}

.post-content blockquote {
  margin: 2em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #2879d0;
  background: #f8f9fa;
  font-style: italic;
  color: #555;
}

.post-content code {
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Post footer */
.post-footer {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #e0e0e0;
}

.social-sharing {
  margin-bottom: 2em;
}

.social-sharing h4 {
  margin-bottom: 1em;
  color: #333;
}

.social-sharing a {
  display: inline-block;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  padding: 0.5em 1em;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: opacity 0.2s ease;
}

.social-sharing a:hover {
  opacity: 0.8;
}

.author-info {
  padding: 1.5em;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 2em;
}

.author-info h4 {
  margin-top: 0;
  color: #333;
}

/* Post navigation */
.post-navigation {
  margin-top: 2em;
}

.post-navigation h4 {
  margin-bottom: 1em;
  color: #333;
}

.post-navigation > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.post-navigation a {
  color: #2879d0;
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.5em;
  padding: 0.5em 0;
  font-size: 0.9em;
  color: #666;
}

.breadcrumbs a {
  color: #2879d0;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Taxonomy pages */
.taxonomy-cloud {
  margin-bottom: 3em;
}

.taxonomy-cloud a {
  display: inline-block;
  margin: 0.25em;
  padding: 0.5em 1em;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.taxonomy-cloud a:hover {
  transform: scale(1.05);
}

.taxonomy-list > div {
  margin-bottom: 1.5em;
  padding: 1em;
  background: #f9f9f9;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.taxonomy-list > div:hover {
  background: #f5f5f5;
}

.taxonomy-list h3 {
  margin: 0 0 0.5em 0;
}

.taxonomy-list ul {
  margin: 0;
  padding-left: 1.5em;
}

.taxonomy-list li {
  margin-bottom: 0.25em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-post-preview {
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding: 1em;
    border-radius: 0;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pagination {
    flex-direction: column;
  }
  
  .post-navigation > div {
    flex-direction: column;
    text-align: center;
  }
  
  .social-sharing a {
    display: block;
    text-align: center;
    margin-bottom: 0.5em;
  }
}