/**
 * Single Post - Modern Minimalist Style
 * Fokus pada spacing, padding, dan readability
 */

/* ==========================================
   GENERAL LAYOUT
   ========================================== */

.single-post-custom {
  background: #ffffff;
  padding: 0;
  margin: 0;
}

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

/* ==========================================
   POST HEADER
   ========================================== */

.single-post-header {
  padding: 40px 0 30px;
  background: #ffffff;
}

/* Category Badge */
.post-category {
  margin-bottom: 15px;
}

.post-category a {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #26959A 0%, rgba(38, 149, 154, 0.85) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.post-category a:hover {
  background: linear-gradient(135deg, #1f7a7e 0%, #26959A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 149, 154, 0.25);
}

/* Post Title */
.post-title {
  font-size: 1.8rem;
  line-height: 1.3;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 0 20px;
  word-wrap: break-word;
}

/* Meta Info */
.post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #666666;
  font-weight: 500;
}

.post-meta svg {
  color: #26959A;
  flex-shrink: 0;
}

/* ==========================================
   FEATURED IMAGE
   ========================================== */

.single-post-featured {
  width: 100%;
  margin: 0 0 40px;
  background: #ffffff;
}

.post-featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* ==========================================
   POST CONTENT
   ========================================== */

.single-post-content {
  padding: 0 0 40px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

/* Typography inside content */
.entry-content p {
  margin: 0 0 20px;
  text-align: justify;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 35px 0 18px;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 30px 0 15px;
  line-height: 1.4;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 25px 0 12px;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 0 0 20px;
  padding-left: 30px;
}

.entry-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Blockquote */
.entry-content blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: #ffffff;
  border-left: 4px solid #26959A;
  font-size: 1rem;
  font-style: italic;
  color: #444444;
  border-radius: 0 8px 8px 0;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #26959A;
}

.entry-content blockquote p {
  margin-bottom: 0;
}

/* Images in content */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.entry-content figure {
  margin: 25px 0;
}

.entry-content figcaption {
  text-align: center;
  font-size: 14px;
  color: #888888;
  margin-top: 12px;
  font-style: italic;
}

/* Links */
.entry-content a {
  color: #26959A;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.entry-content a:hover {
  color: #1f7a7e;
}

/* Code blocks */
.entry-content code {
  background: #f4f4f4;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.entry-content pre {
  background: #282c34;
  color: #abb2bf;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ==========================================
   POST FOOTER
   ========================================== */

.single-post-footer {
  padding: 30px 0 40px;
  border-top: 1px solid #e0e0e0;
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.post-tags svg {
  color: #26959A;
  flex-shrink: 0;
}

.post-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: #ffffff;
  color: #555555;
  text-decoration: none;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: #26959A;
  color: #ffffff;
  border-color: #26959A;
  transform: translateY(-2px);
}

/* ==========================================
   POST NAVIGATION
   ========================================== */

.post-navigation {
  background: #ffffff;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nav-previous,
.nav-next {
  display: block;
}

.nav-previous a,
.nav-next a {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
  border-color: #26959A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 149, 154, 0.12);
}

.nav-next {
  text-align: right;
}

.nav-subtitle {
  font-size: 13px;
  color: #26959A;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .container-custom {
    padding: 0 20px;
  }

  .single-post-header {
    padding: 30px 0 20px;
  }

  .post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .post-meta {
    gap: 12px;
    padding-bottom: 15px;
  }

  .single-post-featured {
    margin-bottom: 30px;
  }

  .single-post-content {
    padding: 0 0 30px;
  }

  .entry-content {
    font-size: 15px;
  }

  .entry-content h2 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
  }

  .entry-content h3 {
    font-size: 1.15rem;
    margin: 20px 0 12px;
  }

  .entry-content blockquote {
    padding: 15px 20px;
    margin: 20px 0;
  }

  .entry-content img {
    margin: 20px 0;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-next {
    text-align: left;
  }

  .nav-previous a,
  .nav-next a {
    padding: 15px;
  }

  .nav-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.3rem;
  }

  .entry-content {
    font-size: 14px;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 25px;
  }

  .entry-content blockquote {
    padding: 15px 20px;
  }
}

/* ==========================================
   COMMENTS SECTION
   ========================================== */

.comments-section {
  background: #ffffff;
  padding: 40px 0;
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
}

/* Comments Title */
.comments-section .comments-title,
.comments-section #comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #26959A;
}

/* Comment List */
.comments-section .comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comments-section .comment {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.comments-section .comment-body {
  display: flex;
  gap: 15px;
}

.comments-section .comment-author {
  flex-shrink: 0;
}

.comments-section .comment-author img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.comments-section .comment-content-wrapper {
  flex: 1;
}

.comments-section .comment-author .fn {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: block;
}

.comments-section .comment-metadata {
  font-size: 13px;
  color: #888888;
  margin-bottom: 12px;
}

.comments-section .comment-metadata a {
  color: #888888;
  text-decoration: none;
}

.comments-section .comment-metadata a:hover {
  color: #26959A;
}

.comments-section .comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 12px;
}

.comments-section .comment-content p {
  margin: 0 0 12px;
}

.comments-section .reply {
  margin-top: 12px;
}

.comments-section .comment-reply-link {
  display: inline-block;
  padding: 6px 16px;
  background: #26959A;
  color: #ffffff;
  text-decoration: none;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comments-section .comment-reply-link:hover {
  background: #1f7a7e;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(38, 149, 154, 0.2);
}

/* Nested Comments */
.comments-section .children {
  list-style: none;
  margin: 20px 0 0 30px;
  padding: 0;
}

/* Comment Form */
.comments-section .comment-respond {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
  border: 1px solid #e0e0e0;
}

.comments-section .comment-reply-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 25px;
}

.comments-section .comment-form {
  display: grid;
  gap: 18px;
}

.comments-section .comment-form-author,
.comments-section .comment-form-email,
.comments-section .comment-form-url {
  margin: 0;
}

.comments-section .comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"] {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  transition: all 0.3s ease;
}

.comments-section .comment-form input:focus {
  border-color: #26959A;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 149, 154, 0.08);
}

.comments-section .comment-form-comment {
  margin: 0;
}

.comments-section .comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s ease;
}

.comments-section .comment-form textarea:focus {
  border-color: #26959A;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 149, 154, 0.08);
}

.comments-section .form-submit {
  margin: 0;
}

.comments-section .submit {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #26959A 0%, rgba(38, 149, 154, 0.85) 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(38, 149, 154, 0.25);
}

.comments-section .submit:hover {
  background: linear-gradient(135deg, #1f7a7e 0%, #26959A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(38, 149, 154, 0.35);
}

/* No Comments */
.comments-section .no-comments {
  text-align: center;
  font-size: 15px;
  color: #888888;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Comments Pagination */
.comments-section .comment-navigation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.comments-section .comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.comments-section .comment-navigation a {
  padding: 8px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.comments-section .comment-navigation a:hover {
  border-color: #26959A;
  color: #26959A;
}

/* Responsive Comments */
@media (max-width: 768px) {
  .comments-section {
    padding: 30px 0;
  }

  .comments-section .comment {
    padding: 15px;
  }

  .comments-section .comment-body {
    flex-direction: column;
    gap: 12px;
  }

  .comments-section .children {
    margin-left: 15px;
  }

  .comments-section .comment-respond {
    padding: 20px 15px;
  }

  .comments-section .comment-reply-title {
    font-size: 1.2rem;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}