/* ==========================================================================
   Vinguele - Blog Section CSS (List & Detail Views)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --vg-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vg-font-serif: 'Anton', sans-serif;
  --vg-pink: #ff007a;
  --vg-pink-hover: #e6006e;
  --vg-pink-light: #fff0f5;
  --vg-navy: #0b1330;
  --vg-text-dark: #1e293b;
  --vg-text-muted: #64748b;
  --vg-border: #e2e8f0;
}

/* Page wrapper */
.vg-blog-page,
.vg-blog-detail-page {
  font-family: var(--vg-font-sans);
  background-color: #ffffff;
  color: var(--vg-text-dark);
  min-height: 100vh;
  padding: 40px 0 90px 0;
}

/* ==========================================================================
   1. BLOG LIST PAGE (.vg-blog-page)
   ========================================================================== */

.vg-blog-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}

.vg-blog-title {
  font-family: var(--vg-font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--vg-navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.vg-blog-title .highlight-italic {
  font-style: italic;
  font-weight: 600;
  color: #1c184c;
}

/* Thèmes / Category filter bar */
.vg-blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.vg-blog-filter-lbl {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 6px;
}

.vg-blog-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.vg-blog-cat-pill:hover {
  border-color: #cbd5e1;
  color: var(--vg-navy);
  transform: translateY(-1px);
}

.vg-blog-cat-pill.active {
  background: var(--vg-pink-light);
  color: var(--vg-pink);
  border-color: #ffb3d9;
}

/* Featured Article Hero Card */
.vg-blog-hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  margin-bottom: 60px;
  background-color: var(--vg-navy);
  box-shadow: 0 20px 40px rgba(11, 19, 48, 0.12);
  display: block;
  text-decoration: none !important;
}

.vg-blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s ease;
}

.vg-blog-hero-card:hover .vg-blog-hero-img {
  transform: scale(1.03);
}

.vg-blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 48, 0.1) 20%, rgba(11, 19, 48, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: #ffffff;
}

.vg-blog-meta-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.vg-blog-badge {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.vg-blog-meta-info {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vg-blog-hero-card-title {
  font-family: var(--vg-font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 780px;
}

.vg-blog-hero-card-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

/* Secondary Articles Grid */
.vg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.vg-blog-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 6px 20px rgba(11, 19, 48, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.vg-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 19, 48, 0.08);
}

.vg-blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8fafc;
}

.vg-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vg-blog-card:hover .vg-blog-card-img {
  transform: scale(1.05);
}

.vg-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vg-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--vg-text-muted);
  margin-bottom: 12px;
}

.vg-blog-card-badge {
  background: #f1f5f9;
  color: var(--vg-navy);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
}

.vg-blog-card-title {
  font-family: var(--vg-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vg-navy);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.vg-blog-card:hover .vg-blog-card-title {
  color: var(--vg-pink);
}

.vg-blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--vg-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.vg-blog-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vg-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.vg-blog-card:hover .vg-blog-card-link {
  gap: 10px;
}

/* ==========================================================================
   2. SINGLE BLOG DETAIL PAGE (.vg-blog-detail-page)
   ========================================================================== */

.vg-blog-detail-container {
  max-width: 860px;
  margin: 0 auto;
}

.vg-blog-detail-title {
  font-family: var(--vg-font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--vg-navy);
  text-align: center;
  line-height: 1.22;
  margin-bottom: 32px;
}

/* Author & Reading Time Header Bar */
.vg-blog-detail-author-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.vg-blog-author-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vg-blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
}

.vg-blog-author-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--vg-navy);
  line-height: 1.2;
}

.vg-blog-author-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.vg-blog-read-time-block {
  font-size: 13.5px;
  color: var(--vg-text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hero Feature Image */
.vg-blog-detail-hero-img {
  width: 100%;
  border-radius: 28px;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 48px;
  box-shadow: 0 12px 36px rgba(11, 19, 48, 0.06);
}

/* Main Article Content Body */
.vg-blog-detail-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 56px;
}

.vg-blog-detail-content h2,
.vg-blog-detail-content h3 {
  font-family: var(--vg-font-serif);
  color: var(--vg-navy);
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 18px;
  line-height: 1.3;
}

.vg-blog-detail-content h2 {
  font-size: 1.8rem;
}

.vg-blog-detail-content h3 {
  font-size: 1.4rem;
}

.vg-blog-detail-content p {
  margin-bottom: 24px;
}

.vg-blog-detail-content blockquote {
  border-left: 4px solid var(--vg-pink);
  padding: 16px 24px;
  background: #fff0f5;
  border-radius: 0 16px 16px 0;
  font-family: var(--vg-font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #1e293b;
  margin: 32px 0;
}

.vg-blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(11, 19, 48, 0.05);
}

/* Bottom Footer Bar: Tags & Social Sharing */
.vg-blog-detail-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-top: 50px;
}

.vg-blog-tags-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vg-blog-tag-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.vg-blog-tag-pill:hover {
  background: #f1f5f9;
  color: var(--vg-navy);
  border-color: #cbd5e1;
}

.vg-blog-share-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vg-blog-share-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--vg-navy);
  text-transform: uppercase;
}

.vg-blog-share-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vg-blog-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.vg-blog-share-btn i {
  color: inherit;
}

.vg-blog-share-btn:hover {
  background: var(--vg-navy);
  color: #ffffff;
  border-color: var(--vg-navy);
  transform: translateY(-2px);
}

.vg-blog-share-btn.facebook {
  color: #1877f2;
  border-color: #d0e2ff;
  background: #f0f6ff;
}

.vg-blog-share-btn.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  transform: translateY(-2px);
}

.vg-blog-share-btn.twitter {
  color: #1da1f2;
  border-color: #d0e8ff;
  background: #f0f8ff;
}

.vg-blog-share-btn.twitter:hover {
  background: #1da1f2;
  color: #ffffff;
  border-color: #1da1f2;
  transform: translateY(-2px);
}

.vg-blog-share-btn.linkedin {
  color: #0a66c2;
  border-color: #cce4ff;
  background: #f0f6fc;
}

.vg-blog-share-btn.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translateY(-2px);
}

.vg-blog-share-btn.whatsapp {
  color: #25d366;
  border-color: #c7f3d6;
  background: #f0fdf4;
}

.vg-blog-share-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  transform: translateY(-2px);
}

/* ==========================================================================
   3. RESPONSIVE DESIGN FOR BLOG
   ========================================================================== */

@media (max-width: 991.98px) {
  .vg-blog-title {
    font-size: 2.4rem;
  }

  .vg-blog-hero-card {
    min-height: 400px;
  }

  .vg-blog-hero-overlay {
    padding: 32px 24px;
  }

  .vg-blog-hero-card-title {
    font-size: 1.75rem;
  }

  .vg-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .vg-blog-detail-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 575.98px) {
  .vg-blog-page,
  .vg-blog-detail-page {
    padding: 24px 0 60px 0;
  }

  .vg-blog-title {
    font-size: 1.9rem;
  }

  .vg-blog-hero-card {
    min-height: 360px;
    border-radius: 20px;
  }

  .vg-blog-hero-overlay {
    padding: 24px 18px;
  }

  .vg-blog-hero-card-title {
    font-size: 1.4rem;
  }

  .vg-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vg-blog-detail-title {
    font-size: 1.65rem;
  }

  .vg-blog-detail-author-bar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .vg-blog-detail-hero-img {
    border-radius: 18px;
    max-height: 280px;
  }

  .vg-blog-detail-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
