/* Blog Systeem Styling */
/* Gebaseerd op product-card styling voor consistentie */

/* =============================================================================
   BLOG OVERZICHT PAGINA
   ============================================================================= */

/* =============================================================================
   BLOG OVERZICHT PAGINA
   ============================================================================= */

.blog-page {
  padding: 2rem 0;
  margin-top: 80px; /* Header height compensation */
}

.blog-hero {
  background: linear-gradient(135deg, #cfbc9c 0%, #e8dcc0 100%);
  color: #2d3748;
  padding: 4rem 0;
  text-align: center;
  margin-top: -80px; /* Compensate for body margin-top */
  padding-top: 6rem; /* Extra padding to account for negative margin */
}

.blog-hero__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.blog-hero p {
  font-size: 1.2rem;
  color: rgba(45, 55, 72, 0.8);
  line-height: 1.6;
}

.blog-content {
  padding: 3rem 0;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Blog Search */
.blog-search-container {
  margin-bottom: 3rem;
}

.blog-search-form {
  margin-bottom: 1rem;
}

.blog-search-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.blog-search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.blog-search-input:focus {
  border-color: #cfbc9c;
  box-shadow: 0 0 0 3px rgba(207, 188, 156, 0.1);
}

.blog-search-btn {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #cfbc9c, #e8dcc0);
  border: none;
  border-radius: 12px;
  color: #2d3748;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(207, 188, 156, 0.3);
}

.blog-search-clear {
  padding: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.blog-search-clear:hover {
  color: #ef4444;
}

.blog-search-results {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.blog-search-results strong {
  color: #1f2937;
  font-weight: 600;
}

/* Blog Grid - 3 kolommen standaard */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-search-wrapper {
    flex-direction: column;
  }

  .blog-search-input {
    width: 100%;
  }

  .blog-search-btn {
    width: 100%;
  }
}

/* Blog Card - Gebaseerd op product-card styling */
.blog-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  position: relative;
  border: 1px solid #666;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-card__image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05) !important;
}

.blog-card__image-placeholder {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 3rem;
}

.blog-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 250px);
}

.blog-card__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.blog-card__author,
.blog-card__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #cfbc9c;
}

.blog-card__excerpt {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.blog-card__stats {
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-card__views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card__read-more {
  color: #cfbc9c;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.blog-card__read-more:hover {
  color: #a78b5a;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.empty-state-icon {
  font-size: 4rem;
  color: #cfbc9c;
  margin-bottom: 1rem;
}

.blog-empty-state h2 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* =============================================================================
   BLOG DETAIL PAGINA
   ============================================================================= */

.blog-detail-page {
  padding: 0;
  margin-top: 80px; /* Header height compensation */
}

/* Blog Detail Content */
.blog-detail-content {
  padding: 4rem 0 2rem 0;
  background: var(--color-brown-light);
}

.blog-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.blog-detail-main {
  background: linear-gradient(145deg, #fdfcf8, #f5f2eb);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(139, 90, 60, 0.15);
  border: 3px solid #e8e3d8;
}

/* Breadcrumb */
.blog-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #6b4a32;
}

.blog-breadcrumb a {
  color: #c9b896;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
  color: #a78b5a;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #8b6f47;
}

.breadcrumb-current {
  color: #5a3e2a;
  font-weight: 600;
}

/* Featured Image */
.blog-detail-featured-image {
  margin: 2rem auto;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(139, 90, 60, 0.2);
  border: 3px solid #d4c5a0;
}

.blog-detail-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-detail-featured-image:hover img {
  transform: scale(1.02);
}

/* Blog Detail Meta */
.blog-detail-meta {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 1.5rem 0;
  font-size: 0.9rem;
  color: #6b4a32;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-detail-author,
.blog-detail-date,
.blog-detail-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-detail-author i,
.blog-detail-date i,
.blog-detail-views i {
  color: #c9b896;
}

/* Blog Detail Title */
.blog-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #5a3e2a;
  text-shadow: 0 2px 4px rgba(90, 62, 42, 0.1);
  text-align: center;
}

.blog-detail-excerpt {
  font-size: 1.2rem;
  color: #6b4a32;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.9;
}

/* Blog Detail Article */

.blog-detail-article {
  margin-bottom: 3rem;
}

.blog-detail-content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5a3e2a;
}

.blog-detail-content-body h1,
.blog-detail-content-body h2,
.blog-detail-content-body h3,
.blog-detail-content-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #5a3e2a;
}

.blog-detail-content-body h1 {
  font-size: 2.5rem;
}
.blog-detail-content-body h2 {
  font-size: 2rem;
}
.blog-detail-content-body h3 {
  font-size: 1.5rem;
}
.blog-detail-content-body h4 {
  font-size: 1.25rem;
}

.blog-detail-content-body p {
  margin-bottom: 1.5rem;
}

.blog-detail-content-body ul,
.blog-detail-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-detail-content-body li {
  margin-bottom: 0.5rem;
}

.blog-detail-content-body blockquote {
  border-left: 4px solid #c9b896;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b4a32;
  background: linear-gradient(145deg, #fdfcf8, #f5f2eb);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  border: 2px solid #e8e3d8;
}

.blog-detail-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-detail-content-body img:hover {
  transform: scale(1.02);
}

.blog-detail-content-body img[data-width] {
  cursor: pointer;
}

/* Responsive images */
.blog-detail-content-body img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-detail-content-body a {
  color: #c9b896;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-detail-content-body a:hover {
  color: #a78b5a;
}

.blog-detail-content-body strong {
  font-weight: 600;
}

.blog-detail-content-body em {
  font-style: italic;
}

.blog-detail-content-body u {
  text-decoration: underline;
}

/* Social Share */
.blog-detail-share {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.blog-detail-share h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.share-facebook {
  background: #1877f2;
  color: white;
}

.share-twitter {
  background: #1da1f2;
  color: white;
}

.share-linkedin {
  background: #0077b5;
  color: white;
}

.share-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.share-copy {
  background: #6b7280;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Back Button */
.blog-detail-back {
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #c9b896, #d9cdb3);
  color: #5a3e2a;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #d4c5a0;
}

.btn-back:hover {
  background: linear-gradient(135deg, #a78b5a, #c9b896);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 90, 60, 0.3);
}

/* Sidebar */
.blog-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
}

.blog-sidebar-section {
  background: linear-gradient(145deg, #fdfcf8, #f5f2eb);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(139, 90, 60, 0.15);
  border: 3px solid #e8e3d8;
}

.blog-sidebar-section h3 {
  margin-bottom: 1.5rem;
  color: #5a3e2a;
  font-size: 1.25rem;
}

/* Related Blogs */
.related-blogs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-blog-card {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d4c5a0;
}

.related-blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-blog-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-blog-content {
  flex: 1;
}

.related-blog-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-blog-title a {
  color: #5a3e2a;
  text-decoration: none;
}

.related-blog-title a:hover {
  color: #c9b896;
}

.related-blog-excerpt {
  font-size: 0.8rem;
  color: #6b4a32;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-blog-meta {
  font-size: 0.75rem;
  color: #8b6f47;
}

/* Sidebar CTA */
.blog-sidebar-cta {
  background: linear-gradient(135deg, #c9b896, #d9cdb3);
  color: #5a3e2a;
  border: 3px solid #d4c5a0;
}

.blog-sidebar-cta h3 {
  color: #5a3e2a;
}

.blog-sidebar-cta p {
  color: #6b4a32;
  margin-bottom: 1.5rem;
}

.sidebar-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-cta {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #22c55e;
  color: white;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #5a3e2a;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   FOOTER BLOG INTEGRATION
   ============================================================================= */

.footer__blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__blog-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__blog-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.footer__blog-link:hover {
  color: #cfbc9c;
}

.footer__blog-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.footer__blog-date {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__blog-more {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__blog-all {
  color: #cfbc9c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__blog-all:hover {
  color: #a78b5a;
}

.footer__no-blogs {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin: 0;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1024px) {
  .blog-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-detail-sidebar {
    order: -1;
    padding-top: 0;
  }

  .blog-detail-main {
    padding: 2rem;
  }
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.pagination-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #cfbc9c, #e8dcc0);
  color: #2d3748;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(207, 188, 156, 0.3);
  border-color: #cfbc9c;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-number {
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  color: #1f2937;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pagination-number:hover {
  background: #e5e7eb;
  border-color: #cfbc9c;
}

.pagination-number.active {
  background: linear-gradient(135deg, #cfbc9c, #e8dcc0);
  color: #2d3748;
  border-color: #cfbc9c;
  box-shadow: 0 2px 8px rgba(207, 188, 156, 0.2);
}

.pagination-dots {
  padding: 0.75rem 0.5rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .blog-page {
    margin-top: 80px; /* Header height compensation */
  }

  .blog-hero {
    margin-top: -80px; /* Compensate for body margin-top */
    padding-top: 8rem; /* Meer padding-top op mobiel om header ruimte te geven */
    padding-bottom: 3rem;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero p {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card__image-container {
    height: 200px;
  }

  .blog-card__content {
    height: calc(100% - 200px);
  }

  .pagination-nav {
    flex-direction: column;
  }

  .pagination-numbers {
    justify-content: center;
  }

  .pagination-number {
    min-width: 40px;
    padding: 0.5rem 0.75rem;
  }

  .blog-detail-title {
    font-size: 2rem;
  }

  .blog-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-detail-main {
    padding: 1.5rem;
  }

  .blog-detail-featured-image {
    max-width: 100%;
    margin: 1.5rem auto;
  }

  .blog-detail-content-body {
    font-size: 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .related-blog-card {
    flex-direction: column;
  }

  .related-blog-image {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    margin-top: -80px; /* Compensate for body margin-top */
    padding-top: 9rem; /* Nog meer padding-top op kleine mobiele schermen */
    padding-bottom: 2.5rem;
  }

  .blog-content {
    padding: 2rem 0;
  }

  .blog-detail-content {
    padding: 2rem 0;
  }

  .blog-detail-main {
    padding: 1rem;
  }

  .blog-sidebar-section {
    padding: 1.5rem;
  }
}
