/* Review Page Styles */
.project-detail-wrapper {
  padding: 60px 0;
  /* background-color: var(--bg-light); */
  min-height: calc(100vh - 200px);
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  text-align: center;
}

.error-container h2 {
  color: var(--typo-secondary);
  margin-bottom: 10px;
}

.error-container p {
  color: var(--text-color);
  margin-bottom: 20px;
}

/* Back Button */
.back-button {
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--font-small);
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--color-primary);
}

/* Page Title */
.page-title {
  margin-bottom: 30px;
}
.back-button {
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.page-title h2 {
  font-size: var(--font-large);
  font-weight: 700;
  line-height: normal;
  color: var(--typo-secondary);
  margin: 0;
}

/* Profile Edit Block - Freelancer Sidebar */
.profile-edit-block {
  text-align: center;
  position: relative;
  background-color: var(--color-white);
  border: solid 1px var(--border-plight);
  border-radius: 15px;
  overflow: hidden;
  position: sticky;
  top: 30px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}

.profile-edit-top {
  padding: 30px 20px 20px;
}

.profile-edit-block .profile-img {
  margin: 0 auto;
  width: 90px;
  height: 90px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-plight);
  padding: 8px;
  margin-bottom: 15px;
}

.profile-edit-block .profile-img .profile-update-img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-top h5 {
  margin: 4px 0 0;
  padding-bottom: 10px;
  font-weight: 600;
  font-size: var(--font-large);
  color: var(--typo-secondary);
}

.profile-reviews {
  font-size: var(--font-xs);
  color: var(--typo-secondary);
  line-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 15px;
}

.profile-chat {
  margin-bottom: 20px;
}

/* .custom-btn.secondary-light {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--light-gray);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
} */

/* .custom-btn.secondary-light:hover {
  background-color: var(--light-orange);
  border-color: var(--color-primary);
} */

/* .chat-btn {
  display: flex;
  padding: 15px 20px;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  gap: 8px;
  font-weight: 500;
  font-size: var(--font-small);
  line-height: normal;
  background-color: var(--light-gray);
  text-decoration: none;
  border-top: 1px solid var(--border-color);
  transition: all 0.3s ease;
} */
.chat-btn {
    display: flex;
    padding: 12px 15px;
    justify-content: center;
    color: var(--color-primary);
    gap: 7px;
    font-weight: 500;
    font-size: var(--font-small);
    line-height: normal;
    background-color: var(--border-plight);
}
.chat-btn:hover {
  background-color: var(--light-orange);
  color: var(--color-primary);
}

/* Review Content */
.review-content {
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-plight);
  background: var(--color-white);
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}

.pd-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pd-tag ul.pd-tag0list {
  display: flex;
  gap: 22px;
  row-gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-tag ul.pd-tag0list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--light-gray);
  padding: 8px 15px;
  line-height: normal;
  border-radius: 20px;
  font-size: var(--font-small);
  font-weight: 500;
  color: var(--text-color);
}

.pd-tag ul.pd-tag0list li.bg-light-sec {
  background-color: var(--light-orange);
  color: var(--color-primary);
}

.pd-bid .share-profile {
  padding: 8px 15px;
  background: var(--light-orange);
  color: var(--color-primary);
  line-height: normal;
  border-radius: 8px;
  border: none;
  display: flex;
  font-size: var(--font-small);
  font-weight: 500;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pd-bid .share-profile:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.pd-bid .share-profile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.pd-head .pd-head-titile {
  flex: 1;
}

.pd-head .pd-head-titile h2 {
  font-size: var(--font-24);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 0 15px;
  font-weight: 700;
  color: var(--typo-secondary);
}

.completed-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.completed-time > span {
  font-size: var(--font-xs);
  line-height: normal;
  color: var(--text-color);
}

.completed-time .pd-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-small);
  font-weight: 500;
  background: var(--light-gray);
  padding: 5px 10px;
  line-height: normal;
  border-radius: 5px;
  color: var(--typo-secondary);
}

.pd-price {
  font-size: var(--font-32);
  line-height: normal;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.pd-discription {
  padding-top: 20px;
  color: var(--text-color);
  line-height: 1.6;
}

.pd-discription h3 {
  font-size: var(--font-20);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--typo-secondary);
  margin-top: 30px;
}

.pd-discription h3:first-child {
  margin-top: 0;
}

.pd-discription p {
  margin-bottom: 15px;
}

.pd-discription ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pd-discription ul li {
  color: var(--text-color);
  position: relative;
  padding-left: 20px;
  line-height: 24px;
  font-size: var(--font-regular);
  margin-bottom: 8px;
}

.pd-discription ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--text-color);
}

/* Form Styles */
.form-wrap {
  margin-bottom: 20px;
  padding: 0;
  background-color: transparent;
}

.form-wrap label {
  font-size: var(--font-small);
  line-height: normal;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--typo-secondary);
  display: block;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.star {
  cursor: pointer;
  transition: all 0.2s ease;
}

.star svg {
  width: 30px;
  height: 30px;
  /* fill: var(--color-primary); */
  transition: all 0.2s ease;
}

.star.outlined svg {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1;
}

.star:hover {
  transform: scale(1.1);
}

/* Textarea */
textarea {
  resize: none;
  background: var(--light-gray);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: var(--font-regular);
  color: var(--text-color);
  line-height: 1.5;
  transition: all 0.3s ease;
}

textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}

textarea::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

/* Button Styles */
.custom-btn.secondary-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-btn.secondary-btn:hover:not(:disabled) {
  background-color: transparent;
  color: var(--color-primary);
}

.custom-btn.secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-btn.primary-fill {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.custom-btn.primary-fill:hover {
  background-color: transparent;
  color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1199px) {
  .review-content {
    padding: 25px;
  }
  
  .pd-head .pd-head-titile h2 {
    font-size: var(--font-20);
    line-height: 1.4;
  }
  
  .pd-discription ul li {
    font-size: var(--font-small);
  }
  
  .pd-price {
    font-size: var(--font-24);
  }
}

@media (max-width: 991px) {
  .review-content {
    margin-top: 30px;
    padding: 20px;
  }
  
  .profile-edit-block {
    margin-bottom: 30px;
  }
  
  .pd-tag,
  .pd-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .pd-tag0list {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .project-detail-wrapper {
    padding: 40px 0;
  }
  
  .review-content {
    padding: 15px;
  }
  
  .profile-edit-block {
    padding: 20px 15px;
  }
  
  .profile-edit-top {
    padding: 20px 15px 15px;
  }
  
  .pd-head .pd-head-titile h2 {
    font-size: var(--font-regular);
  }
  
  .pd-price {
    font-size: var(--font-20);
  }
  
  .page-title h2 {
    font-size: var(--font-24);
  }
  
  .pd-tag0list {
    flex-direction: column;
    gap: 10px;
  }
  
  .pd-tag0list li {
    justify-content: center;
  }
  
  .star svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 576px) {
  .profile-edit-block .profile-img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
  
  .profile-edit-top h5 {
    font-size: var(--font-regular);
  }
  
  .pd-discription h3 {
    font-size: var(--font-regular);
  }
  
  .back-link {
    font-size: var(--font-xs);
  }
  
  .page-title {
    margin-bottom: 20px;
  }
  
  .custom-btn.secondary-btn {
    padding: 10px 25px;
    font-size: var(--font-xs);
  }
}