/*********************************
 * User Reviews CSS - Enhanced Design
 *********************************/

.user-reviews-container {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
}

.user-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0164C1;
}

.user-reviews-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #022A78;
  margin: 0;
  position: relative;
}

.user-reviews-header h1:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #FFCA0B;
}

.btn-submit-review {
  background-color: #0164C1;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(1, 100, 193, 0.3);
  display: inline-flex;
  align-items: center;
}

.btn-submit-review:before {
  content: '+';
  margin-right: 8px;
  font-size: 18px;
  font-weight: 700;
}

.btn-submit-review:hover {
  background-color: #022A78;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 100, 193, 0.4);
}

.user-reviews-filter {
  background-color: #F5F5F5;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-row {
  display: flex;
  align-items: center;
}

.user-reviews-filter label {
  font-weight: 600;
  color: #2D2D2D;
  margin-right: 15px;
  font-size: 16px;
}

.user-reviews-filter select {
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 10px 15px;
  background-color: #fff;
  color: #2D2D2D;
  min-width: 200px;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.user-reviews-filter select:focus {
  border-color: #0164C1;
  outline: none;
  box-shadow: 0 1px 5px rgba(1, 100, 193, 0.3);
}

/* Review cards - Enhanced */
.reviews-list {
  margin-bottom: 40px;
}

.review-card {
  position: relative;
  background-color: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.review-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.review-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #022A78;
}

.review-rating {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.star {
  color: #FFCA0B;
  font-size: 22px;
  letter-spacing: 4px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.review-content {
  color: #2D2D2D;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 15px;
  padding: 5px 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #E5E5E5;
}

.review-info {
  display: flex;
  align-items: center;
  color: #727984;
  font-size: 14px;
}

.review-user {
  font-weight: 500;
  color: #2D2D2D;
  margin-right: 10px;
}

.review-date:before {
  content: '•';
  margin: 0 8px;
}

.helpful-button {
  background-color: #F5F5F5;
  border: 1px solid #E5E5E5;
  color: #2D2D2D;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.helpful-button:hover {
  background-color: #E5E5E5;
}

.helpful-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0164C1;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  margin-left: 8px;
}

.favorite-button {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #E5E5E5;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.favorite-button:hover,
.favorite-active {
  color: #FFCA0B;
  transform: scale(1.1);
}

.review-seller-response {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #F8F9FA;
  border-left: 4px solid #0164C1;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.response-header {
  color: #0164C1;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.response-header:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230164C1'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E");
  background-size: contain;
  margin-right: 8px;
}

.response-text {
  color: #2D2D2D;
  line-height: 1.5;
}

/* Empty state */
.no-reviews {
  background-color: #F5F5F5;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin: 30px 0;
}

.no-reviews-icon {
  font-size: 48px;
  color: #CBCBCB;
  margin-bottom: 20px;
}

.no-reviews-text {
  font-size: 18px;
  color: #727984;
  margin-bottom: 20px;
}

.no-reviews-button {
  display: inline-block;
  background-color: #0164C1;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: #2D2D2D;
  text-decoration: none;
  transition: all 0.2s;
}

.page-item.active .page-link {
  background-color: #0164C1;
  color: white;
}

.page-link:hover {
  background-color: #F5F5F5;
}

/* Alert messages */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background-color: #d1f0d5;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-info {
  background-color: #d1e7f7;
  color: #0c5460;
  border-left: 4px solid #0164C1;
}

/* Form Styles - Enhanced */
.user-review-form {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: #022A78;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #E5E5E5;
  position: relative;
}

.form-title:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #0164C1;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 10px;
}

.form-required {
  color: #DF2222;
  margin-left: 5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: #0164C1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 100, 193, 0.1);
}

.form-control.is-invalid {
  border-color: #DF2222;
}

textarea.form-control {
  height: 150px;
}

.invalid-feedback {
  color: #DF2222;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.rating-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.rating-option {
  display: flex;
  align-items: center;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.rating-option label {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-option input:checked + label {
  background-color: #FFF8E1;
  border-color: #FFCA0B;
  color: #2D2D2D;
}

.rating-option label:hover {
  border-color: #FFCA0B;
}

.rating-value {
  margin-right: 5px;
}

.rating-star {
  color: #FFCA0B;
}

.anonymous-checkbox {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.anonymous-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  display: inline-block;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  margin-right: 10px;
  transition: all 0.2s;
}

.anonymous-checkbox input:checked ~ .checkmark {
  background-color: #0164C1;
  border-color: #0164C1;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.anonymous-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.anonymous-checkbox label {
  cursor: pointer;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-secondary {
  background-color: #F5F5F5;
  color: #2D2D2D;
  border: 1px solid #E5E5E5;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #E5E5E5;
}

.btn-primary {
  background-color: #0164C1;
  color: #fff !important;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(1, 100, 193, 0.3);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  background-color: #022A78;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 100, 193, 0.4);
}

/* Create Review Button at bottom */
.create-review-bottom {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.btn-create-review {
  background-color: #0164C1;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(1, 100, 193, 0.3);
  display: inline-flex;
  align-items: center;
}

.btn-create-review:hover {
  background-color: #022A78;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 100, 193, 0.4);
}

.btn-icon {
  font-size: 20px;
  margin-right: 8px;
  font-weight: 700;
}

@media (max-width: 778px) {
  .user-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-reviews-filter label {
    margin-bottom: 10px;
  }
  
  .user-reviews-filter select {
    width: 100%;
  }
  
  .review-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .rating-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-container .btn-secondary,
  .btn-container .btn-primary {
    width: 100%;
  }
}
