/*
  blog-post.css — SiteCraft Studio
  Styles for individual blog post pages.
  Requires tooplate-infinite-loop.css and blog.css to be loaded first.
*/

/* ── Navbar override — always show solid on post pages ────────────────── */

.tm-navbar {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.tm-navbar .navbar-brand {
  color: #369;
}

.tm-navbar .tm-nav-link {
  color: #369;
}

.tm-navbar .tm-nav-link:hover,
.tm-navbar .tm-nav-link.current {
  color: #fff;
  background-color: #369;
}

/* ── Post Hero Banner ─────────────────────────────────────────────────── */

.post-hero {
  background-color: #222;
  background-image: url(../img/infinite-loop-01.jpg);
  background-size: cover;
  background-position: center -210px;
  position: relative;
  padding: 140px 20px 70px;
  text-align: center;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.62);
}

.post-hero-content {
  position: relative;
  z-index: 2;
}

.post-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto;
}

.post-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.post-meta-link {
  color: #9CF;
  text-decoration: none;
}

.post-meta-link:hover {
  color: #fff;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */

.post-breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
  font-size: 0.85rem;
}

.post-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.post-breadcrumb .breadcrumb-item a {
  color: #37A;
}

.post-breadcrumb .breadcrumb-item.active {
  color: #707070;
}

/* ── Post Body Section ────────────────────────────────────────────────── */

.post-body-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ── Article ──────────────────────────────────────────────────────────── */

.post-article {
  max-width: 760px;
}

.post-lead {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.85;
  border-left: 4px solid #369;
  padding-left: 20px;
  margin-bottom: 36px;
  font-style: italic;
}

.post-heading {
  font-size: 1.45rem;
  font-weight: 600;
  color: #37A;
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.post-article p {
  font-size: 1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 18px;
}

/* Callout boxes */
.post-example-box {
  background: #f0f6ff;
  border-left: 4px solid #369;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin: 20px 0 24px;
  font-size: 0.95rem;
}

.post-tip-box {
  background: #fffbea;
  border-left: 4px solid #f0a500;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin: 20px 0 24px;
  font-size: 0.95rem;
  color: #555;
}

.post-tip-box i {
  color: #f0a500;
}

/* Lists */
.post-list {
  padding-left: 22px;
  margin-bottom: 18px;
}

.post-list li {
  font-size: 1rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 10px;
}

/* Inline links */
.post-article a {
  color: #37A;
}

.post-article a:hover {
  color: #D40;
}

/* ── Author Bio ───────────────────────────────────────────────────────── */

.post-author-bio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 24px 28px;
}

.post-author-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #369;
  flex-shrink: 0;
}

.post-author-info {
  flex: 1;
}

/* ── Post Navigation ──────────────────────────────────────────────────── */

.post-nav {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.post-nav-link {
  color: #37A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-nav-link:hover {
  color: #D40;
}

.post-nav-placeholder {
  color: #aaa;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  .blog-sidebar {
    margin-top: 50px;
  }

  .post-title {
    font-size: 1.85rem;
  }

  .post-hero {
    padding: 130px 20px 60px;
  }
}

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

  .post-hero {
    background-position: center;
    padding: 120px 16px 50px;
  }

  .post-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
