/* ============================================================
   Bohemia Design System — Blog Post (Single Article)
   ============================================================ */

/* ----- HERO ----- */
.bp-hero .hero-overlay {
  min-height: 50vh;
}

.bp-hero .hero-title {
  font-size: var(--bh-text-3xl);
  max-width: 800px;
}

.bp-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--bh-sp-5);
  justify-content: center;
  margin-top: var(--bh-sp-4);
  font-size: var(--bh-text-sm);
  color: var(--bh-stone-300);
}

.bp-hero-meta time,
.bp-hero-meta .bp-read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-hero-meta svg {
  opacity: 0.7;
}

/* ----- LAYOUT ----- */
.bp-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--bh-sp-8) 0 var(--bh-sp-12);
}

/* ----- FEATURED IMAGE ----- */
.bp-featured {
  margin: 0 calc(-1 * var(--bh-sp-4)) var(--bh-sp-8);
  border-radius: var(--bh-radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.bp-featured-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ----- ARTICLE BODY ----- */
.bp-body {
  padding: 0 var(--bh-sp-2);
}

/* ----- CONTENT TYPOGRAPHY ----- */
.bp-content {
  font-size: var(--bh-text-base);
  line-height: 1.8;
  color: var(--bh-stone-700);
}

.bp-content > *:first-child {
  margin-top: 0;
}

.bp-content p {
  margin-bottom: var(--bh-sp-5);
}

.bp-content h2 {
  font-family: var(--bh-font-display);
  font-size: var(--bh-text-xl);
  font-weight: 700;
  color: var(--bh-text-primary);
  margin-top: var(--bh-sp-10);
  margin-bottom: var(--bh-sp-4);
  padding-bottom: var(--bh-sp-2);
  border-bottom: 2px solid var(--bh-stone-100);
}

.bp-content h3 {
  font-family: var(--bh-font-display);
  font-size: var(--bh-text-lg);
  font-weight: 700;
  color: var(--bh-text-primary);
  margin-top: var(--bh-sp-8);
  margin-bottom: var(--bh-sp-3);
}

.bp-content h4 {
  font-size: var(--bh-text-base);
  font-weight: 700;
  color: var(--bh-text-primary);
  margin-top: var(--bh-sp-6);
  margin-bottom: var(--bh-sp-2);
}

.bp-content a {
  color: var(--bh-garnet-600);
  text-decoration: underline;
  text-decoration-color: var(--bh-garnet-200);
  text-underline-offset: 3px;
  transition: color var(--bh-dur-fast), text-decoration-color var(--bh-dur-fast);
}

.bp-content a:hover {
  color: var(--bh-garnet-700);
  text-decoration-color: var(--bh-garnet-600);
}

.bp-content strong {
  color: var(--bh-text-primary);
  font-weight: 700;
}

.bp-content blockquote {
  margin: var(--bh-sp-6) 0;
  padding: var(--bh-sp-5) var(--bh-sp-6);
  border-left: 4px solid var(--bh-garnet-600);
  background: var(--bh-stone-50);
  border-radius: 0 var(--bh-radius-md) var(--bh-radius-md) 0;
  font-style: italic;
  color: var(--bh-stone-600);
}

.bp-content blockquote p:last-child {
  margin-bottom: 0;
}

.bp-content ul,
.bp-content ol {
  margin: var(--bh-sp-4) 0;
  padding-left: var(--bh-sp-6);
}

.bp-content li {
  margin-bottom: var(--bh-sp-2);
}

.bp-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bh-radius-lg);
  margin: var(--bh-sp-6) 0;
}

.bp-content figure {
  margin: var(--bh-sp-8) 0;
}

.bp-content figcaption {
  text-align: center;
  font-size: var(--bh-text-sm);
  color: var(--bh-stone-500);
  margin-top: var(--bh-sp-2);
}

.bp-content hr {
  border: none;
  height: 1px;
  background: var(--bh-stone-150);
  margin: var(--bh-sp-8) 0;
}

.bp-content pre,
.bp-content code {
  font-family: var(--bh-font-mono);
  font-size: var(--bh-text-sm);
}

.bp-content code {
  background: var(--bh-stone-50);
  padding: 2px 6px;
  border-radius: var(--bh-radius-sm);
  color: var(--bh-garnet-600);
}

.bp-content pre {
  background: var(--bh-stone-900);
  color: var(--bh-stone-100);
  padding: var(--bh-sp-5);
  border-radius: var(--bh-radius-md);
  overflow-x: auto;
  margin: var(--bh-sp-6) 0;
}

.bp-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.bp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--bh-sp-6) 0;
  font-size: var(--bh-text-sm);
}

.bp-content th,
.bp-content td {
  padding: var(--bh-sp-3) var(--bh-sp-4);
  border-bottom: 1px solid var(--bh-stone-100);
  text-align: left;
}

.bp-content th {
  font-weight: 700;
  color: var(--bh-text-primary);
  background: var(--bh-stone-50);
}

/* ----- TAGS ----- */
.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-sp-2);
  margin-top: var(--bh-sp-8);
  padding-top: var(--bh-sp-6);
  border-top: 1px solid var(--bh-stone-100);
}

.bp-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--bh-text-xs);
  font-weight: 600;
  color: var(--bh-stone-600);
  background: var(--bh-stone-50);
  border-radius: var(--bh-radius-full);
  text-decoration: none;
  transition: all var(--bh-dur-fast);
}

.bp-tag:hover {
  background: var(--bh-garnet-50);
  color: var(--bh-garnet-700);
}

/* ----- SHARE ----- */
.bp-share {
  display: flex;
  align-items: center;
  gap: var(--bh-sp-3);
  margin-top: var(--bh-sp-6);
  padding-top: var(--bh-sp-6);
  border-top: 1px solid var(--bh-stone-100);
}

.bp-share-label {
  font-size: var(--bh-text-sm);
  font-weight: 600;
  color: var(--bh-stone-500);
}

.bp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--bh-radius-full);
  background: var(--bh-stone-50);
  color: var(--bh-stone-600);
  text-decoration: none;
  transition: all var(--bh-dur-fast);
}

.bp-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bp-share-fb:hover {
  background: #1877F2;
  color: white;
}

.bp-share-tw:hover {
  background: var(--bh-stone-900);
  color: white;
}

/* ----- RELATED ARTICLES ----- */
.bp-related {
  margin-top: var(--bh-sp-12);
  padding-top: var(--bh-sp-10);
  border-top: 2px solid var(--bh-stone-100);
}

.bp-related-title {
  font-family: var(--bh-font-display);
  font-size: var(--bh-text-xl);
  font-weight: 700;
  color: var(--bh-text-primary);
  margin-bottom: var(--bh-sp-6);
}

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

@media (max-width: 768px) {
  .bp-hero .hero-title {
    font-size: var(--bh-text-2xl);
  }

  .bp-hero-meta {
    flex-direction: column;
    gap: var(--bh-sp-2);
  }

  .bp-layout {
    padding: var(--bh-sp-6) 0 var(--bh-sp-8);
  }

  .bp-featured {
    margin: 0 0 var(--bh-sp-6);
    border-radius: var(--bh-radius-lg);
  }

  .bp-body {
    padding: 0;
  }

  .bp-content h2 {
    font-size: var(--bh-text-lg);
    margin-top: var(--bh-sp-8);
  }

  .bp-content h3 {
    font-size: var(--bh-text-base);
  }

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

@media (max-width: 480px) {
  .bp-hero .hero-title {
    font-size: var(--bh-text-xl);
  }

  .bp-content {
    font-size: var(--bh-text-sm);
    line-height: 1.75;
  }
}
