/* Completed Project Details Styles */

/* Back Button - Styles moved to main style.css */

/* Page Title - Styles moved to main style.css */

/* Loading and Error States - Styles moved to main style.css */

/* Profile Block */
.profile-edit-block {
  text-align: center;
  position: relative;
  background-color: var(--color-white);
  border: solid 1px var(--border-plight);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 30px;
}

.profile-edit-top {
  padding: 20px 12px 10px;
}

.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;
}

.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 10px;
  padding-bottom: 10px;
  font-weight: 600;
  font-size: var(--font-large);
  border-bottom: 1px solid var(--border-plight);
  color: var(--typo-secondary);
}

ul.pd-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

ul.pd-contact .pd-text {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--font-small);
  line-height: normal;
  padding: 5px 10px;
}

.pd-text .icon {
  min-width: 20px;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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);
}

/* Main Content */
.review-content {
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-plight);
  background: var(--color-white);
}

.pd-tag {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 20px;
}

.pd-tag ul.pd-tag0list {
  display: flex;
  gap: 22px;
  row-gap: 10px;
  flex-wrap: wrap;
}

.pd-tag ul.pd-tag0list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--light-gray);
  padding: 5px 10px;
  line-height: normal;
  border-radius: 5px;
  font-size: var(--font-small);
  font-weight: 500;
}

.pd-tag ul.pd-tag0list li.bg-light-sec {
  background-color: rgba(14, 148, 147, 0.10);
  color: var(--typo-primary);
}

.pd-bid .share-profile {
  padding: 5px 10px;
  background: var(--border-plight);
  color: var(--color-primary);
  line-height: normal;
  border-radius: 6px;
  display: flex;
  font-size: var(--font-small);
  font-weight: 500;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pd-bid .share-profile:hover {
  background: var(--border-color);
}

.pd-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.pd-head .pd-head-titile h2 {
  font-size: var(--font-20);
  line-height: 30px;
  max-width: 600px;
  margin: 0 0 10px;
  color: var(--typo-secondary);
}

.completed-time {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.completed-time > span {
  font-size: var(--font-small);
  color: var(--text-color);
  font-weight: 500;
}

.pd-head .pd-head-titile .completed-time .pd-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-small);
  font-weight: 500;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 5px 10px;
  line-height: normal;
  border-radius: 5px;
  margin: 0;
}

.pd-price {
  font-size: var(--font-24);
  line-height: normal;
  font-weight: 700;
  color: var(--h-color);
  white-space: nowrap;
}

/* Project Description */
.pd-discription {
  padding-top: 20px;
}

.pd-discription h3 {
  font-size: var(--font-large);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 25px;
  color: var(--typo-secondary);
}

.pd-discription p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Deliverables Section */
.deliverables-section {
  margin: 30px 0;
  padding: 25px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-plight);
}

.deliverables-section h3 {
  color: var(--typo-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deliverables-section h3::before {
  content: "📦";
  font-size: 20px;
}

.deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.deliverable-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--border-plight);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.deliverable-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.deliverable-info h4 {
  font-size: var(--font-16);
  font-weight: 600;
  color: var(--typo-secondary);
  margin: 0 0 8px 0;
}

.deliverable-info p {
  font-size: var(--font-small);
  color: var(--text-color);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.deliverable-info small {
  font-size: var(--font-xs);
  color: #22c55e;
  font-weight: 500;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #d6610e;
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Review Section */
.review-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid var(--border-plight);
}

.review-section h3 {
  color: var(--typo-secondary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-section h3::before {
  content: "⭐";
  font-size: 20px;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.star {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.star.disabled {
  cursor: default;
}

.star svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

.star.outlined svg {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1;
}

.star:hover:not(.disabled) {
  transform: scale(1.1);
}

/* Form Styles - Styles moved to main style.css */

/* Existing Review Display */
.existing-review {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 25px;
}

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

.rating-text {
  font-size: var(--font-16);
  font-weight: 600;
  color: var(--color-primary);
}

.review-comment {
  margin-bottom: 15px;
}

.review-comment p {
  font-size: var(--font-small);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  background: var(--color-white);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.review-date small {
  font-size: var(--font-xs);
  color: #16a34a;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .review-content {
    padding: 20px;
  }
  
  .pd-head .pd-head-titile h2 {
    font-size: var(--font-large);
    line-height: 28px;
  }
  
  .deliverables-section {
    padding: 20px;
  }
}

@media (max-width: 991px) {
  .review-content {
    margin-top: 30px;
  }
  
  .deliverable-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .deliverable-action {
    align-self: stretch;
  }
  
  .download-btn {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .pd-tag,
  .pd-head {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .deliverables-section {
    padding: 15px;
    margin: 20px 0;
  }
  
  .deliverable-item {
    padding: 15px;
  }
  
  .star {
    width: 25px;
    height: 25px;
  }
  
  .existing-review {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .project-detail-wrapper {
    padding: 40px 0;
  }
  
  .deliverables-section h3 {
    font-size: var(--font-regular);
  }
  
  .review-section h3 {
    font-size: var(--font-regular);
  }
  
  .review-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .star {
    width: 22px;
    height: 22px;
  }
  
  .custom-btn.secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .project-detail-wrapper {
    padding: 0;
    background: white;
  }
  
  .back-button,
  .pd-bid,
  .custom-btn {
    display: none;
  }
  
  .profile-edit-block,
  .review-content,
  .deliverables-section,
  .existing-review {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .star {
    cursor: default;
  }
}