/* Live Reviews Plugin Styles */

.live-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #00197d 0%, #eb8bcb 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.live-reviews-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.live-reviews-container > * {
  position: relative;
  z-index: 1;
}

/* Header Styles */
.lr-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.lr-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lr-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  color: white;
  font-weight: 500;
  margin-bottom: 20px;
}

.lr-live-dot {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  animation: lr-pulse 2s infinite;
}

@keyframes lr-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Stats Bar */
.lr-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.lr-stat-item {
  text-align: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
  transition: transform 0.3s ease;
}

.lr-stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 215, 0, 0.1);
}

.lr-stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ffd700;
}

/* Rating Distribution */
.lr-rating-distribution {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lr-rating-distribution h3 {
  color: white;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
}

.lr-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lr-rating-label {
  color: white;
  min-width: 25px;
  font-weight: 500;
}

.lr-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.lr-bar-fill {
  height: 100%;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 4px;
  transition: width 2s ease;
}

.lr-bar-count {
  color: white;
  min-width: 40px;
  text-align: right;
  font-weight: 500;
}

/* Reviews Grid */
.lr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.lr-review-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 25, 125, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: lr-slideIn 0.6s ease forwards;
}

.lr-review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 25, 125, 0.2);
  border-color: #eb8bcb;
}

@keyframes lr-slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lr-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.lr-reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lr-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00197d, #eb8bcb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.lr-reviewer-name {
  font-weight: 600;
  color: #00197d;
}

.lr-review-time {
  color: #666;
  font-size: 0.9rem;
}

.lr-stars {
  display: flex;
  gap: 2px;
}

.lr-star {
  color: #ffd700;
  font-size: 1.2rem;
}

.lr-star.empty {
  color: #ddd;
}

.lr-review-text {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.lr-review-actions {
  display: flex;
  gap: 15px;
}

.lr-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  background: rgba(0, 25, 125, 0.1);
  color: #00197d;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lr-action-btn:hover {
  background: rgba(0, 25, 125, 0.2);
  transform: scale(1.05);
}

.lr-action-btn.liked {
  background: rgba(235, 139, 203, 0.2);
  color: #eb8bcb;
}

/* Review Form */
.lr-review-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}

.lr-review-form-container h3 {
  color: #00197d;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.lr-form-group {
  margin-bottom: 20px;
}

.lr-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #00197d;
  font-weight: 500;
}

.lr-form-group input,
.lr-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(0, 25, 125, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.lr-form-group input:focus,
.lr-form-group textarea:focus {
  outline: none;
  border-color: #eb8bcb;
}

.lr-rating-input {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.lr-rating-star {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lr-rating-star:hover,
.lr-rating-star.active {
  color: #ffd700;
}

.lr-submit-btn {
  background: linear-gradient(45deg, #00197d, #eb8bcb);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lr-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 25, 125, 0.3);
}

.lr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* New Review Alert */
.lr-new-review-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #00197d;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  transition: transform 0.5s ease;
  z-index: 1000;
  font-weight: 600;
}

.lr-new-review-alert.show {
  transform: translateX(0);
}

/* Loading States */
.lr-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: white;
}

.lr-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: lr-spin 1s linear infinite;
}

@keyframes lr-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .live-reviews-container {
    padding: 15px;
  }

  .lr-title {
    font-size: 2rem;
  }

  .lr-stats-bar {
    gap: 20px;
  }

  .lr-reviews-grid {
    grid-template-columns: 1fr;
  }

  .lr-review-card {
    padding: 20px;
  }

  .lr-review-form-container {
    padding: 20px;
  }

  .lr-new-review-alert {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }

  .lr-new-review-alert.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .lr-stats-bar {
    flex-direction: column;
    align-items: center;
  }

  .lr-review-actions {
    flex-wrap: wrap;
  }

  .lr-rating-input {
    justify-content: center;
  }
}
