/* ============================================
   Custom Single Post Layout with Sidebar
   SocialXpresso Blog Template
   ============================================ */

/* Single Post Container */
.ast-single-post-wrapper {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ast-single-post-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* Post Header Styles */
.ast-post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e8ddd0;
}

.ast-post-meta-header {
  margin-bottom: 1.5rem;
}

.ast-post-category {
  display: inline-flex;
  gap: 0.5rem;
}

.ast-post-category a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c45c1a;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  background: rgba(196, 92, 26, 0.08);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.ast-post-category a:hover {
  background: rgba(196, 92, 26, 0.15);
  color: #e8823a;
}

/* Post Title */
.ast-post-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #1a0a00;
}

/* Post Meta Information */
.ast-post-meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b4f3a;
}

.ast-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ast-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #c45c1a;
}

.ast-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ast-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a0a00;
}

.ast-author-role {
  font-size: 0.75rem;
  color: #9a7a62;
}

.ast-meta-divider {
  color: #d4c4b0;
}

.ast-meta-date,
.ast-meta-reading-time {
  color: #6b4f3a;
}

/* Post Content */
.ast-post-content {
  margin-bottom: 3rem;
  line-height: 1.8;
}

.ast-post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: #2d1a0a;
}

.ast-post-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: #1a0a00;
  padding-top: 2rem;
  border-top: 1px solid #e8ddd0;
}

.ast-post-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.ast-post-content h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.8rem;
  color: #1a0a00;
}

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

.ast-post-content li {
  margin-bottom: 0.7rem;
  color: #2d1a0a;
}

.ast-post-content a {
  color: #c45c1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 92, 26, 0.3);
  transition: all 0.2s ease;
}

.ast-post-content a:hover {
  color: #e8823a;
  border-bottom-color: #e8823a;
}

.ast-post-content strong {
  font-weight: 600;
  color: #1a0a00;
}

.ast-post-content blockquote {
  border-left: 4px solid #c45c1a;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem;
  background: #f5ede0;
  border-radius: 4px;
}

.ast-post-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* Post Footer */
.ast-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8ddd0;
}

/* Author Bio Box */
.ast-author-bio-box {
  background: #1a0a00;
  color: #f5ede0;
  border-radius: 12px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ast-author-bio-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ast-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #c45c1a;
}

.ast-author-bio-content { }

.ast-bio-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8823a;
  margin-bottom: 0.3rem;
}

.ast-bio-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5ede0;
  margin-bottom: 0.4rem;
}

.ast-bio-text {
  font-size: 0.85rem;
  color: #9a7a62;
  line-height: 1.6;
}

/* Tags */
.ast-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ast-tag-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c45c1a;
  background: rgba(196, 92, 26, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(196, 92, 26, 0.2);
}

.ast-tag-link:hover {
  background: rgba(196, 92, 26, 0.15);
  color: #e8823a;
  border-color: #e8823a;
}

/* Related Posts */
.ast-related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e8ddd0;
}

.ast-related-posts h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #1a0a00;
}

.ast-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ast-related-post-item {
  background: #faf6f1;
  border: 1px solid #d4c4b0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.ast-related-post-item:hover {
  border-color: #c45c1a;
  box-shadow: 0 4px 20px rgba(196, 92, 26, 0.1);
}

.ast-related-post-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1a0a00;
}

.ast-related-post-item h4 a {
  color: #1a0a00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ast-related-post-item h4 a:hover {
  color: #c45c1a;
}

.ast-related-post-item p {
  font-size: 0.9rem;
  color: #6b4f3a;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ast-read-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c45c1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ast-read-more:hover {
  color: #e8823a;
  transform: translateX(4px);
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.ast-single-post-sidebar {
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .ast-single-post-sidebar {
    display: none;
  }
}

.ast-sidebar-card {
  background: #ffffff;
  border: 1px solid #d4c4b0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.ast-sidebar-card:hover {
  box-shadow: 0 4px 16px rgba(196, 92, 26, 0.08);
}

.ast-sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7a62;
  margin-bottom: 1rem;
  display: block;
}

/* Table of Contents */
.ast-toc-list {
  list-style: none;
  padding: 0;
}

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

.ast-toc-list li a {
  font-size: 0.85rem;
  color: #6b4f3a;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.ast-toc-list li a:hover {
  color: #c45c1a;
  border-left-color: #c45c1a;
  background: rgba(196, 92, 26, 0.04);
}

/* Sidebar Stats */
.ast-sidebar-stat {
  text-align: center;
  padding: 0.5rem 0;
}

.ast-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7a62;
  margin-bottom: 0.5rem;
}

.ast-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #c45c1a;
  line-height: 1;
}

/* Share Buttons */
.ast-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ast-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d4c4b0;
  background: #faf6f1;
  color: #c45c1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.ast-share-btn:hover {
  background: #c45c1a;
  color: #ffffff;
  border-color: #c45c1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 92, 26, 0.2);
}

.ast-share-icon {
  display: block;
}

/* Recent Posts List */
.ast-recent-posts-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ast-recent-posts-list li a {
  font-size: 0.85rem;
  color: #6b4f3a;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.ast-recent-posts-list li a:hover {
  background: rgba(196, 92, 26, 0.08);
  color: #c45c1a;
  padding-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ast-post-title {
    font-size: 1.6rem;
  }

  .ast-post-content h2 {
    font-size: 1.4rem;
  }

  .ast-post-content p {
    font-size: 1rem;
  }

  .ast-author-bio-box {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .ast-bio-avatar {
    width: 48px;
    height: 48px;
  }

  .ast-related-posts-grid {
    grid-template-columns: 1fr;
  }
}
