/* Blog Styles - Integrated with The Good + Well Design System */

/* Import main fonts */
@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/Quicksand.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'MonCheri';
  src: url('/assets/fonts/tan-mon-cheri.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Angleton';
  src: url('/assets/fonts/TAN-Angleton-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'CormorantGaramond';
  src: url('/assets/fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
}

/* Global heading styles */
h1, .logo {
  font-family: 'CormorantGaramond', serif;
  font-weight: 600;
}
h2 {
  font-family: 'CormorantGaramond', serif;
  font-weight: 500;
}
h3, h4, h5, h6 {
  font-family: 'CormorantGaramond', serif;
  font-weight: 500;
}

/* Blog Hero Section */
.blog-hero {
  background-color: #e7dfd4;
  color: #222;
  padding: 6rem 0 4rem 0; /* Extra top padding for fixed navbar */
  text-align: center;
}

.hero-title {
  font-family: 'CormorantGaramond', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #222;
}

.hero-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  color: #222;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Blog Posts Section */
.blog-posts {
  padding: 4rem 0;
  background: #fff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(160, 137, 104, 0.2);
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  color: #a08968;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.post-title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  line-height: 1.3;
  font-family: 'CormorantGaramond', serif;
  font-weight: 500;
}

/* Blog post titles on listing page and related posts - override any other link styles */
.post-card .post-title a,
.posts-grid .post-title a,
.post-content .post-title a {
  color: #222 !important;
  text-decoration: none !important;
}

.post-card .post-title a:hover,
.posts-grid .post-title a:hover,
.post-content .post-title a:hover {
  color: #a08968 !important;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: 'Quicksand', sans-serif;
}

.read-more {
  color: #a08968;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  padding: 4rem 0;
  color: #666;
}

.no-posts h2 {
  font-family: 'CormorantGaramond', serif;
  color: #222;
  margin-bottom: 1rem;
}

/* Individual Post Styles */
.breadcrumb {
  background: #e7dfd4;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 80px; /* Account for fixed navbar */
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: #a08968;
}

.breadcrumb-list a {
  color: #a08968;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.blog-post {
  padding: 3rem 0;
  background: #fff;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header .post-meta {
  margin-bottom: 1rem;
  color: #a08968;
  font-family: 'Quicksand', sans-serif;
}

.post-updated {
  color: #888;
  font-size: 0.8rem;
}

.post-header .post-title {
  font-family: 'CormorantGaramond', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 500;
}

.post-header .post-excerpt {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Quicksand', sans-serif;
  line-height: 1.6;
}

.post-featured-image {
  margin-bottom: 3rem;
  text-align: center;
}

.post-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  font-family: 'Quicksand', sans-serif;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem 0;
  color: #222;
  font-family: 'CormorantGaramond', serif;
  font-weight: 500;
}

.post-content h2 {
  font-size: 1.8rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.3rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #a08968;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  background: #f6f4f2;
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.post-content a {
  color: #a08968;
  text-decoration: underline;
}

.post-content a:hover {
  color: #222;
}

/* Horizontal rule styling */
.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #a08968, transparent);
  margin: 2rem 0;
  opacity: 0.6;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

.back-to-blog {
  color: #a08968;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-to-blog:hover {
  text-decoration: underline;
}

.related-posts {
  background: #e7dfd4;
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
  font-family: 'CormorantGaramond', serif;
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.pagination-link {
  color: #a08968;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #a08968;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.pagination-link:hover {
  background: #a08968;
  color: white;
}

.pagination-info {
  color: #666;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-header .post-title {
    font-size: 2rem;
  }
  
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  
  .breadcrumb {
    margin-top: 70px; /* Adjust for mobile navbar */
  }
  
  .blog-hero {
    padding: 5rem 0 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}