/* Modern Comments & Review System */

.reviews-modern-container {
  padding: 10px 0;
  max-width: 100%;
}

/* Summary Card */
.review-summary-card {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.big-rating-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  margin-bottom: 5px;
}

.big-rating-score .score-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
}

.big-rating-score .max-score {
  font-size: 1.5rem;
  color: #999;
  margin-left: 2px;
}

.big-rating-stars {
  font-size: 1.2rem;
  color: #ff9f00;
  margin-bottom: 10px;
}

.big-rating-stars .empty {
  color: #e6e6e6;
}

.total-reviews {
  font-size: 0.9rem;
  color: #666;
}

/* Histogram */
.rating-histogram {
  padding: 0 15px;
}

.histogram-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.histogram-row .star-label {
  width: 45px;
  display: flex;
  align-items: center;
  color: #666;
}

.histogram-row .star-label i {
  font-size: 0.8rem;
  margin-left: 4px;
  color: #ff9f00;
}

.histogram-row .progress-bar-wrapper {
  flex-grow: 1;
  margin: 0 10px;
}

.histogram-row .progress-custom {
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.histogram-row .progress-fill {
  height: 100%;
  background-color: #ff9f00;
  border-radius: 4px;
}

.histogram-row .count-label {
  width: 30px;
  text-align: right;
  color: #999;
  font-size: 0.85rem;
}

.border-right-md {
  border-right: 1px solid #eee;
}

@media (max-width: 768px) {
  .border-right-md {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

/* Filters */
.review-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.review-filters .filter-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  transition: all 0.2s;
}

.review-filters .filter-btn:hover,
.review-filters .filter-btn.active {
  border-color: #ff9f00;
  color: #333;
  background: #fff9e6;
}

.review-filters .badge-count {
  background: #eee;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 5px;
}

/* Review List */
.review-card {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 25px 0;
}

.review-card:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

.review-meta {
  font-size: 0.8rem;
  color: #999;
}

.verified-badge {
  color: #27ae60;
  margin-left: 8px;
  font-weight: 500;
}

.review-rating i {
  color: #ff9f00;
  font-size: 0.9rem;
}

.review-rating i.empty {
  color: #e6e6e6;
}

.review-subject {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.review-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.helpful-actions {
  font-size: 0.85rem;
  color: #888;
}

.btn-helpful {
  background: none;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 4px 12px;
  margin-left: 8px;
  color: #666;
  transition: all 0.2s;
}

.btn-helpful:hover {
  background: #f8f9fa;
  color: #333;
}
.btn-helpful.active {
  color: #28a745;
  background: #e8f5e9;
  border-color: #c8e6c9;
  font-weight: 600;
  pointer-events: none;
}
.btn-helpful.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Modal and Star Rating Input */
.custom-modal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 2rem;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin: 0 2px;
  color: #ddd;
  transition: color 0.2s;
}

.star-rating-input label:before {
  content: "\f005";
  font-family: FontAwesome;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #ff9f00;
}

.btn-evaluate {
  background-color: #ff9f00;
  border-color: #ff9f00;
  color: #fff;
  font-weight: 600;
}

.btn-evaluate:hover {
  background-color: #e0a01b;
  border-color: #e0a01b;
}

.empty-reviews {
  color: #aaa;
}
