/**
 * Category Page - Carousel Styles
 * Related categories carousel, error page carousels
 */

/* Related Categories Carousel */
.related-categories-wrapper {
  padding: 0;
}
.related-category-section {
  padding: 40px 0;
}
.related-category-section:nth-child(odd) {
  background: #f8f9fa;
}
.related-category-section:nth-child(even) {
  background: #fff;
}
.related-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.related-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.related-category-link {
  color: #14bdee;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.related-category-link:hover {
  color: #0a9ec8;
}
.related-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-carousel {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.related-carousel::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  display: flex;
  gap: 20px;
}
.carousel-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 240px;
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.carousel-card-image {
  width: 100%;
  height: 150px;
  background: #e9ecef;
  overflow: hidden;
}
.carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}
.carousel-card-content {
  padding: 15px;
}
.carousel-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.carousel-card-title a:hover {
  color: #14bdee;
}
.carousel-card-excerpt {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card-meta {
  font-size: 0.75rem;
  color: #999;
}
.carousel-card-meta .separator {
  margin: 0 4px;
}

/* Carousel Card with Date Badge */
.carousel-card-with-date .carousel-card-image {
  position: relative;
}
.carousel-card-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #14bdee;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  line-height: 1;
}
.carousel-card-date-badge .date-day {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}
.carousel-card-date-badge .date-month {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.carousel-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-nav:hover {
  background: #14bdee;
  color: #fff;
  transform: scale(1.05);
}
.carousel-nav:active {
  transform: scale(0.95);
}

/* Error Page Carousel Section */
.error-carousel-section {
  padding: 40px 0;
  border-top: 1px solid #eee;
}
.error-carousel-section.alt-bg {
  background: #f8f9fa;
}
.error-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.error-carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 10px 0;
}
.error-carousel-container::-webkit-scrollbar {
  display: none;
}
.error-carousel-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.error-carousel-nav:hover {
  background: #14bdee;
  color: #fff;
}

/* Error Carousel Vertical Card */
.error-carousel-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.error-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.error-carousel-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}
.error-carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.error-carousel-card:hover .error-carousel-card-image img {
  transform: scale(1.05);
}
.error-carousel-card-image .no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}
.error-carousel-card-content {
  padding: 16px;
}
.error-carousel-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.error-carousel-card-title a {
  color: #333;
  text-decoration: none;
}
.error-carousel-card-title a:hover {
  color: #14bdee;
}
.error-carousel-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.error-carousel-card-meta {
  font-size: 0.8rem;
  color: #888;
}

