/* ============================================================
   PetSpace Review Carousel
   modules/review-carousel/assets/css/review-carousel.css
   네임스페이스: .psc-rv-carousel*
   ============================================================ */

.psc-rv-carousel {
  padding: 0 0 12px;
}

.psc-rv-carousel__empty {
  padding: 24px 16px;
  border: 1px solid #f2f4f6;
  border-radius: 14px;
  background: #fff;
  color: #6b7684;
  font-size: 14px;
  text-align: center;
}

/* ── 가로 스크롤 트랙 ── */
.psc-rv-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  cursor: grab;
}

.psc-rv-carousel__track::-webkit-scrollbar {
  display: none;
}

.psc-rv-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* ── 카드 ── */
.psc-rv-carousel__card {
  flex: 0 0 320px;
  min-width: 320px;
  background: #fff;
  border: 1px solid #f2f4f6;
  border-radius: 14px;
  padding: 14px;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s;
}

.psc-rv-carousel__card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.psc-notice-carousel .psc-rv-carousel__card {
  cursor: pointer;
}

.psc-notice-featured .psc-rv-carousel__card {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

/* ── 이미지 ── */
.psc-rv-carousel__img {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f6;
}

.psc-rv-carousel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psc-rv-carousel__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 별점 + 태그 ── */
.psc-rv-carousel__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.psc-rv-carousel__rating {
  font-size: 14px;
  font-weight: 700;
  color: #e54d2e;
  letter-spacing: -0.2px;
}

.psc-rv-carousel__tag {
  font-size: 12px;
  color: #6b7684;
  padding: 2px 8px;
  background: #f2f4f6;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── 본문 미리보기 ── */
.psc-rv-carousel__text {
  font-size: 14px;
  line-height: 1.55;
  color: #333d4b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.2px;
}

/* ── 날짜 ── */
.psc-rv-carousel__date {
  font-size: 12px;
  color: #b0b8c1;
  margin-top: auto;
}

/* ── 전체보기 링크 ── */
.psc-rv-carousel__more {
  display: block;
  text-align: center;
  padding: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #224471;
  text-decoration: none;
  letter-spacing: -0.2px;
}

.psc-rv-carousel__more:hover {
  color: #1a3558;
}

/* ── 모바일 ── */
@media (max-width: 480px) {
  .psc-rv-carousel__card {
    flex: 0 0 260px;
    min-width: 260px;
    padding: 12px;
  }

  .psc-rv-carousel__img {
    width: 72px;
    min-width: 72px;
  }
}
