/* Blog Post Specific Styles */

/* Main Layout */
.blog-post-main {
  padding-top: 4rem;
  min-height: 100vh;
}

/* Loading State */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

/* Post Not Found */
.post-not-found {
  padding: 4rem 0;
  text-align: center;
}

.not-found-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.not-found-content p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Post Hero */
.post-hero {
  padding: 2rem 0;
  background: var(--white);
}

.post-hero-content {
  max-width: 64rem;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

[dir="rtl"] .back-btn {
  flex-direction: row-reverse;
}

.back-arrow {
  transition: var(--transition);
}

.back-btn:hover .back-arrow {
  transform: translateX(-4px);
}

[dir="rtl"] .back-btn:hover .back-arrow {
  transform: translateX(4px) scaleX(-1);
}

.post-category-container {
  margin-bottom: 1rem;
  text-align: left;
}

[dir="rtl"] .post-category-container {
  text-align: right;
}

.post-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--afandy-teal), var(--afandy-blue));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: left;
}

[dir="rtl"] .post-title {
  text-align: right;
}

@media (min-width: 768px) {
  .post-title {
    font-size: 3rem;
  }
}

/* Blog Post Specific Styles */
.blog-post-hero {
  background: linear-gradient(135deg, #077c8a 0%, #1d2c34 100%);
  padding: 6rem 0 2rem;
  min-height: 40vh;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-post-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid #077c8a;
  padding-bottom: 0.5rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
  margin-bottom: 1rem;
  color: #4b5563;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.blog-post-content strong {
  font-weight: 600;
  color: #1f2937;
}

.blog-post-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button.facebook {
  background-color: #1877f2;
  color: white;
}

.share-button.twitter {
  background-color: #1da1f2;
  color: white;
}

.share-button.linkedin {
  background-color: #0077b5;
  color: white;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: #077c8a;
  color: white;
}

/* RTL Support for Blog Post */
.rtl .blog-post-content {
  text-align: right;
  direction: rtl;
}

.rtl .blog-post-content ul,
.rtl .blog-post-content ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

.rtl .share-button {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.rtl .tags-container {
  justify-content: flex-end;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-post-hero {
    padding: 4rem 0 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
  }

  .blog-post-sidebar {
    position: static;
    margin-top: 2rem;
  }
}
