/* ==========================================================================
   Soviraa Pure Foods - Fancy Editorial Blog Stylesheet
   ========================================================================== */

:root {
  --blog-primary: #1f3d2b;
  --blog-primary-light: #2d553d;
  --blog-accent: #c48a44;
  --blog-accent-light: #f7eedf;
  --blog-text-main: #232724;
  --blog-text-muted: #667069;
  --blog-bg-light: #fbf9f5;
  --blog-border: #e6e0d4;
  --blog-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --blog-card-hover-shadow: 0 16px 36px rgba(31, 61, 43, 0.12);
}

/* Page Container */
.blog-page-wrapper {
  background-color: var(--blog-bg-light);
  min-height: 80vh;
  padding-bottom: 70px;
}

/* Breadcrumbs */
.blog-breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--blog-text-muted);
}
.blog-breadcrumbs a {
  color: var(--blog-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-breadcrumbs a:hover {
  color: var(--blog-accent);
}

/* Magazine Hero Section */
.blog-hero-section {
  padding: 24px 0 40px;
}
.blog-hero-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.blog-hero-header .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blog-accent);
  margin-bottom: 8px;
}
.blog-hero-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--blog-primary);
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-hero-header p {
  font-size: 16px;
  color: var(--blog-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Featured Hero Card */
.featured-article-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--blog-card-shadow);
  border: 1px solid var(--blog-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 48px;
}
.featured-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-card-hover-shadow);
}
.featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.featured-article-card:hover .featured-img-wrap img {
  transform: scale(1.04);
}
.featured-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--blog-text-muted);
  margin-bottom: 14px;
}
.cat-pill {
  background: var(--blog-accent-light);
  color: var(--blog-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.featured-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blog-primary);
  line-height: 1.35;
  margin: 0 0 16px;
}
.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.featured-title a:hover {
  color: var(--blog-accent);
}
.featured-summary {
  font-size: 15px;
  color: var(--blog-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.read-more-link:hover {
  color: var(--blog-accent);
  gap: 12px;
}

/* Category Filter Pills & Search */
.blog-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blog-border);
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-filter-btn {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--blog-text-main);
  background: #ffffff;
  border: 1px solid var(--blog-border);
  transition: all 0.2s ease;
}
.cat-filter-btn:hover {
  border-color: var(--blog-primary);
  color: var(--blog-primary);
}
.cat-filter-btn.active {
  background: var(--blog-primary);
  color: #ffffff;
  border-color: var(--blog-primary);
}
.blog-search-form {
  position: relative;
  min-width: 260px;
}
.blog-search-form input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: 24px;
  border: 1px solid var(--blog-border);
  font-size: 13px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}
.blog-search-form input:focus {
  border-color: var(--blog-primary);
}
.blog-search-form i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.article-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--blog-card-shadow);
  border: 1px solid var(--blog-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-card-hover-shadow);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blog-primary);
  margin: 0 0 10px;
}
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.card-title a:hover {
  color: var(--blog-accent);
}
.card-summary {
  font-size: 14px;
  color: var(--blog-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0ece3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--blog-text-muted);
}

/* ==========================================================================
   Single Article Detail Styles
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--blog-accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

.article-header {
  text-align: center;
  max-width: 820px;
  margin: 40px auto 30px;
  padding: 0 16px;
}
.article-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--blog-primary);
  line-height: 1.25;
  margin: 16px 0 20px;
}
.article-author-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--blog-text-muted);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blog-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.article-hero-media {
  max-width: 980px;
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-body-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}
.article-prose {
  font-size: 18px;
  line-height: 1.8;
  color: var(--blog-text-main);
  margin-bottom: 48px;
}
.article-prose h2, .article-prose h3, .article-prose h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--blog-primary);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.35;
}
.article-prose h2 { font-size: 30px; }
.article-prose h3 { font-size: 24px; }
.article-prose p { margin-bottom: 24px; }
.article-prose blockquote {
  border-left: 4px solid var(--blog-accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: #fbf7ee;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 20px;
  color: var(--blog-primary);
}
.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

/* Shoppable Products Card in Article */
.shoppable-products-box {
  background: #ffffff;
  border: 2px solid #e2dac8;
  border-radius: 16px;
  padding: 30px;
  margin: 48px 0;
  box-shadow: var(--blog-card-shadow);
}
.shoppable-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blog-border);
}
.shoppable-header i {
  color: var(--blog-accent);
  font-size: 22px;
}
.shoppable-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blog-primary);
  margin: 0;
}
.shoppable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.shoppable-item {
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fdfdfc;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shoppable-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.shoppable-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.shoppable-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.shoppable-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blog-accent);
  margin-bottom: 12px;
}
.shoppable-btn {
  margin-top: auto;
  background: var(--blog-primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.shoppable-btn:hover {
  background: var(--blog-primary-light);
  color: #ffffff;
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  margin: 40px 0;
}
.share-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blog-primary);
}
.share-buttons {
  display: flex;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.share-whatsapp { background: #25d366; color: #ffffff; }
.share-facebook { background: #1877f2; color: #ffffff; }
.share-twitter  { background: #111111; color: #ffffff; }
.share-copy     { background: #ece7dc; color: var(--blog-primary); cursor: pointer; border: none; }

/* Responsive adjustments */
@media (max-width: 860px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }
  .featured-img-wrap {
    min-height: 240px;
  }
  .featured-content {
    padding: 24px;
  }
  .blog-hero-header h1 {
    font-size: 28px;
  }
  .article-header h1 {
    font-size: 30px;
  }
  .article-prose {
    font-size: 16px;
  }
  .social-share-bar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
