/* ==========================================================================
   Powerline Radio - Minimal Blog Page Styles
   Only includes styles not found in styles.css
   ========================================================================== */

/* Category badges for blog posts */
.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 15px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Colors for different post categories */
.post-category.faith-inspiration {
  background-color: rgba(41, 98, 255, 0.9);
}

.post-category.music-culture {
  background-color: rgba(0, 176, 255, 0.9);
}

.post-category.daily-devotionals {
  background-color: rgba(255, 109, 0, 0.9);
}

.post-category.news-updates {
  background-color: rgba(98, 0, 234, 0.9);
}

.post-category.community {
  background-color: rgba(0, 184, 212, 0.9);
}

.post-category.uncategorized {
  background-color: rgba(117, 117, 117, 0.9);
}

/* Hover effect for category badges */
.post-category:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Category tabs styling - similar to shows page */
.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 15px 0;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.category-tab {
  padding: 10px 20px;
  border-radius: 30px;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

.category-tab:hover:not(.active) {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(-2px);
}

/* Blog post grid layout */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Featured posts section */
.featured-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Post card styling */
.post-card,
.featured-post-card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.post-card:hover,
.featured-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.post-card:hover .post-image img,
.featured-post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-content h3 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.post-content h3 a:hover {
  color: var(--color-primary);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--color-text-light);
}

.post-meta i {
  margin-right: 5px;
  color: var(--color-primary);
}

.post-excerpt {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.read-more i {
  margin-left: 5px;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--color-primary-dark);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 50px;
}

.pagination a, 
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a.next {
  width: auto;
  padding: 0 15px;
}

.pagination a.next i {
  margin-left: 5px;
}

.pagination a:hover {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}

.pagination a.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 3px 10px rgba(var(--color-primary-rgb), 0.3);
}

/* Responsive styles */
@media (min-width: 768px) {
  .featured-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-posts-grid > div:nth-child(1) {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}