/* Review System Styles - Consistent with Media Upload */

/* Review Modal */
.review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.review-modal-content {
  background: linear-gradient(135deg, #2a1a4a 0%, #1a1333 100%);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.review-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.review-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.review-modal-header h2 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.review-modal-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* Review Steps */
.review-step {
  animation: fadeIn 0.3s ease;
}

.step-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-icon i {
  font-size: 4rem;
  color: #946fe3;
}

/* Discord Auth Step */
#review-discord-auth {
  width: 100%;
  padding: 1rem 2rem;
  background: #5865F2;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#review-discord-auth:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

#review-discord-auth i {
  font-size: 1.5rem;
}

/* Review Form */
.review-form-group {
  margin-bottom: 1.25rem;
}

.review-form-group label {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.review-username-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(148, 111, 227, 0.2);
  border-radius: 8px;
  color: #946fe3;
  font-weight: 600;
}

.review-username-display i {
  font-size: 1.2rem;
}

#review-text {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#review-text:focus {
  outline: none;
  border-color: #946fe3;
  background: rgba(255, 255, 255, 0.08);
}

#review-text::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: 2rem;
  margin: 0.5rem 0 1rem 0;
}

.star-rating .star {
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: #FFD700;
  transform: scale(1.1);
}

/* Submit Button */
#submit-review-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6c47a6 0%, #946fe3 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

#submit-review-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 71, 166, 0.4);
}

#submit-review-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Step */
.success-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-icon i {
  font-size: 4rem;
  color: #4CAF50;
}

.success-message {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

/* Error Message */
#review-error {
  display: none;
  padding: 1rem;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 8px;
  color: #ff6b6b;
  margin-bottom: 1rem;
  text-align: center;
}

/* Reviews Container */
.reviews-section {
  margin-top: 2rem;
}

.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(148, 111, 227, 0.1);
  border-radius: 12px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #946fe3;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

#reviews-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Review Card */
.review-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.review-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.review-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-username {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.review-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-rating {
  color: #FFB800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.delete-review-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.delete-review-btn:hover {
  background: rgba(244, 67, 54, 0.25);
  border-color: rgba(244, 67, 54, 0.5);
}

.delete-review-btn:active {
  transform: scale(0.95);
}

/* Loading State */
#reviews-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.reviews-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(148, 111, 227, 0.2);
  border-top-color: #946fe3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#reviews-loading p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Empty State */
#reviews-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

#reviews-empty i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

#reviews-empty h3 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

#reviews-empty p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Load More Reviews */
#load-more-reviews-container {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 2rem;
}

#load-more-reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #6c47a6 0%, #946fe3 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 71, 166, 0.4);
}

#load-more-reviews-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 71, 166, 0.6);
}

#load-more-reviews-btn i {
  font-size: 1.2rem;
}

.load-more-reviews-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.load-more-reviews-info span {
  color: #946fe3;
  font-weight: 600;
}

/* Add Review Button in Header */
.add-review-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #d4a84a;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(212, 168, 74, 0.3);
}

.add-review-button:hover {
  background: #c99940;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 74, 0.5);
}

.add-review-button i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .review-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .review-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .star-rating {
    font-size: 2rem;
  }
  
  .reviews-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  #load-more-reviews-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
