/* =============================================
   Wedding Venue Reviews - Modern UI/UX Styles
   ============================================= */

/* === Container === */
.wvr-container {
  /* max-width: 800px; */
  margin: 0 auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

.wvr-container *,
.wvr-container *::before,
.wvr-container *::after {
  box-sizing: border-box;
}

/* === Rating Summary === */
.wvr-summary {
  display: flex;
  gap: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid #fde68a;
}

.wvr-summary-score {
  text-align: center;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wvr-big-score {
  font-size: 48px;
  font-weight: 800;
  color: #92400e;
  line-height: 1;
  margin-bottom: 6px;
}

.wvr-summary-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}

.wvr-total-reviews {
  font-size: 14px;
  color: #78716c;
  font-weight: 500;
}

.wvr-summary-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.wvr-breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wvr-breakdown-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #57534e;
  min-width: 36px;
  justify-content: flex-end;
}

.wvr-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  overflow: hidden;
}

.wvr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.wvr-breakdown-count {
  font-size: 13px;
  font-weight: 600;
  color: #78716c;
  min-width: 24px;
}

/* === Stars === */
.wvr-star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wvr-star-lg {
  width: 22px;
  height: 22px;
}

.wvr-star-sm {
  width: 13px;
  height: 13px;
}

.wvr-star-filled {
  color: #f59e0b;
}

.wvr-star-half {
  color: #fbbf24;
}

.wvr-star-empty {
  color: #d1d5db;
}

/* === Buttons === */
.wvr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}

.wvr-btn-icon {
  width: 18px;
  height: 18px;
}

.wvr-btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.wvr-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.wvr-btn-submit {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  padding: 12px 28px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.wvr-btn-submit:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.wvr-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.wvr-btn-cancel {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 12px 28px;
  font-size: 15px;
}

.wvr-btn-cancel:hover {
  background: #f3f4f6;
  color: #374151;
}

.wvr-btn-outline {
  background: #ffffff;
  color: #4f46e5;
  border: 2px solid #c7d2fe;
  padding: 10px 24px;
}

.wvr-btn-outline:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: #4338ca;
}

/* === Form === */
.wvr-form-section {
  margin-bottom: 28px;
}

.wvr-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wvr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.wvr-form-group {
  margin-bottom: 20px;
}

.wvr-form-grid .wvr-form-group {
  margin-bottom: 0;
}

.wvr-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.wvr-required {
  color: #ef4444;
}

.wvr-input,
.wvr-textarea,
.wvr-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  transition: all 0.2s ease;
  outline: none;
}

.wvr-input:focus,
.wvr-textarea:focus,
.wvr-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.wvr-textarea {
  resize: vertical;
  min-height: 100px;
}

.wvr-hint {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.wvr-char-count {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.wvr-char-warning {
  color: #ef4444;
  font-weight: 600;
}

/* === Star Rating Input === */
.wvr-star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wvr-rating-star {
  width: 32px;
  height: 32px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wvr-rating-star.active {
  color: #f59e0b;
}

.wvr-rating-star.hover {
  color: #fbbf24;
  transform: scale(1.15);
}

.wvr-rating-star:hover {
  transform: scale(1.15);
}

.wvr-rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-left: 10px;
}

/* === Form Actions === */
.wvr-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 0;
}

/* === Messages === */
.wvr-message {
  margin-top: 16px;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wvr-message:not(:empty) {
  padding: 12px 16px;
}

.wvr-msg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wvr-msg-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wvr-msg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wvr-msg-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* === Spinner === */
.wvr-spinner {
  width: 18px;
  height: 18px;
  animation: wvr-spin 0.8s linear infinite;
}

@keyframes wvr-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wvr-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === Filters === */
.wvr-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wvr-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wvr-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.wvr-select {
  width: auto;
  min-width: 150px;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825a.5.5 0 01-.354-.146l-3.5-3.5a.5.5 0 01.708-.708L6 7.618l3.146-3.147a.5.5 0 01.708.708l-3.5 3.5A.5.5 0 016 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* === Review Cards === */
.wvr-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wvr-review-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wvr-review-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.wvr-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.wvr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.wvr-reviewer-info {
  flex: 1;
  min-width: 0;
}

.wvr-reviewer-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.wvr-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wvr-stars {
  display: flex;
  gap: 1px;
}

.wvr-review-date {
  font-size: 13px;
  color: #9ca3af;
}

.wvr-review-content {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 10px;
}

.wvr-review-venue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
}

.wvr-venue-icon {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

/* === No Reviews === */
.wvr-no-reviews {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}

.wvr-no-reviews-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #d1d5db;
}

.wvr-no-reviews p {
  font-size: 15px;
  margin: 0;
}

/* === Load More === */
.wvr-load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* === Responsive === */
@media (max-width: 640px) {
  .wvr-summary {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .wvr-summary-score {
    min-width: auto;
  }

  .wvr-big-score {
    font-size: 40px;
  }

  .wvr-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wvr-form-grid .wvr-form-group {
    margin-bottom: 20px;
  }

  .wvr-form {
    padding: 20px;
  }

  .wvr-form-actions {
    flex-direction: column;
  }

  .wvr-form-actions .wvr-btn {
    width: 100%;
    justify-content: center;
  }

  .wvr-filters {
    flex-direction: column;
    gap: 10px;
  }

  .wvr-filter-group {
    width: 100%;
  }

  .wvr-select {
    flex: 1;
  }

  .wvr-review-card {
    padding: 16px;
  }

  .wvr-rating-star {
    width: 28px;
    height: 28px;
  }
}