/* Fullwidth Post Layout Styles - Centered Content */
body {
  background-color: #f8f9fa;
}

[data-theme="dark"] body {
  background-color: #121212;
}

/* Main content container */
.fullwidth-post-layout {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Content wrapper with max-width for desktop */
.fullwidth-post-layout .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumb Styles */
.fullwidth-post-layout .breadcrumb {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(230, 230, 230, 0.1);
}

.fullwidth-post-layout .breadcrumb a {
  color: #666;
  text-decoration: none;
}

[data-theme="dark"] .fullwidth-post-layout .breadcrumb a {
  color: #aaa;
}

.fullwidth-post-layout .breadcrumb .delimiter {
  margin: 0 0.5rem;
  color: #666;
}

[data-theme="dark"] .fullwidth-post-layout .breadcrumb .delimiter {
  color: #aaa;
}

.fullwidth-post-layout .breadcrumb .current {
  color: #333;
}

[data-theme="dark"] .fullwidth-post-layout .breadcrumb .current {
  color: #e0e0e0;
}

/* Header and Title Styles */
.fullwidth-post-layout .post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}

[data-theme="dark"] .fullwidth-post-layout .post-title {
  color: #f8f9fa;
}

/* Author Meta Styles */
.fullwidth-post-layout .post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.fullwidth-post-layout .author-meta {
  display: flex;
  align-items: center;
}

.fullwidth-post-layout .meta-author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.fullwidth-post-layout .meta-author {
  font-weight: 500;
}

.fullwidth-post-layout .meta-date,
.fullwidth-post-layout .meta-reading-time {
  display: flex;
  align-items: center;
  color: #666;
}

[data-theme="dark"] .fullwidth-post-layout .meta-date,
[data-theme="dark"] .fullwidth-post-layout .meta-reading-time {
  color: #aaa;
}

.fullwidth-post-layout .meta-date::before,
.fullwidth-post-layout .meta-reading-time::before {
  content: "•";
  margin: 0 0.5rem;
  color: #666;
}

[data-theme="dark"] .fullwidth-post-layout .meta-date::before,
[data-theme="dark"] .fullwidth-post-layout .meta-reading-time::before {
  color: #aaa;
}

.fullwidth-post-layout .meta-reading-time svg {
  margin-right: 0.25rem;
}

/* Content Styles */
.fullwidth-post-layout .entry-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #333;
}

[data-theme="dark"] .fullwidth-post-layout .entry-content {
  color: #e0e0e0;
}

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

.fullwidth-post-layout .entry-content h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.fullwidth-post-layout .entry-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Featured Image */
.fullwidth-post-layout .featured-img-container {
  margin-bottom: 2rem;
  text-align: center;
}

.fullwidth-post-layout .featured-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Table of Contents */
.toc-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
}

.toc-container h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

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

.toc-list a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.toc-list .toc-h2 {
  padding-left: 0;
}

.toc-list .toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.9em;
}

.toc-list .toc-h4 {
  padding-left: 3rem;
  font-size: 0.85em;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: none;
  cursor: pointer;
}

.share-button svg {
  width: 18px;
  height: 18px;
}

/* Related Posts Grid */
.related-posts-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.related-posts-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--card-bg);
}

/* Subtle hover effect - color change only */
.related-post-card:hover {
  background-color: var(--hover-bg-color, rgba(100, 100, 100, 0.05));
}

.related-post-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.related-post-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-post-title a {
  color: var(--heading-color);
  text-decoration: none;
}

.related-post-excerpt {
  font-size: 0.875rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-meta {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--meta-color);
}

.related-post-date {
  display: flex;
  align-items: center;
}

.related-post-date svg {
  margin-right: 0.25rem;
  width: 14px;
  height: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .fullwidth-post-layout .post-title {
    font-size: 2.2rem;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fullwidth-post-layout .post-title {
    font-size: 1.8rem;
  }
  
  .fullwidth-post-layout .post-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .fullwidth-post-layout .meta-date::before,
  .fullwidth-post-layout .meta-reading-time::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .fullwidth-post-layout .post-title {
    font-size: 1.5rem;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
