@charset "utf-8";
/* ===== 플레이바둑 후기 (LIST) - Figma 320:1712 pixel-perfect ===== */
/* 페이지 고유 스타일. 모두 .pb-rvlist 스코프. */

/* 글로벌 헤드(브레드크럼/제목)는 이 페이지에서 자체 헤드로 대체하므로 숨김 */
.pb-page:has(.pb-rvlist) > .pb-breadcrumb{ margin-bottom:18px; }
.pb-page:has(.pb-rvlist) > .pb-page-title{ display:none; }
.pb-page:has(.pb-rvlist){ padding-top:30px; }

.pb-rvlist{ color:#111; }
.pb-rvlist *{ box-sizing:border-box; }

/* ---------- 페이지 헤드 ---------- */
.pb-rvlist .rvl-head{ position:relative; min-height:90px; margin-bottom:34px; }
.rvl-head__title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:36px; line-height:48px; color:#111; margin:0; }
.rvl-head__desc{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:18px; line-height:28px; color:#6b7280; margin:10px 0 0; }
.rvl-head__img{ position:absolute; right:240px; top:-12px; width:255px; height:136px; object-fit:contain; }
.rvl-write-btn{ position:absolute; right:0; top:24px; display:inline-flex; align-items:center; justify-content:center;
  width:210px; height:56px; border-radius:28px; background:#2d72e2; color:#fff;
  font-family:"Pretendard",sans-serif; font-weight:600; font-size:16px; text-decoration:none; }
.rvl-write-btn:hover{ background:#1f5fcb; }

/* ---------- 히어로 ---------- */
.rvl-hero{ background:#f3f8ff; border-radius:24px; height:244px; padding:37px 48px;
  display:flex; align-items:center; justify-content:space-between; margin-bottom:68px; }
.rvl-hero__kicker{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:14px; color:#2d72e2; letter-spacing:.2px; }
.rvl-hero__h{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:30px; line-height:38px; color:#111; margin:14px 0 16px; }
.rvl-hero__p{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:17px; line-height:26px; color:#5b6472; margin:0; }
.rvl-hero__stats{ display:flex; gap:24px; flex-shrink:0; }
.rvl-stat{ width:181px; height:164px; border-radius:82px; background:#fff; border:5px solid #3869d9;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.rvl-stat b{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:36px; line-height:1; }
.rvl-stat span{ font-family:"Pretendard",sans-serif; font-weight:500; font-size:15px; color:#4b5563; }
.rvl-stat--blue{ border-color:#3869d9; } .rvl-stat--blue b{ color:#2d72e2; }
.rvl-stat--green{ border-color:#4fb839; } .rvl-stat--green b{ color:#4fb839; }

/* ---------- 바 ---------- */
.rvl-bar{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:36px; }
.rvl-bar__title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:28px; line-height:34px; color:#111; margin:0; }
.rvl-bar__sub{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:16px; line-height:24px; color:#7b8494; margin:5px 0 0; }
.rvl-filters{ display:flex; gap:12px; align-items:center; }
.rvl-filter{ display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 22px;
  border-radius:20px; background:#fff; border:1px solid #d9dee8; color:#333;
  font-family:"Pretendard",sans-serif; font-weight:500; font-size:16px; text-decoration:none; white-space:nowrap; }
.rvl-filter.on{ background:#2d72e2; border-color:#2d72e2; color:#fff; font-weight:600; }
/* 전체보기 링크 */
.rvl-more{ display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 22px; border-radius:22px;
  background:#fff; border:1px solid #d9dee8; color:#2d72e2; text-decoration:none; white-space:nowrap;
  font-family:"Pretendard",sans-serif; font-weight:600; font-size:16px; flex-shrink:0; }
.rvl-more:hover{ background:#2d72e2; border-color:#2d72e2; color:#fff; }
.rvl-more span{ font-size:18px; line-height:1; }

/* 카드 전체를 상세로 이동시키는 오버레이 링크 */
.rvl-card__link{ position:absolute; inset:0; z-index:5; }

/* ---------- 카드 그리드 ---------- */
/* align-items:stretch(기본) 로 한 줄의 세 카드가 가장 큰 카드 높이에 맞춰 동일 높이가 됨 */
.rvl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch; }
.rvl-card{ position:relative; min-height:250px; border-radius:18px; border:1px solid #e1e7f0;
  overflow:hidden; display:flex; flex-direction:column; padding:28px 30px; }
/* 제목·별점 묶음(상단 전체폭) */
.rvl-card__head{ margin-bottom:16px; }
/* 제목 아래: 내용 | 사진 좌우 반반(50:50) */
.rvl-card__main{ display:flex; gap:18px; flex:1 1 auto; align-items:stretch; min-height:0; }
.rvl-card__content{ position:relative; z-index:2; flex:1 1 50%; min-width:0; display:flex; flex-direction:column; }
/* 카드 사진(우측 절반) — 배경색 없음(카드 색이 비침) */
.rvl-card__photo{ position:relative; z-index:1; flex:1 1 50%; min-width:0; align-self:stretch;
  border-radius:12px; overflow:hidden; min-height:132px; }
.rvl-card__photo img{ width:100%; height:100%; object-fit:cover; display:block; }
/* 대체 일러스트: 박스/배경 없이 카드 색 위에 전체가 보이도록 하단 정렬 */
.rvl-card__photo--ill{ border-radius:0; }
.rvl-card__photo--ill img{ object-fit:contain; object-position:center bottom; }

.rvl-card__stars{ display:flex; gap:5px; margin-bottom:12px; }
.rvl-star{ display:block; width:20px; height:20px; line-height:0; }
.rvl-star svg{ display:block; width:100%; height:100%; }
.rvl-star--off{ color:#e3e7ee; }
/* 제목: 상단 전체폭, 최대 2줄 말줄임 */
.rvl-card__title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:20px; line-height:28px; color:#111;
  margin:0; word-break:keep-all;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.rvl-card__text{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:14px; line-height:22px; color:#4b5563;
  margin:0; word-break:keep-all;
  /* 좌측 절반 컬럼: 최대 4줄까지 표시하고 초과분 말줄임 */
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; line-clamp:4; overflow:hidden; }
/* 뱃지+학부모는 본문 아래 흐름에 두고 margin-top:auto 로 카드 하단에 고정 */
.rvl-card__foot{ margin-top:auto; padding-top:14px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.rvl-card__grade{ display:inline-flex; align-items:center; justify-content:center; height:28px; padding:0 14px;
  border-radius:14px; background:#fff; font-family:"Pretendard",sans-serif; font-weight:600; font-size:13px; }
.rvl-card__who{ font-family:"Pretendard",sans-serif; font-weight:600; font-size:16px; }

/* 카드 테마 색 (핑크 / 그린 / 퍼플 순환) */
.rvl-card:nth-child(3n+1){ background:#fff6f4; }
.rvl-card:nth-child(3n+1) .rvl-star{ color:#f04978; }
.rvl-card:nth-child(3n+1) .rvl-card__grade{ color:#f04978; }
.rvl-card:nth-child(3n+1) .rvl-card__who{ color:#f04978; }

.rvl-card:nth-child(3n+2){ background:#f8faf7; }
.rvl-card:nth-child(3n+2) .rvl-star{ color:#1eae87; }
.rvl-card:nth-child(3n+2) .rvl-card__grade{ color:#1eae87; }
.rvl-card:nth-child(3n+2) .rvl-card__who{ color:#1eae87; }

.rvl-card:nth-child(3n+3){ background:#f8f5fc; }
.rvl-card:nth-child(3n+3) .rvl-star{ color:#8e55e3; }
.rvl-card:nth-child(3n+3) .rvl-card__grade{ color:#8e55e3; }
.rvl-card:nth-child(3n+3) .rvl-card__who{ color:#8e55e3; }

.rvl-empty{ grid-column:1/-1; padding:60px; text-align:center; color:#7b8494;
  border:1px solid #e1e7f0; border-radius:18px; font-size:16px; }

/* ---------- 하단 CTA ---------- */
.rvl-cta{ position:relative; margin-top:32px; height:168px; border-radius:16px;
  background:linear-gradient(90deg,#f3f8ff 0%,#fff6f4 100%);
  display:flex; align-items:center; padding:0 28px; gap:28px; }
.rvl-cta__img{ width:133px; height:133px; object-fit:contain; flex-shrink:0; }
.rvl-cta__txt{ flex:1; }
.rvl-cta__title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:24px; line-height:30px; color:#333; margin:0; }
.rvl-cta__desc{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:16px; line-height:24px; color:#333; margin:12px 0 0; }
.rvl-cta__btn{ flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  width:190px; height:54px; border-radius:27px; background:#fff; color:#111;
  font-family:"Pretendard",sans-serif; font-weight:600; font-size:16px; text-decoration:none;
  box-shadow:0 4px 14px rgba(17,34,68,.08); }
.rvl-cta__btn:hover{ box-shadow:0 6px 18px rgba(17,34,68,.14); }

/* ---------- 반응형 ---------- */
@media (max-width:1024px){
  .rvl-grid{ grid-template-columns:1fr 1fr; }
  .rvl-head__img{ display:none; }
}
@media (max-width:860px){
  .rvl-hero{ flex-direction:column; align-items:flex-start; height:auto; gap:24px; padding:30px; }
  .rvl-grid{ grid-template-columns:1fr; }
  .rvl-bar{ flex-direction:column; align-items:flex-start; gap:16px; }
  .rvl-cta{ flex-direction:column; height:auto; padding:28px; text-align:center; gap:18px; }
  .rvl-write-btn{ position:static; margin-top:18px; }
  .rvl-head{ min-height:0; }
}

/* ==================================================================== */
/* 후기 전체목록(list.php) — 이미지 상단 + 내용 하단 카드                 */
/* ==================================================================== */
.rvll-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch; }
.rvll-card{ position:relative; display:flex; flex-direction:column; background:#fff;
  border:1px solid #e1e7f0; border-radius:18px; overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease; }
.rvll-card:hover{ box-shadow:0 10px 26px rgba(17,34,68,.10); transform:translateY(-3px); }
.rvll-card__link{ position:absolute; inset:0; z-index:5; }
/* 사진 영역(있을 때만) */
.rvll-card__photo{ position:relative; width:100%; aspect-ratio:16/10; background:#f3f5f9; overflow:hidden; }
.rvll-card__photo img{ width:100%; height:100%; object-fit:cover; display:block; }
/* 사진 없는 카드: 카드 색상별 샘플 일러스트로 대체 */
.rvll-card__ph{ width:100%; aspect-ratio:16/10; display:flex; align-items:flex-end; justify-content:center; }
/* .rvll-card__photo img(cover) 규칙을 이기기 위해 스코프를 좁혀 우선순위 확보 */
.rvll-card__ph .rvll-card__ill{ width:auto; height:100%; max-width:100%;
  object-fit:contain; object-position:center bottom; display:block; }
/* 본문 */
.rvll-card__body{ display:flex; flex-direction:column; flex:1; padding:22px 22px 24px; }
.rvll-card__stars{ display:flex; gap:4px; margin-bottom:12px; }
.rvll-card__stars .rvl-star{ width:18px; height:18px; }
.rvll-card__title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:18px; line-height:26px;
  color:#111; margin:0 0 10px; word-break:keep-all;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.rvll-card__text{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:14px; line-height:22px;
  color:#4b5563; margin:0 0 16px; word-break:keep-all;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
.rvll-card__foot{ margin-top:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rvll-card__grade{ display:inline-flex; align-items:center; height:26px; padding:0 12px; border-radius:13px;
  background:#f1f5fb; color:#2d72e2; font-family:"Pretendard",sans-serif; font-weight:600; font-size:12px; }
.rvll-card__who{ font-family:"Pretendard",sans-serif; font-weight:600; font-size:14px; color:#333; }
.rvll-card__date{ margin-left:auto; font-family:"Pretendard",sans-serif; font-size:12px; color:#9aa3b2; }
/* 카드 컬러 순환(핑크/그린/퍼플) — 별점/뱃지 */
.rvll-card:nth-child(3n+1) .rvl-star{ color:#f04978; } .rvll-card:nth-child(3n+1) .rvll-card__ph{ background:#fff6f4; color:#f04978; }
.rvll-card:nth-child(3n+2) .rvl-star{ color:#1eae87; } .rvll-card:nth-child(3n+2) .rvll-card__ph{ background:#f8faf7; color:#1eae87; }
.rvll-card:nth-child(3n+3) .rvl-star{ color:#8e55e3; } .rvll-card:nth-child(3n+3) .rvll-card__ph{ background:#f8f5fc; color:#8e55e3; }
.rvl-star--off{ color:#e3e7ee !important; }

/* 페이지네이션 */
.rvll-paging{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:44px; }
.rvll-paging a, .rvll-paging strong{ display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:40px; padding:0 12px; border-radius:10px; border:1px solid #e1e7f0; background:#fff;
  font-family:"Pretendard",sans-serif; font-weight:600; font-size:15px; color:#4b5563; text-decoration:none; }
.rvll-paging a:hover{ border-color:#2d72e2; color:#2d72e2; }
.rvll-paging strong{ background:#2d72e2; border-color:#2d72e2; color:#fff; }

@media (max-width:1024px){ .rvll-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .rvll-grid{ grid-template-columns:1fr; } }

/* ==================================================================== */
/* 후기 상세(view.php) — 게시판형                                         */
/* ==================================================================== */
.rvv{ max-width:860px; margin:0 auto; }
.rvv-head{ padding:0 0 24px; border-bottom:1px solid #e8ecf3; margin-bottom:28px; }
.rvv-stars{ display:flex; gap:5px; margin-bottom:14px; }
.rvv-stars .rvl-star{ width:22px; height:22px; color:#f5a623; }
.rvv-title{ font-family:"Pretendard",sans-serif; font-weight:700; font-size:28px; line-height:38px; color:#111; margin:0 0 16px; word-break:keep-all; }
.rvv-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; color:#7b8494;
  font-family:"Pretendard",sans-serif; font-size:15px; }
.rvv-meta b{ color:#333; font-weight:600; }
.rvv-meta .rvv-dot{ width:3px; height:3px; border-radius:50%; background:#c7cdd8; }
.rvv-tag{ display:inline-flex; align-items:center; height:26px; padding:0 12px; border-radius:13px;
  background:#eef4ff; color:#2d72e2; font-weight:600; font-size:13px; }
/* 사진 캐러셀(사진 여러 장이면 좌우 이동·도트) */
.rvv-carousel{ position:relative; margin:0 0 26px; border-radius:14px; overflow:hidden; background:#f3f5f9; }
.rvv-carousel__track{ display:flex; transition:transform .35s ease; }
.rvv-slide{ flex:0 0 100%; width:100%; min-width:0; }
.rvv-slide img{ display:block; width:100%; max-height:520px; object-fit:contain; background:#f3f5f9; }
.rvv-car__nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:42px; height:42px;
  border:0; border-radius:50%; background:rgba(17,24,39,.5); color:#fff; font-size:26px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.rvv-car__nav:hover{ background:rgba(17,24,39,.72); }
.rvv-car__nav--prev{ left:12px; } .rvv-car__nav--next{ right:12px; }
.rvv-car__dots{ position:absolute; left:0; right:0; bottom:12px; z-index:3; display:flex; justify-content:center; gap:8px; }
.rvv-car__dot{ width:9px; height:9px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.55); cursor:pointer; transition:background .15s; }
.rvv-car__dot.is-on{ background:#fff; }
/* 사진 없을 때 색상별 샘플 일러스트 */
.rvv-illust{ display:flex; align-items:flex-end; justify-content:center; height:320px; border-radius:16px; margin:0 0 26px; overflow:hidden; }
.rvv-illust img{ width:auto; height:96%; max-width:100%; object-fit:contain; object-position:center bottom; display:block; }
.rvv-illust--1{ background:#fff6f4; }
.rvv-illust--2{ background:#f8faf7; }
.rvv-illust--3{ background:#f8f5fc; }
.rvv-body{ font-family:"Pretendard",sans-serif; font-weight:400; font-size:17px; line-height:30px; color:#333;
  word-break:keep-all; white-space:normal; min-height:120px; }
.rvv-actions{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:40px;
  padding-top:24px; border-top:1px solid #e8ecf3; }
.rvv-btn{ display:inline-flex; align-items:center; justify-content:center; height:50px; padding:0 26px; border-radius:25px;
  font-family:"Pretendard",sans-serif; font-weight:600; font-size:16px; text-decoration:none; }
.rvv-btn--list{ background:#fff; border:1px solid #d9dee8; color:#333; }
.rvv-btn--list:hover{ border-color:#2d72e2; color:#2d72e2; }
.rvv-btn--write{ background:#2d72e2; color:#fff; }
.rvv-btn--write:hover{ background:#1f5fcb; }

@media (max-width:640px){
  .rvv-title{ font-size:23px; line-height:32px; }
  .rvv-actions{ flex-direction:column-reverse; }
  .rvv-btn{ width:100%; }
}

/* ===== 360 하드닝: 통계 원형 축소(넘침 방지)·제목 축소 ===== */
@media (max-width:640px){
  .rvl-head__title{ font-size:26px; line-height:34px; }
  .rvl-head__desc{ font-size:15px; line-height:23px; }
  .rvl-hero{ padding:24px 20px; }
  .rvl-hero h2{ font-size:20px; line-height:1.35; }
  .rvl-stats{ gap:14px; width:100%; justify-content:center; }
  .rvl-stat{ width:138px; height:138px; border-width:4px; }
  .rvl-stat b{ font-size:26px; }
  .rvl-cta__title{ font-size:20px; line-height:28px; }
  .rvl-cta__desc{ font-size:14px; }
  /* 후기 카드: 패딩·간격 축소로 좁은 화면 여유 확보(내용|사진 50:50 유지) */
  .rvl-card{ padding:22px 18px; }
  .rvl-card__main{ gap:12px; }
  .rvl-card__title{ font-size:18px; line-height:25px; }
}
