/* Blog Page Styles */
.bp-blog-page {
  padding: 80px 0;
}

.bp-blog-header h1 {
  color: var(--bp-primary);
  margin-bottom: 16px;
}

.bp-blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  margin-top: 60px;
}

/* Sidebar */
.bp-blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.bp-sidebar-widget {
  background: var(--bp-card-bg);
  padding: 24px;
  border-radius: var(--bp-radius);
  margin-bottom: 24px;
}

.bp-sidebar-widget h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--bp-primary);
}

.bp-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-category-list li {
  margin-bottom: 8px;
}

.bp-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--bp-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.bp-category-list a:hover,
.bp-category-list a.active {
  background: var(--bp-primary);
  color: var(--bp-ink);
}

.bp-category-list .count {
  font-size: 12px;
  opacity: 0.7;
}

.bp-trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-trending-list li {
  margin-bottom: 16px;
}

.bp-trending-list a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--bp-text);
  transition: all 0.3s ease;
}

.bp-trending-list a:hover {
  transform: translateX(4px);
}

[dir="rtl"] .bp-trending-list a:hover {
  transform: translateX(-4px);
}

.bp-trending-list img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.bp-trending-list h4 {
  font-size: 14px;
  margin: 0 0 4px 0;
  line-height: 1.4;
  color: var(--bp-text);
}

.bp-trending-list .date {
  font-size: 12px;
  color: var(--bp-gray-700);
}

/* Blog Grid */
.bp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.bp-blog-card {
  background: var(--bp-card-bg);
  border-radius: var(--bp-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bp-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bp-badge-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bp-primary);
  color: var(--bp-ink);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

[dir="rtl"] .bp-badge-featured {
  right: auto;
  left: 16px;
}

.bp-blog-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  display: block;
}

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

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

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

.bp-blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.bp-blog-category {
  color: var(--bp-primary);
  font-weight: 600;
}

.bp-blog-date {
  color: var(--bp-gray-700);
}

.bp-blog-title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bp-blog-title a {
  color: var(--bp-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bp-blog-title a:hover {
  color: var(--bp-primary);
}

.bp-blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bp-gray-700);
  margin-bottom: 16px;
  flex: 1;
}

.bp-blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bp-border);
}

.bp-blog-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--bp-gray-700);
}

.bp-read-more {
  color: var(--bp-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bp-read-more:hover {
  transform: translateX(4px);
}

[dir="rtl"] .bp-read-more:hover {
  transform: translateX(-4px);
}

/* Pagination */
.bp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.bp-pagination a,
.bp-pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  color: var(--bp-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.bp-pagination a:hover,
.bp-pagination .current {
  background: var(--bp-primary);
  color: var(--bp-ink);
  border-color: var(--bp-primary);
}

/* Social Sharing */
.bp-social-share {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--bp-border);
}

.bp-social-share h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--bp-text);
}

.bp-share-buttons {
  display: flex;
  gap: 12px;
}

.bp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.bp-share-btn:hover {
  transform: translateY(-4px);
}

.bp-share-facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.bp-share-twitter {
  background: #1DA1F2;
  color: #FFFFFF;
}

.bp-share-linkedin {
  background: #0A66C2;
  color: #FFFFFF;
}

.bp-share-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

/* No Posts */
.bp-no-posts {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: var(--bp-gray-700);
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .bp-blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bp-blog-sidebar {
    position: static;
    order: 2;
  }
  
  .bp-blog-content {
    order: 1;
  }
  
  .bp-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bp-blog-page {
    padding: 48px 0;
  }
  
  .bp-sidebar-widget {
    padding: 16px;
  }
  
  .bp-share-buttons {
    flex-wrap: wrap;
  }
}

