/* ===========================================
   BLOG DETAIL PAGE STYLES
   =========================================== */

/* Blog Detail Hero */
.blog-detail-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 40px 20px 60px;
  color: white;
}

.blog-detail-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.blog-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.blog-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.blog-breadcrumb i {
  font-size: 12px;
  opacity: 0.6;
}

.blog-detail-category {
  margin-bottom: 20px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  color: #ff4081;
}

.category-badge i {
  font-size: 16px;
}

.blog-detail-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: white;
}

.blog-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-detail-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-detail-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.meta-separator {
  opacity: 0.5;
}

.blog-detail-actions {
  display: flex;
  gap: 12px;
}

.blog-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.blog-action-btn:hover {
  background: rgba(233, 30, 99, 0.2);
  border-color: rgba(233, 30, 99, 0.4);
  transform: translateY(-2px);
}

/* Blog Detail Section */
.blog-detail-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.blog-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
}

/* Main Content */
.blog-detail-main {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-detail-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.blog-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-content {
  padding: 50px;
  font-size: 18px;
  line-height: 1.8;
  color: #2d3436;
}

.blog-detail-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.blog-detail-content p {
  margin-bottom: 20px;
}

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

.blog-detail-content li {
  margin-bottom: 12px;
}

.blog-detail-content strong {
  font-weight: 600;
  color: #e91e63;
}

/* Tags */
.blog-detail-tags {
  padding: 30px 50px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #6c757d;
  font-size: 15px;
}

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

.tag-item {
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 20px;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.tag-item:hover {
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  color: white;
  border-color: #e91e63;
  transform: translateY(-2px);
}

/* Reactions */
.blog-reactions {
  padding: 40px 50px;
  border-top: 1px solid #e9ecef;
  background: linear-gradient(135deg, #fff5f8 0%, #f8f9fa 100%);
}

.reactions-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.reactions-header i {
  font-size: 24px;
  color: #e91e63;
}

.reactions-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.reactions-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.reaction-btn:hover {
  transform: scale(1.1);
  border-color: #e91e63;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.reaction-btn.reacted {
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  border-color: #e91e63;
}

.reaction-emoji {
  font-size: 32px;
  line-height: 1;
}

.reaction-count {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
}

.reaction-btn.reacted .reaction-count {
  color: white;
}

/* Share Section */
.blog-share-section {
  padding: 40px 50px;
  border-top: 1px solid #e9ecef;
}

.blog-share-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

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

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.share-btn.telegram {
  background: #0088cc;
}

.share-btn.copy {
  background: #6c757d;
}

/* Comments Section */
.blog-comments-section {
  padding: 50px;
  border-top: 1px solid #e9ecef;
}

.comments-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-header i {
  color: #e91e63;
}

.comment-form-container {
  margin-bottom: 40px;
}

.comment-form-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #856404;
}

.link-btn {
  background: none;
  border: none;
  color: #e91e63;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.comment-form {
  display: flex;
  gap: 15px;
}

.comment-form-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e9ecef;
}

.comment-form-input {
  flex: 1;
}

.comment-form-input textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.comment-form-input textarea:focus {
  outline: none;
  border-color: #e91e63;
}

.comment-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 10px 24px;
  background: #e9ecef;
  border: none;
  border-radius: 8px;
  color: #495057;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: #dee2e6;
}

.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.comment-item {
  display: flex;
  gap: 15px;
}

.comment-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e9ecef;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 15px;
}

.comment-date {
  font-size: 13px;
  color: #6c757d;
}

.comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #6c757d;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-action-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.comment-action-btn.liked {
  background: #e91e63;
  color: white;
  border-color: #e91e63;
}

.comments-load-more {
  text-align: center;
  margin-top: 30px;
}

.btn-outline {
  padding: 12px 30px;
  background: white;
  border: 2px solid #e91e63;
  border-radius: 12px;
  color: #e91e63;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline:hover {
  background: #e91e63;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Sidebar */
.blog-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card-header {
  padding: 25px 25px 0;
}

.sidebar-card-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card-header i {
  color: #e91e63;
}

.sidebar-card-body {
  padding: 25px;
}

/* Author Card */
.author-card-header {
  text-align: center;
  padding: 30px 25px 0;
}

.author-card-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #e91e63;
  margin-bottom: 15px;
}

.author-card-body h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  text-align: center;
}

.author-card-body p {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

/* Author Social Media */
.author-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.author-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.author-social-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.author-social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.author-social-btn.twitter {
  background: #000000;
}

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

.author-social-btn.youtube {
  background: #ff0000;
}

.author-social-btn.tiktok {
  background: #000000;
}

/* Sidebar Posts */
.sidebar-post {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sidebar-post:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

.sidebar-post:hover {
  transform: translateX(5px);
}

.sidebar-post-number {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-post-content {
  flex: 1;
}

.sidebar-post-content h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.4;
}

.sidebar-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
}

/* Newsletter Card */
.newsletter-card {
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  color: white;
  text-align: center;
}

.newsletter-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.newsletter-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

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

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 14px;
  margin-bottom: 12px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn-primary {
  width: 100%;
  padding: 8px 16px;
  font-size: 13px;
  background: white;
  color: #e91e63;
}

.newsletter-form .btn-primary:hover {
  background: #f8f9fa;
}

/* Related Posts Section */
.related-posts-section {
  padding: 80px 20px;
  background: white;
}

.related-posts-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-posts-container h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

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

.related-post-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.related-post-card:hover .related-post-image img {
  transform: scale(1.1);
}

.related-post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 16px;
  background: rgba(233, 30, 99, 0.95);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

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

.related-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  line-height: 1.4;
}

.related-post-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #6c757d;
}

.related-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-detail-sidebar {
    order: 2;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 32px;
  }

  .blog-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-detail-image {
    height: 300px;
  }

  .blog-detail-content {
    padding: 30px 20px;
    font-size: 16px;
  }

  .blog-detail-content h3 {
    font-size: 22px;
  }

  .blog-detail-tags,
  .blog-reactions,
  .blog-share-section,
  .blog-comments-section {
    padding: 30px 20px;
  }

  .reactions-container {
    justify-content: center;
  }

  .reaction-btn {
    min-width: 70px;
    padding: 12px 15px;
  }

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

  .comment-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .blog-detail-title {
    font-size: 24px;
  }

  .author-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .meta-separator {
    display: none;
  }

  .blog-detail-content {
    font-size: 15px;
  }

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

  .share-btn {
    justify-content: center;
  }

  .reaction-btn {
    min-width: 60px;
    padding: 10px 12px;
  }

  .reaction-emoji {
    font-size: 24px;
  }
}
