@charset "utf-8";

/* ========================================
   후기 공통 CSS
   - html/detail_reviews.html (상세페이지 후기 전체보기)
   - html/myticket/myticket_base.html (마이티켓 이용후기)
   ======================================== */


/* ── 페이지 기본 ── */

.reviews-page {
  padding-top: 3.25rem;
  background: #fff;
  min-height: 100vh;
}


/* ── 평점 hero ── */

.rv-hero {
  display: flex;
  align-items: center;
  padding: 1.75rem 1.25rem;
  background: #f4f4f4;
}

.rv-hero__left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding-right: 1.25rem;
  border-right: 1px solid #d8d8d8;
}

.rv-hero__avg {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  letter-spacing: -0.03em;
}

.rv-hero__stars {
  display: flex;
  gap: 0.125rem;
}

.rv-hero__total {
  font-size: 0.8125rem;
  color: #999;
  margin-top: 0.0625rem;
  letter-spacing: -0.03em;
}

.rv-hero__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding-left: 1.25rem;
}

.rv-bar-row {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.rv-bar-row__label {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.75rem;
  color: #888;
  text-align: right;
  line-height: 1.4;
  margin-right: 0.25rem;
}

.rv-bar-row__track {
  flex: 1;
  height: 0.25rem;
  background: #d0d0d0;
  border-radius: 6.1875rem;
  overflow: hidden;
}

.rv-bar-row__fill {
  height: 100%;
  background: #ff4b4b;
  border-radius: 6.1875rem;
}

.rv-bar-row__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #888;
  width: 2.75rem;
  text-align: right;
}


/* ── 후기 목록 ── */

.reviews-list {
  padding: 0 1rem;
}


/* ── 후기 아이템 ── */

.rv-item {
  padding: 1.125rem 0;
  border-bottom: 1px solid #f2f2f2;
}


.rv-item__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.rv-item__stars {
  display: flex;
  gap: 0.0625rem;
  flex-shrink: 0;
}

.rv-item__author,
.rv-item__date {
  font-size: 0.8125rem;
  color: #999;
  font-weight: 400;
}

.rv-item__date {
  margin-left: auto;
  flex-shrink: 0;
}

.rv-item__text {
  margin: 0;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.6;
  word-break: break-all;
}

.rv-item__photo {
  margin-top: 0.75rem;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #efefef;
  cursor: pointer;
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}

.rv-item__photo.is-expanded {
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
}

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

.rv-item__photo.is-expanded img {
  height: auto;
  object-fit: initial;
}


/* ── 마이티켓 내 후기 전용 ── */

/* 상품명 헤더 (내 후기 모드) */
.rv-item__product {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.rv-item__product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.rv-item__product-name:hover { color: #ff4b4b; }

.rv-item__product-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: #999;
  padding-left: 0.5rem;
  white-space: nowrap;
}

/* 수정/삭제 버튼 (내 후기 모드) */
.rv-item__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #bbb;
  white-space: nowrap;
}

.rv-item__actions a { color: #bbb; text-decoration: none; }
.rv-item__actions a:hover { color: #ff4b4b; }
.rv-item__actions-sep { color: #ddd; }


/* ── 후기 없음 ── */

.no-review {
  font-size: 0.9375rem;
  color: #aaa;
  text-align: center;
  padding: 4rem 0;
}

/* ── 인라인 스타일 분리 ── */
.reviews-gnb-title {
  display: block;
  max-width: 13rem;
}

.reviews-page-wrap {
  background-color: #f6f6f6;
  padding-top: 0.625rem;
  padding-bottom: 3.125rem;
}


