/* ============================================================
   blog-post.css  —  Individual blog post page styles
   Blueprint Spain  |  Brand: #004C80, Roboto, white/minimal
   ============================================================ */

/* ---- Back bar ---- */
.bp-back-bar {
  background: #fff;
  padding: 22px 0 13px;
}

.bp-back-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #004C80;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.bp-back-link:hover {
  opacity: 0.75;
  text-decoration: none;
  color: #004C80;
}

.bp-back-link svg {
  width: 14px;
  height: 14px;
  stroke: #004C80;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---- Hero ---- */
.bp-hero {
  background: #fff;
  padding: 36px 0 32px;
}

.bp-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 28px;
  align-items: center;
}

/* video column — LEFT */
.bp-hero-left {
  flex: 2 2 0;
  min-width: 0;
  order: 2;
}

/* title column — RIGHT → swapped to RIGHT visually, LEFT in DOM */
.bp-hero-right {
  flex: 0 0 120px;
  width: 120px;
  order: 1;
}

/* Topic badge */
.bp-topic-badge {
  display: inline-block;
  background: #e8f0f8;
  color: #004C80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* Article title */
.bp-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* Meta row */
.bp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 0;
}

.bp-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

/* Video panel (right side) */
.bp-video-label {
  display: none;
}

.bp-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 portrait */
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bp-video-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

.bp-video-wrap picture {
  position: absolute;
  inset: 0;
  display: block;
}

.bp-video-wrap iframe,
.bp-video-wrap picture img,
.bp-video-wrap img {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: none;
  object-fit: cover;
}

/* Thumbnail facade — shown before user clicks play */
.bp-video-wrap {
  cursor: pointer;
}

/* Show YouTube-style play icon on hover — reuses .blog-play-icon from main.css */
.bp-video-wrap:hover .blog-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- Divider ---- */
.bp-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* ---- Article body ---- */
.bp-body-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 32px 36px;
}

.bp-article {
  max-width: 100%;
}

.bp-article p {
  font-size: 1.02rem;
  line-height: 1.88;
  color: #2d2d2d;
  margin-bottom: 1.5em;
}

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

/* Coming soon placeholder */
.bp-coming-soon {
  text-align: center;
  padding: 40px 0 20px;
}

.bp-coming-soon p {
  font-size: 1rem;
  color: #aaa;
  font-style: italic;
}

/* ---- Post navigation ---- */
.bp-post-nav-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px 52px;
}

.bp-post-nav {
  max-width: 100%;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 28px;
}

.bp-post-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #004C80;
  text-decoration: none;
  padding: 9px 18px;
  border: 1.5px solid #d0dde8;
  border-radius: 24px;
  transition: background 0.15s, border-color 0.15s;
  max-width: 48%;
}

.bp-post-nav-link:hover {
  background: #e8f0f8;
  border-color: #004C80;
  text-decoration: none;
  color: #004C80;
}

.bp-post-nav-link svg {
  width: 14px;
  height: 14px;
  stroke: #004C80;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.bp-post-nav-label {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-post-nav-spacer {
  flex: 1;
}

/* ---- Related posts ---- */
.bp-related {
  background: #f7f8fb;
  border-top: 1px solid #eee;
  padding: 52px 32px 64px;
}

.bp-related-inner {
  max-width: 780px;
  margin: 0 auto;
}

.bp-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  max-width: 100%;
}

/* Related post card — plain <a> link */
.bp-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}

.bp-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.11);
  text-decoration: none;
  color: inherit;
}

.bp-related-thumb {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 portrait */
  overflow: hidden;
  background: #111;
}

.bp-related-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-related-body {
  padding: 10px 12px 13px;
}

.bp-related-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #004C80;
  background: #e8f0f8;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.bp-related-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #0a0a0a;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Not found state ---- */
.bp-not-found {
  text-align: center;
  padding: 100px 32px;
}

.bp-not-found h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.bp-not-found p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 28px;
}

.bp-not-found a {
  color: #004C80;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid #004C80;
  padding-bottom: 1px;
}

/* ---- Responsive ---- */

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .bp-hero-inner {
    gap: 28px;
  }

  .bp-title {
    font-size: 2rem;
  }

  .bp-related-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
}

/* iPad portrait / large mobile (≤700px) — stack hero */
@media (max-width: 700px) {
  .bp-hero {
    padding: 32px 0 28px;
  }

  .bp-hero-inner {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .bp-hero-right {
    flex: none;
    width: 100%;
    max-width: 280px;
    align-self: center;
  }

  .bp-back-wrap {
    padding: 0 20px;
  }

  .bp-title {
    font-size: 1.75rem;
  }

  .bp-body-wrap {
    padding: 32px 20px 28px;
  }

  .bp-post-nav-wrap {
    padding: 0 20px 40px;
  }

  .bp-related {
    padding: 36px 20px 52px;
  }

  .bp-related-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .bp-title {
    font-size: 1.45rem;
  }

  .bp-hero-right {
    max-width: 200px;
  }

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

  .bp-post-nav-link {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}
