/* ========================================
   Single Post Page Styles
   ======================================== */

/* Enhanced Post Hero */
.post-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.9) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

.post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.post-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.post-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-hero .breadcrumb-item a:hover {
  color: white;
}

.post-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}

.post-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.post-categories-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-badge {
  background: rgba(91, 155, 213, 0.2);
  color: #5b9bd5;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(91, 155, 213, 0.3);
}

.post-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 20px;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.9rem;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.author-mini-avatar.placeholder {
  background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  font-size: 0.85rem;
  color: #5b9bd5;
}

.meta-divider {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .post-hero {
    min-height: 300px;
    padding: 80px 0 40px;
  }
  
  .post-hero-title {
    font-size: 1.75rem;
  }
  
  .post-hero-meta {
    font-size: 0.8rem;
  }
}

/* Breadcrumb */
.post-breadcrumb {
  margin-bottom: 20px;
}

.post-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.post-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-breadcrumb .breadcrumb-item a:hover {
  color: #ffffff;
}

.post-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}

.post-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Post Meta Header */
.post-meta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.post-meta-header i {
  margin-right: 6px;
}

.post-category-badge {
  background: #0066cc;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-meta-header .meta-divider {
  opacity: 0.6;
}

/* Post Single Section */
.post-single-section {
  padding: 60px 0 100px;
  background: #f8f9fa;
}

/* Post Single Card */
.post-single-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Featured Image */
.post-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Author Box */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 35px;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.author-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0066cc;
}

.author-details {
  flex: 1;
}

.author-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-details .author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5b9bd5;
  margin: 5px 0 0 0;
}

.post-stats-box {
  display: flex;
  gap: 20px;
}

.post-stats-box .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6c757d;
}

.post-stats-box .stat i {
  color: #0066cc;
}

/* Post Body */
.post-body {
  padding: 35px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4a4a4a;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5b9bd5;
  margin: 30px 0 15px 0;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body blockquote {
  margin: 30px 0;
  padding: 25px 30px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-left: 4px solid #0066cc;
  border-radius: 0 12px 12px 0;
}

.post-body blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: #5b9bd5;
  margin: 0;
}

/* Tags Section */
.post-tags-section {
  padding: 25px 35px;
  border-top: 1px solid #e9ecef;
}

.post-tags-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #5b9bd5;
  margin-bottom: 15px;
}

.post-tags-section h5 i {
  margin-right: 8px;
  color: #0066cc;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-block;
  padding: 8px 18px;
  background: #f0f7ff;
  color: #0066cc;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: #0066cc;
  color: #ffffff;
}

/* Share Section */
.post-share-section {
  padding: 25px 35px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.post-share-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #5b9bd5;
  margin-bottom: 15px;
}

.post-share-section h5 i {
  margin-right: 8px;
  color: #0066cc;
}

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

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  color: #ffffff;
}

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

.share-btn.twitter {
  background: #000000;
}

.share-btn.linkedin {
  background: #0a66c2;
}

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

.share-btn i {
  font-size: 1.1rem;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 4px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5b9bd5;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f7ff;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #0066cc;
}

/* Related Posts */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-post-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  padding: 10px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.related-post-item:hover {
  background: #f8f9fa;
}

.related-post-item img {
  width: 80px;
  height: 60px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-post-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5b9bd5;
  margin: 0 0 8px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-post-item:hover .related-post-info h5 {
  color: #0066cc;
}

.related-post-info span {
  font-size: 0.75rem;
  color: #6c757d;
}

.related-post-info span i {
  margin-right: 4px;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
  text-align: center;
  color: #ffffff;
}

.newsletter-widget i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.newsletter-widget h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter-widget p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 3px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  color: #5b9bd5;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
}

/* Dark Mode */
[data-theme="dark"] .post-single-section {
  background: #5b9bd5;
}

[data-theme="dark"] .post-single-card {
  background: #4a8ac4;
}

[data-theme="dark"] .post-author-box {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .author-details .author-name {
  color: #ffffff;
}

[data-theme="dark"] .post-body {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .post-body h3 {
  color: #ffffff;
}

[data-theme="dark"] .post-body blockquote {
  background: rgba(0, 102, 204, 0.1);
}

[data-theme="dark"] .post-body blockquote p {
  color: #ffffff;
}

[data-theme="dark"] .post-tags-section,
[data-theme="dark"] .post-share-section {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .post-share-section {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .post-tags-section h5,
[data-theme="dark"] .post-share-section h5 {
  color: #ffffff;
}

[data-theme="dark"] .tag-link {
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
}

[data-theme="dark"] .tag-link:hover {
  background: #00d9ff;
  color: #3a7cbd;
}

[data-theme="dark"] .sidebar-widget {
  background: #4a8ac4;
}

[data-theme="dark"] .widget-title {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .related-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .related-post-info h5 {
  color: #ffffff;
}

[data-theme="dark"] .related-post-item:hover .related-post-info h5 {
  color: #00d9ff;
}

/* Responsive */
@media (max-width: 991px) {
  .post-featured-image {
    height: 300px;
  }
  
  .post-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .post-meta-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .post-featured-image {
    height: 220px;
  }
  
  .post-author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  
  .post-body {
    padding: 20px;
  }
  
  .post-body h3 {
    font-size: 1.3rem;
  }
  
  .post-tags-section,
  .post-share-section {
    padding: 20px;
  }
}

