/* ==========================================================================
   J.C. GOEROE - BLOG & NIEUWS STYLESHEET
   ========================================================================== */

.blog-hero {
  padding: 130px 0 50px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 159, 28, 0.08) 0%, transparent 60%);
  text-align: center;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.blog-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Zoek & Filter Balk */
.blog-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-wrap {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem 0.85rem 3rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.category-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.category-btn.active {
  background: var(--accent-amber);
  color: #0b0e14;
  border-color: var(--accent-amber);
  box-shadow: 0 2px 10px rgba(255, 159, 28, 0.35);
}

/* Featured / Uitgelicht Artikel */
.featured-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  transition: all var(--transition-smooth);
}

.featured-post-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.featured-thumb {
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 2.5rem 2rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(255, 159, 28, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* Blog Post Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* Artikel Lees Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #101623;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-body {
  padding: 2.5rem 2.8rem;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.modal-content-html {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.modal-content-html p {
  margin-bottom: 1.4rem;
}

.modal-content-html h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}

.modal-content-html ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.modal-content-html blockquote {
  border-left: 4px solid var(--accent-amber);
  padding: 1rem 1.5rem;
  background: rgba(255, 159, 28, 0.06);
  font-style: italic;
  color: #f1f5f9;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.8rem 0;
}

.modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.share-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 95px 0 30px;
  }
  .blog-hero-title {
    font-size: clamp(1.85rem, 6vw, 2.3rem);
  }
  .blog-hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .blog-controls-bar {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .search-input {
    font-size: 16px !important;
  }
  .category-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0.2rem 0.4rem 0.6rem;
    max-width: 100%;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .category-btn {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-bottom: 3rem;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 2.5rem;
  }
  .featured-thumb {
    min-height: 220px;
  }
  .featured-body {
    padding: 1.35rem 1.15rem;
  }
  .featured-title {
    font-size: 1.45rem;
  }
  .blog-detail-body {
    padding: 1.4rem 1.15rem !important;
  }
  .blog-detail-body h1 {
    font-size: 1.65rem !important;
    margin-bottom: 1.1rem !important;
  }
  .blog-detail-actions {
    flex-direction: column !important;
    gap: 0.8rem;
  }
  .blog-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .modal-dialog {
    width: 95vw;
    margin: 1rem;
  }
  .modal-hero-img {
    height: 200px;
  }
  .modal-body {
    padding: 1.35rem 1.15rem;
  }
  .modal-title {
    font-size: 1.55rem;
  }
  .modal-footer {
    padding: 1rem 1.15rem;
    flex-direction: column;
    gap: 0.8rem;
  }
}
