/* =========================================================================
   BLOG STYLES — Breen Studio
   Used by blog.php (listing) and blog-post.php (single post)
   ========================================================================= */

/* --- Blog Hero / Page Header --- */
.blog-hero {
  background: #F2E4CC;
  padding: 60px 20px 50px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 42px;
  color: #151515;
  margin-bottom: 10px;
}
.blog-hero p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  color: #666;
}

/* --- Blog Grid / Listing --- */
.blog-listing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #F2E4CC 0%, #e8d5b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C79C6A;
  font-size: 48px;
}

.blog-card-body {
  padding: 20px 22px 24px;
}

.blog-card-date {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.blog-card-body h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 700;
  color: #151515;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover h2 {
  color: #8C3F41;
}

.blog-card-excerpt {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8C3F41;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.blog-read-more:hover {
  gap: 10px;
}

.blog-card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #f0e8d8;
  color: #5A4032;
  border-radius: 10px;
  font-family: 'Source Sans Pro', sans-serif;
}

/* --- Pagination --- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding: 0 24px;
}
.blog-pagination a, .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-pagination a {
  color: #8C3F41;
  background: #fff;
  border: 1px solid #ddd;
}
.blog-pagination a:hover {
  background: #8C3F41;
  color: #fff;
  border-color: #8C3F41;
}
.blog-pagination .current {
  background: #8C3F41;
  color: #fff;
  border: 1px solid #8C3F41;
}

/* --- Empty State --- */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}
.blog-empty i {
  font-size: 48px;
  color: #C79C6A;
  margin-bottom: 16px;
}
.blog-empty h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  color: #666;
}

/* =========================================================================
   SINGLE POST PAGE
   ========================================================================= */

/* --- Post Hero --- */
.post-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  max-height: 550px;
  overflow: hidden;
}
.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.post-hero-overlay h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 36px;
  max-width: 800px;
  margin: 0 auto 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.post-hero-meta {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero-less fallback */
.post-header-simple {
  background: #F2E4CC;
  padding: 50px 24px 40px;
  text-align: center;
}
.post-header-simple h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 36px;
  color: #151515;
  max-width: 800px;
  margin: 0 auto 12px;
}
.post-header-simple .post-meta-simple {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  color: #666;
}

/* --- Article Content --- */
.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  line-height: 1.85;
  color: #333;
}
.post-content h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  color: #151515;
  margin: 2em 0 0.6em;
}
.post-content h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  color: #151515;
  margin: 1.8em 0 0.5em;
}
.post-content h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 1.5em 0 0.4em;
}
.post-content p {
  margin-bottom: 1.4em;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5em 0;
  display: block;
}
.post-content blockquote {
  border-left: 4px solid #C79C6A;
  padding: 14px 24px;
  margin: 1.8em 0;
  background: #faf6ef;
  font-style: italic;
  color: #555;
  border-radius: 0 6px 6px 0;
}
.post-content a {
  color: #8C3F41;
  text-decoration: underline;
  text-decoration-color: rgba(140,63,65,0.3);
  transition: text-decoration-color 0.2s;
}
.post-content a:hover {
  text-decoration-color: #8C3F41;
}
.post-content ul, .post-content ol {
  margin: 1em 0 1.4em 1.5em;
}
.post-content li {
  margin-bottom: 0.5em;
}
.post-content hr {
  border: none;
  border-top: 2px solid #F2E4CC;
  margin: 2.5em 0;
}

/* --- Post Tags --- */
.post-tags {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags .blog-tag {
  font-size: 12px;
  padding: 4px 12px;
}

/* --- Author Bio --- */
.author-bio {
  max-width: 740px;
  margin: 0 auto;
  padding: 30px 24px 40px;
  border-top: 2px solid #F2E4CC;
}
.author-bio-inner {
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-bio-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-text h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  color: #151515;
  margin-bottom: 4px;
}
.author-bio-text p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.author-bio-text a {
  color: #8C3F41;
  text-decoration: none;
}

/* --- Share Buttons --- */
.post-share {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-share span {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ddd;
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: #8C3F41;
  color: #8C3F41;
}

/* --- Related Posts --- */
.related-posts {
  background: #f8f5f0;
  padding: 48px 24px 60px;
}
.related-posts h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
  color: #151515;
}
.related-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 30px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-hero { height: 40vh; min-height: 250px; }
  .post-hero-overlay h1 { font-size: 26px; }
  .post-content { font-size: 16px; padding: 32px 20px 30px; }
  .post-content h2 { font-size: 24px; }
  .author-bio-inner { flex-direction: column; text-align: center; }
  .post-header-simple h1 { font-size: 28px; }
}
