/**
 * Professional Blog Single Post Styling
 * Modern, clean design for blog posts
 *
 * @format
 */

/* Reset & Base */
.blog-single-wrapper {
  background: #fff;
  min-height: 100vh;
}

/* Hero Section with Featured Image */
.blog-hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  background: #1a1a1a;
}

.blog-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.blog-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 60px 0;
}

.blog-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.blog-hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-category-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #70023d;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-category-badge:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.blog-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 25px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
}

.meta-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
  font-weight: 600;
}

/* Header Section without Featured Image */
.blog-header-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.category-badge {
  background: #70023d;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background: #8b0349;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 2, 61, 0.3);
}

.blog-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 30px 0;
}

.blog-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  color: #666;
}

.blog-meta .meta-item {
  color: #666;
}

/* Content Wrapper */
.blog-content-wrapper {
  background: #fff;
  padding: 60px 0;
}

.blog-content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 60px;
  align-items: start;
}

/* Social Share Sidebar */
.blog-social-share {
  position: relative;
}

.social-share-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.share-title {
  font-size: 14px;
  font-weight: 700;
  color: #666;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-facebook {
  background: #1877f2;
  color: #fff;
}

.share-facebook:hover {
  background: #0d65d9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-twitter {
  background: #1da1f2;
  color: #fff;
}

.share-twitter:hover {
  background: #0c8bd9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.share-linkedin {
  background: #0077b5;
  color: #fff;
}

.share-linkedin:hover {
  background: #005885;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.share-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Article Content */
.blog-article {
  max-width: 900px;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin: 0 0 25px 0;
}

.article-content h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 50px 0 25px 0;
  position: relative;
  padding-bottom: 15px;
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #70023d 0%, #8b0349 100%);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 40px 0 20px 0;
}

.article-content h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 35px 0 15px 0;
}

.article-content ul,
.article-content ol {
  margin: 25px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.article-content ul li {
  list-style-type: none;
  position: relative;
  padding-left: 10px;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #70023d;
  border-radius: 50%;
}

.article-content blockquote {
  margin: 35px 0;
  padding: 25px 30px;
  background: #f8f9fa;
  border-left: 5px solid #70023d;
  font-size: 20px;
  font-style: italic;
  color: #444;
  border-radius: 0 8px 8px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 35px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content a {
  color: #70023d;
  text-decoration: underline;
  text-decoration-color: rgba(112, 2, 61, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.article-content a:hover {
  text-decoration-color: #70023d;
}

.article-content pre {
  background: #1a1a1a;
  color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 30px 0;
  font-size: 15px;
  line-height: 1.6;
}

.article-content code {
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 16px;
  color: #e74c3c;
  font-family: "Courier New", Courier, monospace;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Page Links */
.page-links {
  margin: 40px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-weight: 600;
  color: #666;
}

.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-number:hover,
.page-links .current .page-number {
  background: #70023d;
  border-color: #70023d;
  color: #fff;
}

/* Article Tags */
.article-tags {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.article-tags svg {
  color: #70023d;
}

.tag-label {
  font-weight: 700;
  color: #666;
  margin-right: 10px;
}

.article-tags a {
  display: inline-block;
  background: #f8f9fa;
  color: #333;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
}

.article-tags a:hover {
  background: #70023d;
  border-color: #70023d;
  color: #fff;
  transform: translateY(-2px);
}

/* Author Bio Section */
.blog-author-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.blog-author-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.author-bio {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-avatar-large {
  flex-shrink: 0;
}

.author-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #70023d;
}

.author-info {
  flex-grow: 1;
}

.author-info .author-name {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
}

.author-description {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
}

.author-description p {
  margin: 0 0 10px 0;
}

.author-description p:last-child {
  margin-bottom: 0;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #70023d;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-link:hover {
  gap: 12px;
}

.author-link svg {
  width: 16px;
  height: 16px;
}

/* Comments Section */
.blog-comments-section {
  padding: 60px 0;
  background: #fff;
}

.blog-comments-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Related Posts Section */
.blog-related-section {
  background: #f8f9fa;
  padding: 80px 0;
  border-top: 1px solid #e0e0e0;
}

.blog-related-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.related-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  margin: 0 0 50px 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
}

.related-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
}

.related-post-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.related-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-thumbnail {
  transform: scale(1.05);
}

.related-post-content {
  padding: 25px;
}

.related-post-category {
  margin-bottom: 12px;
}

.related-post-category a {
  display: inline-block;
  background: #70023d;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.related-post-category a:hover {
  background: #8b0349;
}

.related-post-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 15px 0;
}

.related-post-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #70023d;
}

.related-post-meta {
  color: #999;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-content-container {
    gap: 40px;
  }

  .blog-hero-title,
  .blog-title {
    font-size: 44px;
  }

  .article-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .blog-content-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-social-share {
    order: 2;
  }

  .blog-article {
    order: 1;
  }

  .social-share-sticky {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
  }

  .share-title {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0 20px 0 0;
  }

  .share-buttons {
    flex-direction: row;
  }

  .blog-hero-title,
  .blog-title {
    font-size: 38px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar-large {
    margin: 0 auto;
  }

  .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .blog-hero-content {
    padding: 40px 0;
  }

  .blog-hero-container,
  .blog-header-container,
  .blog-content-container,
  .blog-author-container,
  .blog-comments-container,
  .blog-related-container {
    padding: 0 20px;
  }

  .blog-hero-title,
  .blog-title {
    font-size: 32px;
  }

  .blog-hero-meta,
  .blog-meta {
    gap: 15px;
    font-size: 14px;
  }

  .meta-item svg {
    width: 16px;
    height: 16px;
  }

  .blog-header-section {
    padding: 60px 0 40px;
  }

  .blog-content-wrapper {
    padding: 40px 0;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
  }

  .article-content h3 {
    font-size: 24px;
  }

  .author-bio {
    padding: 30px 20px;
  }

  .author-info .author-name {
    font-size: 24px;
  }

  .related-title {
    font-size: 32px;
    margin-bottom: 35px;
  }

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

@media (max-width: 576px) {
  .blog-hero-section {
    min-height: 350px;
  }

  .blog-hero-title,
  .blog-title {
    font-size: 28px;
  }

  .hero-category-badge,
  .category-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .share-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .share-btn {
    width: 44px;
    height: 44px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 20px;
  }

  .article-content blockquote {
    font-size: 18px;
    padding: 20px;
  }

  .author-avatar-large img {
    width: 100px;
    height: 100px;
  }

  .related-title {
    font-size: 28px;
  }
}

/* Print Styles */
@media print {
  .blog-social-share,
  .blog-comments-section,
  .blog-related-section {
    display: none;
  }

  .blog-content-container {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  .blog-hero-overlay {
    display: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-article,
.author-bio,
.related-post-card {
  animation: fadeInUp 0.6s ease-out;
}
