/**
 * Single Post Page Redesign
 * Style tương tự shinkaym-slider & shinkaym-list-filter
 * Version: 1.0.0
 */

:root {
  --sk-primary: #0f3460;
  --sk-primary-hover: #16213e;
  --sk-radius: 16px;
  --sk-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --sk-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ========== POST WRAPPER ========== */
.single-post .site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.single-post article.post {
  background: #fff;
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* ========== FEATURED IMAGE ========== */
.single-post .post-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
  margin: 0;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-post .post-thumbnail:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .single-post .post-thumbnail {
    aspect-ratio: 4/3;
  }
}

/* ========== POST HEADER ========== */
.single-post .entry-header {
  padding: 2rem 3rem 0rem;
  margin: 0;
}

@media (max-width: 768px) {
  .single-post .entry-header {
    padding: 1.5rem 1.5rem 1rem;
  }
}

.single-post .entry-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0 0 1.5rem 0 !important;
}

@media (max-width: 768px) {
  .single-post .entry-title {
    font-size: 1.75rem;
  }
}

/* ========== POST META ========== */
.sk-post-meta {
  display: none;
  /* display: flex; */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 3rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

@media (max-width: 768px) {
  .sk-post-meta {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
}

.sk-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.sk-post-meta-item i {
  color: var(--sk-primary);
  font-size: 1rem;
}

.sk-post-meta-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sk-post-meta-author .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sk-primary);
}

.sk-post-meta-author-name {
  font-weight: 600;
  color: #2c3e50;
}

.sk-post-meta-date,
.sk-post-meta-comments {
  text-decoration: none;
  color: #6c757d;
  transition: color 0.2s ease;
}

.sk-post-meta-date:hover,
.sk-post-meta-comments:hover {
  color: var(--sk-primary);
}

/* Categories */
.sk-post-categories {
  display: none;
  /* display: flex; */
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 3rem 1rem;
}

@media (max-width: 768px) {
  .sk-post-categories {
    padding: 0 1.5rem 1rem;
  }
}

.sk-post-category {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.875rem;
  background: linear-gradient(135deg, var(--sk-primary), var(--sk-primary-hover));
  color: #fff !important;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sk-post-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 52, 96, 0.3);
  color: #fff !important;
}

/* ========== POST CONTENT ========== */
.single-post .entry-content {
  padding: 2rem 3rem 3rem;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .single-post .entry-content {
    padding: 1.5rem 1.5rem 2rem;
    font-size: 1rem;
  }
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post .entry-content h2 {
  display: none;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2.5rem 0 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.single-post .entry-content h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sk-primary), var(--sk-primary-hover));
  border-radius: 2px;
}

.single-post .entry-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2rem 0 1rem;
}

.single-post .entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 1.75rem 0 0.875rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-post .entry-content li {
  margin-bottom: 0.75rem;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid var(--sk-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #495057;
}

.single-post .entry-content a {
  color: var(--sk-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.single-post .entry-content a:hover {
  color: var(--sk-primary-hover);
}

/* ========== POST TAGS ========== */
.sk-post-tags {
  padding: 2rem 3rem;
  border-top: 2px solid #f1f3f5;
}

@media (max-width: 768px) {
  .sk-post-tags {
    padding: 1.5rem 1.5rem;
  }
}

.sk-post-tags-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sk-post-tags-title i {
  color: var(--sk-primary);
}

.sk-post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sk-post-tag {
  display: inline-flex;
  padding: 0.375rem 0.875rem;
  background: #f1f3f5;
  color: #495057 !important;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.sk-post-tag:hover {
  background: var(--sk-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.2);
}

/* ========== AUTHOR BOX ========== */
.sk-author-box {
  background: #fff;
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sk-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

.sk-author-avatar {
  flex-shrink: 0;
}

.sk-author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sk-primary);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.2);
}

@media (max-width: 768px) {
  .sk-author-avatar img {
    width: 100px;
    height: 100px;
  }
}

.sk-author-info {
  flex: 1;
}

.sk-author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.sk-author-title {
  color: var(--sk-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.sk-author-bio {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sk-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sk-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sk-author-link:hover {
  color: var(--sk-primary-hover);
}

/* ========== RELATED POSTS (Đồng bộ với plugin shinkaym-list-filter) ========== */
.sk-related-posts {
  background: #fff;
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .sk-related-posts {
    padding: 1.5rem;
  }
}

/* Section Header - giống plugin */
.sk-related-posts .wcps-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.sk-related-posts .wcps-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: auto !important;
  text-align: center;
  text-transform: none;
}

@media (max-width: 576px) {
  .sk-related-posts .wcps-section-title {
    font-size: 1.5rem;
  }
}

/* Card - giống plugin sklf-card */
.sk-related-posts .sklf-card {
  border-radius: var(--sk-radius);
  height: 100%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.sk-related-posts .sklf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Image Box - giống plugin */
.sk-related-posts .sklf-imgbox {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  border-radius: var(--sk-radius) var(--sk-radius) 0 0;
  background: #f8f9fa;
  aspect-ratio: 16/9;
}

.sk-related-posts .sklf-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sk-related-posts .sklf-card:hover .sklf-imgbox img {
  transform: scale(1.03);
}

/* Card Body */
.sk-related-posts .card-body {
  padding: 1rem;
}

/* Title - giống plugin sklf-title */
.sk-related-posts .sklf-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sk-related-posts .sklf-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sk-related-posts .sklf-card:hover .sklf-title a {
  color: var(--sk-primary);
}

/* Meta - giống plugin sklf-meta */
.sk-related-posts .sklf-meta {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sk-related-posts .sklf-meta .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Excerpt - giống plugin sklf-excerpt */
.sk-related-posts .sklf-excerpt {
  color: #495057;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  min-height: calc(1.5em * 2);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ========== HIDE COMMENTS ========== */
.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond {
  display: none !important;
}

/* Ẩn link comments trong meta nếu có */
.sk-post-meta-comments {
  display: none !important;
}
