/* ==============================
   리뷰 전체보기 (reviewAll.css)
   ============================== */

/* 전체 컨테이너 */
.review-all {
  padding: 15px;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background-color: #fff;
  color: #333;
}

/* 상단 헤더 바 */
.review-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 10px;
}

.review-header-bar .back-btn {
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
}

.review-header-bar h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
}

.review-header-bar .write-btn {
  font-size: 0.9rem;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}

/* 상단 평점 + 별점 */
.review-summary-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.review-summary-top .avg-score {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
}

.review-summary-top .stars {
  font-size: 1.3rem;
  color: #FFD700;
}

.review-summary-top .review-count {
  font-size: 1rem;
  color: #666;
}

/* 정렬 / 필터 */
.review-sort-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
}

.review-sort-filter a {
  font-size: 0.95rem;
  color: #666;
  text-decoration: none;
}

.review-sort-filter a.active {
  font-weight: bold;
  color: #007aff;
}

/* 사진 리뷰만 보기 체크박스 */
.photo-only-label {
  margin-left: auto;
  font-size: 0.95rem;  /* ✅ 텍스트 크기 ↑ */
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;  /* ✅ 클릭 범위 확대 */
}

.photo-only-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #007aff; /* 파란색 체크 */
  cursor: pointer;
}


/* 리뷰 리스트 */
.review-list {
  margin-top: 15px;
}

/* 리뷰 아이템 */
.review-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  display: block !important;   /* ✅ flex 해제 */
}

/* 작성자/별점/날짜 */
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #555;
}

.review-writer {
  font-weight: 600;
  color: #333;
}

.review-rating {
  color: #ff9500;
  font-size: 13px;
}

.review-date {
  font-size: 0.85rem;
  color: #999;
  margin-left: auto;
}

/* 리뷰 이미지 (그리드) */
.review-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.review-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

/* ==========================
   리뷰 본문 (펼치기 기능)
   ========================== */
.review-content-wrapper {
  position: relative;
  margin-top: 6px;
}

/* 기본 상태: 3줄까지만 보이기 */
.review-content {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;

  max-height: 4.5em;  /* 1.5 * 3줄 */
  overflow: hidden;

  /* ✅ 부드럽게 애니메이션 */
  transition: max-height 0.4s ease;
}

/* 펼쳐진 상태 */
.review-content.expanded {
  max-height: 1000px; /* 충분히 크게 */
}

/* 펼치기 버튼 (앱 하단바 느낌, 은은한 회색) */
.expand-btn {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;

  width: 100%;
  text-align: center;
  padding: 10px 0;
  margin-top: 6px;

  background: #f4f4f4;
  border-top: 1px solid #ddd;
  border-radius: 0 0 8px 8px;

  transition: background 0.25s ease, color 0.25s ease;
}

.expand-btn:hover {
  background: #e9e9e9;
  color: #333;
}

/* 리뷰 없음 */
.no-review {
  text-align: center;
  padding: 30px 0;
  font-size: 0.95rem;
  color: #aaa;
}

.review-sort-filter {
  display: flex;
  align-items: center;
  gap: 6px;  /* 간격 줄임 */
  flex-wrap: nowrap; /* 두 줄로 안 내려가도록 */
  margin-top: 10px;
}

.review-sort-filter a {
  font-size: 0.85rem; /* 조금 더 작게 */
  color: #555;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.2s;
}

.review-sort-filter a.active {
  font-weight: bold;
  color: #007aff;
}

.photo-btn {
  font-size: 0.75rem;
  padding: 3px 8px;
  border: 1px solid #007aff;
  border-radius: 14px;
  background: #f9f9f9;
  color: #007aff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 3px; /* 아이콘과 텍스트 간격 */
}

.photo-btn.active {
  background: #007aff;
  color: white;
}

.photo-emoji {
  font-size: 1.5rem; /* ✅ 이모지 크기만 키움 */
  line-height: 1;
}

/* 리뷰 삭제 버튼 */
.delete-btn {
  background: #ff3b30;          /* 기본 빨간색 (iOS 스타일) */
  color: #fff;
  border: none;
  border-radius: 16px;          /* pill 모양 */
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.delete-btn:hover {
  background: #e22b25;          /* hover 시 진한 빨강 */
  transform: scale(1.05);       /* 살짝 확대 */
}

.delete-btn:active {
  background: #c62828;          /* 클릭 시 어두운 빨강 */
  transform: scale(0.95);       /* 눌리는 효과 */
}

