/* Book Detail Page Styles */

.book-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #fff;
}

/* Header */
.book-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.book-detail-title {
  font-family: 'Roboto Slab', serif;
  font-size: 32px;
  font-weight: 600;
  color: #9B7EBD;
  margin: 0 0 1rem 0;
}

/* Rating Summary */
.book-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.book-rating-summary .rating-stars {
  color: #FFD700;
  font-size: 20px;
  letter-spacing: 2px;
}

.book-rating-summary .rating-text {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.book-rating-summary .rating-count {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #666;
}

.book-rating-summary.no-ratings .rating-text {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  font-style: italic;
}

/* Main Content Grid - 3 Columns */
.book-detail-content {
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Book Cover Column */
.book-cover-column {
  text-align: center;
  position: relative;
  width: 250px;
}

.book-cover-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Rating Badge on Book Cover */
.book-rating-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #FFD700;
  color: #000;
  padding: 0;
  min-width: 38px;
  height: 20px;
  justify-content: center;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 10;
  line-height: 1;
}

.rating-star-icon {
  color: #000;
  font-size: 12px;
  line-height: 1;
}

.rating-value {
  color: #000;
  line-height: 1;
}

.book-cover-placeholder {
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
  border: 2px dashed #E0E0E0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.book-cover-placeholder p {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #999;
  font-style: italic;
  margin: 0;
}

/* Description Column */
.book-description-column {
}

.section-label {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.book-description {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
  background: #C8E6C9; /* Light green background */
  padding: 1.5rem;
  text-align: center;
}

/* Buy and Share Buttons */
.book-action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.buy-amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  background: #FFD700;
  color: #333;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
  border: none;
}

.buy-amazon-btn:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.buy-amazon-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buy-amazon-btn .btn-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #FFD700;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.share-btn:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 213, 79, 0.5);
}

.share-btn svg {
  width: 24px;
  height: 24px;
}

/* Action Buttons Column */
.book-actions-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #FFFACD; /* Light yellow background */
  border: 2px dashed #333; /* Dotted/dashed border */
  border-radius: 12px;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: none;
}

.btn-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E8F4F8;
  flex-shrink: 0;
}

.action-btn .btn-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.btn-text-multiline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.text-line-1,
.text-line-2 {
  display: block;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #666;
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #F5F5F5;
  border-color: #CCCCCC;
}

.action-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #CCCCCC;
}

.read-later-btn,
.already-read-btn,
.books-btn {
  background: #FFFACD;
  color: #000;
}

/* More Details Section */
.book-more-details {
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #E0E0E0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.detail-card-link {
  text-decoration: none;
  color: inherit;
}

.detail-card:hover {
  border-color: #9B7EBD;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 126, 189, 0.2);
}

.detail-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}

.detail-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.detail-label {
  font-family: 'Roboto Slab', serif;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.detail-value {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  line-height: 1.3;
}

.detail-value a {
  color: #333;
  text-decoration: none;
}

.detail-value a:hover {
  color: #9B7EBD;
}

/* Tags Section */
.book-tags-section {
  margin-bottom: 3rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag-item {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #F5E6D3;
  color: #333;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #E8D4B8;
}

.tag-item:hover {
  background: #E8D4B8;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reviews Section */
.book-reviews-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: transparent; /* Remove gray background */
  border-radius: 0;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.write-review-btn {
  padding: 0.8rem 1.5rem;
  background: #FFD54F;
  color: #333;
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.write-review-btn:hover {
  background: #FFC107;
  transform: translateY(-2px);
}

.no-reviews {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 2rem;
}

/* Recommendations Section */
.book-recommendations-section {
  margin-bottom: 2rem;
}

.recommendations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.recommendation-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recommendation-cover {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.recommendation-cover img,
.recommendation-placeholder {
  width: 100%;
  height: auto;
  display: block;
}

.recommendation-placeholder {
  background: #F3F6FA;
  color: #6B7A8C;
  text-align: center;
  padding: 2.5rem 1rem;
  font-weight: 600;
}

.recommendation-card:hover .recommendation-cover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.recommendation-title {
  margin-top: 0.6rem;
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  text-align: center;
  color: #2C3E50;
}

.recommendation-cover .book-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #2C3E50;
  font-size: 12px;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 968px) {
  .book-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-actions-column {
    flex-direction: row;
    justify-content: center;
  }

  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .recommendations-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 576px) {
  .book-detail-page {
    padding: 2rem 1rem;
  }

  .book-actions-column {
    flex-direction: column;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* Reviews Section Styling */
.book-reviews-section {
  margin-top: 3rem;
}

/* Reviews Header with Decorative Lines */
.reviews-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.reviews-button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.reviews-title {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0;
  position: relative;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.reviews-title::before,
.reviews-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #000;
}

.write-review-btn {
  background: #FFFACD;
  color: #000;
  border: 2px solid #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.write-review-icon-left,
.write-review-icon-right {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.write-review-text {
  flex-shrink: 0;
}

.write-review-btn svg {
  width: 18px;
  height: 18px;
  display: none; /* Hide old SVG icons */
}

.write-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: #FFF8DC;
}

/* Ensure button element has same styling as link */
button.write-review-btn {
  background: #FFFACD;
  color: #000;
  border: 2px solid #000;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

/* Review Card */
.review-card {
  background: #FFFACD; /* Light yellow background */
  border-radius: 12px;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 280px; /* Make card longer */
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Avatar peeking out of the card */
.review-avatar {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Slab', serif;
  font-size: 32px;
  font-weight: 700;
  color: #9B7EBD;
  background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
}

/* Card Content */
.review-card-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Book review node page */
.book-review-page {
  max-width: 1000px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.book-review-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.book-review-cover {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.book-review-cover-img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.book-review-cover-placeholder {
  width: 220px;
  height: 320px;
  border-radius: 16px;
  background: #F3F6FA;
  color: #6B7A8C;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
}

.book-review-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-review-title {
  font-family: 'Roboto Slab', serif;
  font-size: 32px;
  margin: 0;
  color: #2C3E50;
}

.book-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
}

.book-review-rating .star {
  color: #FFD700;
  font-size: 20px;
}

.book-review-text {
  font-size: 16px;
  line-height: 1.6;
  color: #2C3E50;
  margin: 0;
}

@media (max-width: 768px) {
  .book-review-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-review-cover-img,
  .book-review-cover-placeholder {
    width: 180px;
    height: 260px;
  }
}

.book-reviews-section .review-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #B8B5E8;
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-family: 'Roboto Slab', serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.book-reviews-section .review-rating .star-icon {
  color: #000;
  font-size: 16px;
  line-height: 1;
}

.book-reviews-section .review-rating .rating-value {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.review-text-wrapper {
  margin-bottom: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-text {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #000;
  line-height: 1.6;
  margin: 0;
  max-height: 120px; /* Approximately 5 lines of text */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #9B7EBD #F0E68C;
}

/* Webkit scrollbar styling */
.review-text::-webkit-scrollbar {
  width: 6px;
}

.review-text::-webkit-scrollbar-track {
  background: #F0E68C;
  border-radius: 10px;
}

.review-text::-webkit-scrollbar-thumb {
  background: #9B7EBD;
  border-radius: 10px;
}

.review-text::-webkit-scrollbar-thumb:hover {
  background: #8B6EAD;
}

.review-text.expanded {
  max-height: none;
}

.review-read-more {
  display: none; /* Hide read more link since we're using scroll */
  color: #FF6B6B;
  text-decoration: none;
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.review-read-more:hover {
  color: #E74C3C;
  text-decoration: underline;
}

.review-author {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-top: 0.5rem;
}

.review-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.review-date {
  font-family: 'Roboto Slab', serif;
  font-size: 12px;
  color: #666;
}

/* Review Share Button */
.review-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid #9B7EBD;
  color: #9B7EBD;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-family: 'Roboto Slab', serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-share-btn:hover {
  background: #9B7EBD;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(155, 126, 189, 0.3);
}

.review-share-btn svg {
  width: 16px;
  height: 16px;
}

.review-share-btn .share-text {
  font-size: 12px;
}

/* Copied feedback animation */
.review-share-btn.copied {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}

.review-share-btn.copied .share-text::after {
  content: ' ✓';
}

.no-reviews {
  background: #F5F5F5;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-family: 'Roboto Slab', serif;
  color: #666;
  font-size: 15px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 350px;
  border-left: 4px solid;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left-color: #4CAF50;
  color: #2C3E50;
  background: linear-gradient(135deg, #E8F5E9 0%, #C5E1A5 100%);
}

.toast-error {
  border-left-color: #F44336;
  color: #2C3E50;
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
}

.toast-info {
  border-left-color: #2196F3;
  color: #2C3E50;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

/* ==================== REVIEW FORM SECTION ==================== */

.review-form-section {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 2px solid #0EA5E9;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
}

.review-form-section h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  color: #0C4A6E;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* Remove the "Review: Book Title" that comes from the form */
.review-form-section .review-form-title {
  display: none;
}

/* Form styling */
.review-form-section .form-item {
  margin-bottom: 1.5rem;
}

.review-form-section label {
  display: block;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.review-form-section .form-required {
  color: #e53e3e;
}

.review-form-section select,
.review-form-section textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Roboto Slab', serif;
  transition: border-color 0.2s;
  background: white;
}

.review-form-section select:focus,
.review-form-section textarea:focus {
  outline: none;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.review-form-section textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.review-form-section .description {
  font-size: 13px;
  color: #666;
  margin-top: 0.25rem;
  font-style: italic;
}

.review-form-section .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(14, 165, 233, 0.2);
}

.review-form-section button[type="submit"],
.review-form-section .review-submit-btn {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: white;
  border: none;
  padding: 0.875rem 3rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-form-section button[type="submit"]:hover,
.review-form-section .review-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.review-form-section button[type="submit"]:active,
.review-form-section .review-submit-btn:active {
  transform: translateY(0);
}

/* ==================== CUSTOM SUCCESS MESSAGE ==================== */

.review-success-message {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 2px solid #10B981;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInDown 0.5s ease;
}

.review-success-message::before {
  content: '✓';
  font-size: 32px;
  color: #10B981;
  font-weight: bold;
  flex-shrink: 0;
}

.success-content strong {
  display: block;
  font-size: 18px;
  color: #065F46;
  margin-bottom: 0.25rem;
  font-family: 'Roboto Slab', serif;
}

.success-content p {
  margin: 0;
  color: #047857;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
}

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

/* ==================== LOGIN PROMPT ==================== */

.review-login-prompt {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.review-login-prompt p {
  margin: 0;
  font-size: 16px;
  color: #92400E;
  font-family: 'Roboto Slab', serif;
}

.review-login-prompt a {
  color: #D97706;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}

.review-login-prompt a:hover {
  color: #B45309;
}

/* ==================== ALREADY REVIEWED MESSAGE ==================== */

.review-already-submitted {
  background: #D1FAE5;
  border-left: 4px solid #10B981;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.review-already-submitted p {
  margin: 0;
  font-size: 16px;
  color: #065F46;
  font-weight: 500;
  font-family: 'Roboto Slab', serif;
}

/* ==================== FORM ERROR MESSAGE ==================== */

.review-form-error {
  background: #FEE2E2;
  border: 2px solid #EF4444;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: #991B1B;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 500;
}

/* ==================== WRITE A REVIEW BUTTON ==================== */

.review-action-section {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.review-action-section .write-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.3);
}

.review-action-section .write-review-btn:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FF7700 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.review-action-section .write-review-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(255, 165, 0, 0.3);
}

.review-action-section .write-review-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
  .review-form-section {
    padding: 1.5rem;
  }
  
  .review-form-section h3 {
    font-size: 20px;
  }
  
  .review-form-section button[type="submit"],
  .review-form-section .review-submit-btn {
    width: 100%;
    padding: 1rem;
  }
  
  .review-success-message {
    padding: 1rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .review-success-message::before {
    font-size: 40px;
  }
  
  .review-action-section .write-review-btn {
    font-size: 16px;
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 480px) {
  .review-form-section {
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .review-login-prompt,
  .review-already-submitted {
    padding: 1rem 1.5rem;
  }
  
  .review-action-section .write-review-btn {
    font-size: 15px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    justify-content: center;
  }
}
