/* ============================================
   BLOG-DETAY.CSS — Kompakt Blog Detay
   ============================================ */

.bd-main {
  background: #ffffff;
  padding-bottom: 0;
}

/* Progress Bar */
.bd-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #D4AF37;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Hero */
.bd-hero {
  padding: 24px 0;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.bd-hero-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.bd-hero-thumb {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.bd-hero-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.bd-hero-text {
  padding-top: 4px;
}

.bd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bd-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 2px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
}

.bd-dot {
  color: #ccc;
  font-size: 10px;
}

.bd-date, .bd-read {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.bd-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bd-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 12px;
}

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

.bd-hero-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.bd-hero-author-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #222;
}

.bd-hero-author-role {
  display: block;
  font-size: 10px;
  color: #888;
}

/* Content Layout */
.bd-content-layout {
  padding: 24px 0 40px;
  background: #ffffff;
}

.bd-layout-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.bd-main-col {
  min-width: 0;
}

/* TOC Panel */
.bd-toc-panel {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.bd-toc-panel h3 {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bd-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-toc a {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-toc a:last-child {
  border-bottom: none;
}

.bd-toc a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #D4AF37;
  flex-shrink: 0;
}

.bd-toc a:hover {
  color: #000;
  padding-left: 4px;
}

/* Body Content */
.bd-body {
  margin-bottom: 24px;
}

.bd-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 14px;
}

.bd-body h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  scroll-margin-top: 100px;
  padding-bottom: 6px;
  border-bottom: 1px solid #D4AF37;
}

.bd-body h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.bd-body ul,
.bd-body ol {
  margin: 10px 0 14px 18px;
  color: #444;
  line-height: 1.6;
}

.bd-body li {
  margin-bottom: 6px;
  font-size: 13px;
}

.bd-body a {
  color: #8B1A1A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bd-body a:hover {
  color: #000;
}

/* Comments Panel */
.bd-comments-panel {
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.bd-comments-panel h2 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

.bd-comment-form {
  margin-bottom: 24px;
}

.bd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.bd-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bd-form-group label {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bd-form-group input,
.bd-form-group textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  color: #000;
  background: #fff;
  transition: border-color 0.15s ease;
}

.bd-form-group input:focus,
.bd-form-group textarea:focus {
  outline: none;
  border-color: #D4AF37;
}

.bd-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.bd-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bd-comment-submit:hover {
  background: #D4AF37;
  color: #000;
}

.bd-comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-comment-item {
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

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

.bd-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.bd-comment-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bd-comment-name {
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.bd-comment-date {
  font-size: 10px;
  color: #999;
}

.bd-comment-text {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  padding-left: 36px;
}

/* Sidebar */
.bd-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-side-card {
  padding: 18px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.bd-author-card {
  text-align: center;
}

.bd-author-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #D4AF37;
}

.bd-author-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.bd-author-card p {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.bd-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bd-side-btn:hover {
  background: #D4AF37;
  color: #000;
}

.bd-share-card h4 {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.bd-share-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.bd-share-btns a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bd-share-btns a:hover {
  background: #D4AF37;
  color: #000;
}

.bd-toc-card h4 {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bd-toc-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-toc-side a {
  font-size: 11px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.bd-toc-side a:hover {
  background: rgba(212,175,55,0.1);
  color: #000;
}

/* Related Posts */
.bd-related {
  padding: 36px 0;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.bd-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bd-related-header h2 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.bd-related-all {
  font-size: 11px;
  font-weight: 600;
  color: #8B1A1A;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bd-related-all:hover {
  color: #000;
}

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

.bd-r-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  border: 1px solid #eee;
}

.bd-r-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: #D4AF37;
}

.bd-r-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.bd-r-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bd-r-card:hover .bd-r-img img {
  transform: scale(1.03);
}

.bd-r-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(0,0,0,0.85);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #D4AF37;
}

.bd-r-body {
  padding: 12px 14px;
}

.bd-r-date {
  display: block;
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
  font-weight: 500;
}

.bd-r-body h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0;
}

.bd-r-body h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bd-r-body h3 a:hover {
  color: #8B1A1A;
}

/* 404 */
.bd-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.bd-back {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  transition: background 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bd-back:hover {
  background: #D4AF37;
  color: #000;
}

/* Responsive */
@media (max-width: 960px) {
  .bd-layout-grid {
    grid-template-columns: 1fr;
  }
  .bd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bd-hero-inner {
    grid-template-columns: 160px 1fr;
    gap: 16px;
  }
  .bd-hero-thumb img {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .bd-hero-inner {
    grid-template-columns: 1fr;
  }
  .bd-hero-thumb img {
    height: 180px;
  }
  .bd-title {
    font-size: 20px;
  }
  .bd-sidebar {
    grid-template-columns: 1fr;
  }
  .bd-form-row {
    grid-template-columns: 1fr;
  }
  .bd-body h2 {
    font-size: 16px;
  }
  .bd-related-grid {
    grid-template-columns: 1fr;
  }
}
