/**
 * Styles for the podcasts archive page
 */

/* Page header */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.page-title {
  margin-bottom: 0.5rem;
}

/* Podcasts grid layout */
.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.podcast-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.podcast-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail styling */
.podcast-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.podcast-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.podcast-item:hover .podcast-thumbnail img {
  transform: scale(1.05);
}

/* Category icon overlay styling */
.category-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.podcast-item:hover .category-icon-overlay {
  background-color: rgba(0, 0, 0, 1);
}

.category-icon-overlay img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  position: static !important;
  transform: none !important;
}

/* Play button overlay */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.play-button:before {
  content: '';
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid #fff;
  margin-left: 5px;
}

.podcast-item:hover .play-button {
  background-color: rgba(0, 0, 0, 0.9);
}

/* No thumbnail placeholder */
.no-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content styling */
.podcast-content {
  padding: 1rem;
  text-align: center;
}

.podcast-title {
  margin: 0;
  padding: 0;
  color: #000;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.9em;
}

.podcast-item:hover .podcast-title {
  color: #1c86ff;
  text-decoration: underline;
}

/* Hide excerpt since it's commented out in the template */
.podcast-excerpt {
  display: block;
  margin: 0.75em 0 0.5em 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
}

/* Pagination */
.navigation.pagination {
  margin: 2rem 0;
  text-align: center;
}

.nav-links {
  display: inline-flex;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.page-numbers.current {
  background-color: #1c86ff;
  color: #fff;
}

.page-numbers:hover:not(.current) {
  background-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .podcasts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .category-icon-overlay {
    width: 50px;
    height: 50px;
  }

  .category-icon-overlay img {
    width: 25px !important;
    height: 25px !important;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-button:before {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid #fff;
  }
}

@media (max-width: 480px) {
  .podcasts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
