/* ==========================================================================
   REVIEWS.CSS - Страница отзывов (минималистичный стиль)
   ========================================================================== */

/* ========== PAGE CONTAINER ========== */
.container {
  padding: 40px 20px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== PAGE HEADING ========== */
.page-title {
  font-size: 32px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.3px;
  margin: 0 0 40px 0;
  text-align: center;
}

/* ========== COMMENTS LIST ========== */
.okay_list_body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== USER MESSAGE (COMMENT ITEM) ========== */
.user_message {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.user_message:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: #e0e0e0;
}

/* ========== POST ITEM ========== */
.post-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.post-item-name span {
  display: block;
}

.post-item-message {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.post-item-message span {
  display: block;
}

.post-item-date {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.post-item-date time {
  display: block;
  margin-bottom: 8px;
}

.post-item-date a,
.post-item-date .product-link {
  color: #6818d5;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  margin-top: 8px;
}

.post-item-date a:hover,
.post-item-date .product-link:hover {
  color: #4a0fa8;
  background: #e8e8e8;
  text-decoration: none;
}

/* ========== PRODUCT RATING ========== */
.product-reviews-summary {
  margin-top: 12px;
}

.product_rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating_starOff {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 18px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path fill="%23e0e0e0" d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>')
    repeat-x;
  background-size: 18px 18px;
}

.rating_starOn {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path fill="%23ffc107" d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>')
    repeat-x;
  background-size: 18px 18px;
  overflow: hidden;
}

.rating_text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ========== ADMIN ANSWER ========== */
.admin-answer-post {
  margin-left: 40px;
  margin-top: 16px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 3px solid var(--c-primary, #9e6899);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dots-decoration-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary, #9e6899);
  cursor: pointer;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  user-select: none;
}

.dots-decoration-link::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dots-decoration-link.active::after {
  transform: rotate(180deg);
}

.dots-decoration-link:hover {
  color: var(--c-primary-hover, #8a5a85);
}

.admin-answer {
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.admin-answer-post.active .admin-answer {
  max-height: 500px;
  margin-top: 12px;
}

.admin-answer .post-item-message {
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* ========== NO COMMENTS ========== */
.heading_box {
  text-align: center;
  padding: 60px 20px;
}

.text_grey {
  color: #999;
  font-size: 16px;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #f5f5f5;
  border-color: #000;
  color: #000;
}

.pagination .active span,
.pagination .current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pagination .disabled span {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========== TOOLTIP ========== */
.tooltip {
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .container {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .user_message {
    padding: 20px;
  }

  .admin-answer-post {
    margin-left: 20px;
    padding: 16px;
  }

  .post-item-name {
    font-size: 15px;
  }

  .post-item-message {
    font-size: 14px;
  }

  .post-item-date {
    font-size: 12px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}
