/* ===================================================================
   Related Posts Component
   Reusable related posts section for blog articles
   =================================================================== */

/* ===== RELATED POSTS SECTION ===== */
.related-posts-section {
  background: white;
  padding: 80px 0;
  border-top: 1px solid #f0f0f0;
}

.related-posts-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.related-posts-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-color);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  font-family: var(--font-primary);
}

.related-posts-subtitle {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 300;
  font-family: var(--font-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ===== MINIMAL POST CARDS ===== */
.minimal-post-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
}


/* ===== POST IMAGE ===== */
.minimal-post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}


.post-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 2.5rem;
}

/* ===== POST CONTENT ===== */
.minimal-post-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.minimal-post-title {
  margin-bottom: auto;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.minimal-post-title a {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-color);
  text-decoration: none;
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-primary);
}

/* ===== POST META ===== */
.minimal-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: auto;
}

.post-author {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  line-height: 1.2;
}

.post-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-primary);
  line-height: 1.2;
}

/* ===== POST CATEGORY ===== */
.post-category-bottom {
  margin: 15px 0 10px 0;
  text-align: left;
}

.post-category-bottom span {
  background: #f8f9fa;
  color: #6c757d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid #e9ecef;
  display: inline-block;
}

/* ===== READ MORE LINK ===== */
.minimal-read-more {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  margin-top: 10px;
  font-family: var(--font-primary);
}

.minimal-read-more:hover {
  color: #e5654a;
  text-decoration: none;
  transform: translateX(3px);
}

/* ===== EMPTY STATE ===== */
.related-posts-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
  padding: var(--space-2xl);
  font-family: var(--font-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .related-posts-section {
    padding: 60px 0;
  }
  
  .related-posts-title {
    font-size: 1.8rem;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .minimal-post-card {
    height: 300px;
  }
  
  .minimal-post-content {
    padding: var(--space-lg);
  }
  
  .minimal-post-title a {
    font-size: var(--font-size-3xl);
  }
  
  .minimal-post-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}