/* ==========================================================================
   Agent E — "이런 제품은 어떠세요" 행 + 고객 평가 섹션
   값 출처: 실제 스팀 CSS(game.css, store.css, buttons.css, recommended.css)에서
   grep으로 검증한 수치/색상 (하단 주석에 원본 표기)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 비슷한 제품 행 (.related_items_ctn — game.css 검증값 그대로)
   -------------------------------------------------------------------------- */
.related_items_ctn {
  /* game.css: radial-gradient(62.67% 62.67% at 62.67% 100%, rgba(255,255,255,.15), rgba(116,133,140,.15)) */
  background: radial-gradient(62.67% 62.67% at 62.67% 100%, rgba(255, 255, 255, 0.15) 0%, rgba(116, 133, 140, 0.15) 100%);
  padding-top: 40px;
  padding-bottom: 20px;
  margin-top: 20px;
}

.related_items_header {
  /* game.css .game_description_column h2: 14px bold #fff, line-height 26px + 1px 그라디언트 룰 */
  line-height: 26px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 1px;
  background: linear-gradient(90deg, rgba(103, 193, 245, 0.6), rgba(103, 193, 245, 0)) bottom left / 100% 1px no-repeat;
}

#more_like_this_row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 4px; /* store.css .cluster_capsule margin-right: 4px */
}

#more_like_this_row a {
  position: relative;
  display: block;
  flex: 0 0 184px; /* 캡슐 184×69 (capsule_184x69.jpg 규격) */
  transition: filter 0.2s, box-shadow 0.2s;
}

#more_like_this_row a img {
  display: block;
  width: 184px;
  max-width: 100%;
  height: 69px;
}

#more_like_this_row a:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 8px rgba(102, 192, 244, 0.4);
}

/* 가격 오버레이 — img 외의 자식 요소(render.js가 만드는 가격 스트립) */
#more_like_this_row a > :not(img) {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-text);
  font-size: 12px;
  line-height: 15px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

#more_like_this_row a:hover > :not(img) {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. 평가 섹션 컨테이너 + 헤더
   -------------------------------------------------------------------------- */
.review_ctn {
  border-top: 1px solid #000; /* game.css .review_ctn 검증값 */
  padding-bottom: 40px;
}

.app_reviews_area {
  font-size: 12px;
  color: var(--color-text);
}

h2.user_reviews_header {
  /* recommended.css: flex, border-bottom 1px solid #5b7381, margin-top 40px, padding-bottom 4px */
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 4px;
  margin-top: 40px;
  border-bottom: 1px solid #5b7381;
}

h2.user_reviews_header.no_bottom_margin {
  margin-bottom: 0;
}

h2.user_reviews_header .header_links > span {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

h2.user_reviews_header .header_links a {
  font-size: 12px;
  color: #fff;
  text-decoration: underline;
}

h2.user_reviews_header .header_links a:not(:first-child) {
  border-left: 1px solid #9fb4c9; /* recommended.css 검증값 */
  padding-left: 8px;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   3. 점수 요약 (2025 리뷰 요약 스타일 — recommended.css 검증값)
   -------------------------------------------------------------------------- */
.review_score_summaries {
  margin: 30px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.summary_rule {
  height: 1px;
  flex-grow: 1;
  background-color: #415063; /* recommended.css .summary_rule */
}

.review_box_background {
  background: radial-gradient(63% 79% at 50% 100%, rgba(255, 255, 255, 0.35) 0%, rgba(116, 133, 140, 0.35) 100%);
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
}

.review_box_background_secondary {
  background: radial-gradient(63% 79% at 50% 100%, rgba(255, 255, 255, 0.25) 0%, rgba(116, 133, 140, 0.25) 100%);
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
}

.review_summary_ctn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 30px;
  border-radius: 4px;
}

.review_summary_ctn .summary_text {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review_summary_ctn .title {
  text-transform: uppercase;
  font-size: 11px;
  color: #9ba3ab; /* recommended.css .review_summary_ctn .title */
  letter-spacing: 1px;
  line-height: 17px;
}

.review_summary_ctn .game_review_summary,
#review_summary_all_big .game_review_summary,
#review_summary_all_big {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.review_summary_ctn .app_reviews_count,
#review_summary_all_big .app_reviews_count {
  font-size: 12px;
  font-weight: 400;
  color: #8ba6b6; /* recommended.css .review_summary_ctn .app_reviews_count */
  text-shadow: none;
}

/* 스팀 .summary_text: 요약(22px) 아래 줄에 12px 카운트가 쌓이는 구조 */
#review_summary_all_big {
  display: flex;
  flex-direction: column;
}

.review_language_breakdown {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  gap: 8px;
}

.outlier_totals {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  color: #9ba3ab;
  padding: 6px 12px;
  border-radius: 5px;
  gap: 4px;
}

.outlier_totals .game_review_summary {
  order: 3;
  font-weight: 700;
}

.outlier_totals .review_summary_count {
  flex-grow: 1;
  color: #fff; /* recommended.css .review_summary_count */
}

/* --------------------------------------------------------------------------
   4. 평가 그래프 (기본 접힘, 정적 플레이스홀더)
   -------------------------------------------------------------------------- */
#review_histograms_container {
  position: relative;
  background-color: #3b4959; /* recommended.css #review_histograms_container.has_data */
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
}

#review_histograms_container.collapsed {
  display: none;
}

.review_histogram_section {
  flex: 1 1 auto;
}

.review_histogram_section.recent {
  flex: 0 0 335px; /* recommended.css #review_histogram_recent_section width: 335px */
  background: rgba(148, 217, 255, 0.2);
  min-height: 280px;
  box-shadow: 0 0 5px #000;
}

.histogram_title {
  text-transform: uppercase;
  padding: 10px 0 0 10px;
  color: var(--color-accent-alt); /* recommended.css .histogram_title color #66c0f4 */
  font-size: 10px;
}

.review_histogram {
  padding: 10px;
  padding-top: 20px;
}

.histogram_body {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.histogram_yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 10px;
  color: #fff; /* recommended.css .review_histogram .flot-y-axis */
  height: 250px; /* recommended.css #review_histogram_rollup height: 250px */
}

.histogram_plot {
  flex-grow: 1;
  min-width: 0;
}

.histogram_chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 250px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: repeating-linear-gradient(to top, transparent 0, transparent 62px, rgba(255, 255, 255, 0.06) 62px, rgba(255, 255, 255, 0.06) 63px);
}

.histo_col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.histo_col .pos {
  display: block;
  background: #4191bf; /* recommended.css #review_histogram_tooltip .positive */
}

.histo_col .neg {
  display: block;
  background: #a34c25; /* recommended.css #review_histogram_tooltip .negative */
}

.histogram_xaxis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-accent-alt); /* recommended.css .review_histogram .flot-x-axis */
  padding-top: 4px;
}

/* --------------------------------------------------------------------------
   5. 그래프 토글 버튼 (buttons.css .btn_black / .btn_small_thin 검증값)
   -------------------------------------------------------------------------- */
.btn_black {
  border-radius: 2px;
  border: none;
  padding: 1px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  color: #ebebeb !important;
  background: #000;
}

.btn_black > span {
  border-radius: 2px;
  display: block;
  background: transparent;
}

.btn_black:hover {
  color: #000 !important;
  background: #97c0e3; /* buttons.css .btn_black:hover */
}

.btn_small_thin > span {
  padding: 0 5px;
  font-size: 12px;
  line-height: 20px;
}

.graph_expander_btn {
  margin-left: auto; /* recommended.css .graph_expander_btn */
  margin-right: 8px;
}

.review_graph_toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px 1px 1px;
}

.review_graph_toggle > span {
  display: inline;
}

.graph_toggle_icon {
  display: inline-block;
}

/* 그래프 접힘 여부에 따라 표시/숨기기 버튼 교체 (interactions.js가 .collapsed 토글) */
#review_histograms_container.collapsed ~ #reviews_filter_options #review_hide_graph_button {
  display: none;
}

#review_histograms_container:not(.collapsed) ~ #reviews_filter_options #review_show_graph_button {
  display: none;
}

/* --------------------------------------------------------------------------
   6. 필터 드롭다운 바 (recommended.css 검증값)
   -------------------------------------------------------------------------- */
.user_reviews_filter_options {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 12px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.2);
}

.user_reviews_filter_menu {
  position: relative;
  padding-right: 10px;
}

.user_reviews_filter_menu:hover {
  background-color: #eef0f1; /* recommended.css: 밝은 종이색 플라이아웃 */
}

.user_reviews_filter_menu .title {
  background: none;
  border: none;
  text-align: inherit;
  font-size: 13px;
  color: #fff;
  padding: 10px;
  padding-right: 20px;
  cursor: pointer;
  font-family: inherit;
}

.user_reviews_filter_menu:hover .title {
  color: #000;
}

.user_reviews_filter_menu .menu_caret {
  margin-left: 4px;
  vertical-align: middle;
}

.user_reviews_filter_menu_flyout {
  position: absolute;
  left: 0;
  display: none;
  padding: 10px;
  color: #556772;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
  line-height: 20px;
  z-index: 10;
  background-color: #eef0f1;
}

.user_reviews_filter_menu:hover .user_reviews_filter_menu_flyout,
.user_reviews_filter_menu_flyout:hover,
.user_reviews_filter_menu.open .user_reviews_filter_menu_flyout,
.user_reviews_filter_menu:focus-within .user_reviews_filter_menu_flyout {
  display: block;
}

.user_reviews_filter_menu_flyout_content {
  position: relative;
  white-space: nowrap;
}

.user_reviews_filter_menu_flyout_content label {
  cursor: pointer;
}

.user_reviews_filter_menu_flyout_content label:hover {
  color: #000;
}

.user_reviews_date_range_explanation,
.user_reviews_playtime_filter_explanation,
.user_reviews_display_explanation {
  white-space: normal;
  max-width: 300px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #4582a5; /* recommended.css 검증값 */
}

#app_reviews_playtime_range_text {
  margin-top: 8px;
}

#app_reviews_playtime_range_text_min,
#app_reviews_playtime_range_text_max {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. 활성 필터 스트립 + 필터 결과 요약 줄
   -------------------------------------------------------------------------- */
.reviews_info_ctn {
  margin-bottom: 0;
}

.user_reviews_active_filters .title {
  text-transform: none;
  font-size: 15px;
  color: var(--color-text); /* recommended.css: #c6d4df */
  padding-bottom: 5px;
  display: inline-block;
  margin-right: 5px;
}

.user_reviews_active_filters .active_filter {
  background-color: rgba(255, 255, 255, 0.2); /* recommended.css .active_filter */
  padding: 5px;
  margin-right: 5px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.user_reviews_active_filters .active_filter:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.active_filter .filter_dismiss {
  opacity: 0.7;
}

.user_reviews_filter_score {
  display: none;
  padding-top: 10px;
  font-size: 15px; /* recommended.css .user_reviews_filter_score */
}

.user_reviews_filter_score.visible {
  display: block;
}

.user_reviews_filter_score .game_review_summary {
  font-weight: 700;
  cursor: help;
}

/* --------------------------------------------------------------------------
   8. 평가 카드 2단 레이아웃
   -------------------------------------------------------------------------- */
.user_reviews_container {
  margin-top: 20px; /* recommended.css .user_reviews_container */
  display: flex;
  flex-direction: row;
  gap: 14px; /* store.css div.rightcol margin-inline-start: 14px */
}

.app_reviews_area .leftcol {
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
}

.app_reviews_area .rightcol.recent_reviews {
  flex: 0 0 308px; /* store.css div.rightcol width: 308px */
  float: none;
  width: 308px;
  margin: 0;
}

.user_reviews_sub_header {
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 5px;
  letter-spacing: 2px; /* recommended.css .user_reviews_sub_header */
}

.user_reviews_most_helpful_days {
  text-transform: uppercase;
  font-size: 14px;
  color: var(--color-breadcrumb); /* recommended.css: #56707f */
  letter-spacing: normal;
}

#appreviews_cards {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 요약 보기: 카드 2열 (~48%씩) */
  column-gap: 14px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   9. 큰 평가 카드 (.review_box — recommended.css 검증값)
   -------------------------------------------------------------------------- */
.review_box {
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 26px; /* recommended.css .review_box */
  /* 상단 1px 그라디언트 룰(maincol_gradient_rule.png 재현) */
  background-image: linear-gradient(90deg, rgba(103, 193, 245, 0.6), rgba(103, 193, 245, 0));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top left;
}

.review_box::after {
  content: "";
  display: block;
  clear: both;
}

.review_box .header {
  padding: 8px 9px;
  font-size: 12px;
  color: #647580; /* recommended.css .review_box .header */
  min-height: 16px;
  border-bottom: 1px solid var(--color-bg);
}

.review_box .leftcol {
  width: 184px; /* recommended.css .review_box .review_leftcol */
  float: left;
  flex: none;
  padding: 8px;
  opacity: 0.6;
}

.review_box:hover .leftcol {
  opacity: 1;
}

.review_box .avatar {
  float: left;
  padding-right: 8px;
}

.review_box .avatar img {
  display: block;
  width: 32px;
  height: 32px;
}

.review_box .persona_name {
  display: block;
  color: #c1dbf4; /* recommended.css .review_box .persona_name a */
  font-size: 13px;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.review_box .num_owned_games,
.review_box .num_reviews,
.review_box .products {
  font-size: 11px;
  color: #626366; /* recommended.css 검증값 */
  display: block;
  line-height: 17px;
}

.review_box .rightcol {
  float: none;
  width: auto;
  margin: 0;
  overflow: hidden;
  position: relative;
  padding-right: 8px;
}

.review_box .vote_header {
  margin: 8px 0 13px;
  display: block;
  background: rgba(0, 0, 0, 0.2); /* recommended.css .review_box a.vote_header */
  min-height: 40px;
}

.review_box .vote_header .thumb {
  float: left;
  margin-right: 10px;
  width: 40px;
  height: 40px;
}

.review_box .vote_header .thumb svg,
.review_box .vote_header .thumb img {
  display: block;
  width: 40px;
  height: 40px;
}

.review_box .vote_header .title {
  font-size: 16px;
  color: #d6d7d8; /* recommended.css .vote_header .title */
  padding: 3px 0 0;
  line-height: 19px;
}

.review_box .vote_header .hours {
  font-weight: 300;
  font-size: 11px;
  line-height: 15px;
  color: #8091a2; /* recommended.css .vote_header .hours */
  opacity: 0.6;
}

.review_box .postedDate {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: #8091a2;
  display: inline-block;
  opacity: 0.6;
}

.review_box .content {
  position: relative;
  font-size: 13px;
  line-height: 17px;
  color: var(--color-text-secondary); /* #acb2b8 */
  overflow-wrap: break-word;
  overflow: hidden;
  max-height: 225px; /* recommended.css .review_box.partial .content */
  padding-bottom: 8px;
}

.review_box .gradient,
.review_box .content .gradient {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 30px;
  background: linear-gradient(to bottom, rgba(22, 32, 45, 0) 5%, rgba(22, 32, 45, 0.95) 95%);
}

/* --------------------------------------------------------------------------
   10. 최근 게시된 평가(우측 좁은 열) 카드
   -------------------------------------------------------------------------- */
.recent_reviews .review_box {
  /* recommended.css .review_box.short 그라디언트 */
  background-image: none;
  background-color: transparent;
  background: linear-gradient(to right, rgba(34, 50, 70, 1) 0%, rgba(34, 50, 70, 0) 92%);
  margin-bottom: 26px;
  padding-bottom: 8px;
}

.recent_reviews .review_box .header {
  border-bottom: none;
  padding: 6px 8px 0;
}

.recent_reviews .review_box .leftcol,
.recent_reviews .review_box .short_header {
  float: none;
  width: auto;
  height: 24px;
  color: #819db8; /* recommended.css .short_header */
  background-color: rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
  display: block;
  line-height: 15px;
  padding: 0;
  opacity: 0.9;
}

.recent_reviews .review_box .thumb {
  float: left;
  margin: 0;
  width: 24px;
  height: 24px;
}

.recent_reviews .review_box .thumb svg,
.recent_reviews .review_box .thumb img {
  width: 24px; /* recommended.css .short_header .thumb img */
  height: 24px;
}

.recent_reviews .review_box .avatar {
  padding: 0;
}

.recent_reviews .review_box .avatar img {
  width: 24px;
  height: 24px;
}

.recent_reviews .review_box .persona_name {
  float: left;
  margin-top: 5px;
  margin-left: 6px; /* recommended.css .short_header .persona_name */
  max-width: 120px;
  font-weight: 400;
  color: #819db8;
  font-size: 12px;
}

.recent_reviews .review_box .hours {
  float: left;
  display: block;
  margin-top: 5px;
  margin-left: 6px;
  font-size: 12px;
  color: #819db8;
  opacity: 0.5; /* recommended.css .rightcol .review_box .short_header .hours */
}

.recent_reviews .review_box .vote_header {
  min-height: 24px;
  height: 24px;
  margin: 0 0 6px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.recent_reviews .review_box .vote_header .title {
  font-size: 12px;
  padding-top: 5px;
  line-height: 15px;
  color: #819db8;
}

.recent_reviews .review_box .rightcol,
.recent_reviews .review_box .shortcol {
  float: none;
  width: auto;
  padding-left: 8px; /* recommended.css .review_box.short .shortcol */
  padding-right: 8px;
}

.recent_reviews .review_box .content {
  color: #9fb4c9; /* recommended.css .review_box .shortcol .content */
  max-height: 120px;
}

.recent_reviews .review_box .gradient,
.recent_reviews .review_box .content .gradient {
  background: linear-gradient(to bottom, rgba(27, 40, 56, 0) 5%, rgba(27, 40, 56, 0.95) 95%);
}

.recent_reviews .review_box .postedDate {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   반응형 (스펙: 910px에서 열 스택, 600px 컴팩트)
   -------------------------------------------------------------------------- */
@media (max-width: 910px) {
  .related_items_ctn .page_content,
  .review_ctn .page_content {
    padding: 0 2vw;
  }

  #more_like_this_row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .review_score_summaries {
    flex-direction: column;
  }

  .review_language_breakdown {
    width: 80%; /* recommended.css 반응형 검증값 */
  }

  .summary_rule {
    display: none;
  }

  #review_histograms_container {
    flex-direction: column;
  }

  .review_histogram_section.recent {
    flex: 1 1 auto;
    min-height: 0;
  }

  .user_reviews_filter_options {
    flex-wrap: wrap;
  }

  .user_reviews_container {
    flex-direction: column;
  }

  .app_reviews_area .rightcol.recent_reviews {
    flex: 1 1 auto;
    width: 100%;
  }

  #appreviews_cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .related_items_ctn {
    padding-top: 20px;
  }

  h2.user_reviews_header {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .review_language_breakdown {
    width: 100%;
  }

  .review_box .leftcol {
    float: none;
    width: 100%;
    padding-bottom: 0;
  }

  .review_box .rightcol {
    padding-left: 8px;
  }

  .histogram_chart,
  .histogram_yaxis {
    height: 150px;
  }
}
