/* Modern Review Display Styles */
.review-display {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: all 0.2s ease-in-out;
  border: 1px solid #f0f0f0;
}

.review-display:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Review Summary Card */
.review-summary {
  background: #1b437b;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27, 67, 123, 0.15);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-content {
  max-width: 400px;
  margin: 0 auto;
}

.summary-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: white;
  opacity: 0.95;
}

.summary-rating {
  margin-bottom: 16px;
}

.rating-number {
  font-size: 4rem;
  font-weight: 700;
  color: #ee7b22;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.summary-stars .star {
  width: 24px;
  height: 24px;
  color: #f59e0b;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.total-reviews {
  font-size: 16px;
  font-weight: 500;
  color: white;
  opacity: 0.9;
}

/* Filter Controls Styling */
.filter-controls {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.custom-date-group {
  display: none; /* Hidden by default, shown when custom is selected */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-date-group.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.filter-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.filter-select,
.filter-date {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #374151;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-select:focus,
.filter-date:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #ee7b22, #d65a1a);
  color: white;
  box-shadow: 0 2px 4px rgba(238, 123, 34, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(238, 123, 34, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.results-count {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin-left: auto;
}

/* Review Header Section */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reviewer-name {
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.reviewer-name:hover {
  color: #1d4ed8 !important;
}

.location-name {
  margin-right: 12px;
}

/* Business Location Badge */
.badge-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  float: right !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.badge-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Review Body Content */
.review-body {
  margin-top: 16px;
}

.review-link {
  text-decoration: none;
  color: inherit;
}

.review-time {
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #6b7280;
  padding-top: 8px;
  margin-bottom: 12px;
  font-weight: 400;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  padding-top: 8px;
  margin: 0;
  font-weight: 400;
}

/* Star Rating Display */
.star-div {
  padding-top: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  transition: transform 0.2s ease;
}

.star:hover {
  transform: scale(1.1);
}

/* Pagination Controls */
#pagination-controls {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#pagination-controls button {
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #374151;
  padding: 10px 16px;
  margin: 0 4px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pagination-controls button:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#pagination-controls button:active {
  transform: translateY(0);
}

/* Active page button */
#pagination-controls button[style*="background-color: #1b437b"] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: white !important;
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Ellipsis styling */
#pagination-controls span {
  color: #6b7280;
  padding: 0 8px;
  font-weight: 500;
}

/* No reviews message */
.no-reviews {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.no-reviews p {
  margin: 8px 0;
  font-size: 16px;
}

.no-reviews p:first-child {
  font-weight: 600;
  color: #374151;
  font-size: 18px;
}

/* Disabled pagination buttons */
#pagination-controls button:disabled {
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

#pagination-controls button:disabled:hover {
  background-color: #f3f4f6 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filter-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results-count {
    margin-left: 0;
    text-align: center;
  }
  
  .custom-date-group.visible {
    animation: slideDown 0.3s ease;
  }
  
  .review-summary {
    padding: 24px 20px;
  }
  
  .rating-number {
    font-size: 3rem;
  }
  
  .summary-title {
    font-size: 18px;
  }
  
  .review-display {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .badge-success {
    float: none !important;
    display: inline-block;
    margin-bottom: 12px;
  }
  
  #pagination-controls button {
    padding: 8px 12px;
    margin: 0 2px;
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .star {
    width: 16px;
    height: 16px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .filter-controls {
    padding: 20px;
  }
  
  .review-summary {
    padding: 20px 16px;
  }
  
  .rating-number {
    font-size: 2.5rem;
  }
  
  .summary-title {
    font-size: 16px;
  }
  
  .review-display {
    padding: 16px;
  }
  
  #pagination-controls button {
    padding: 6px 10px;
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .reviewer-name {
    font-size: 15px;
  }
  
  .review-text {
    font-size: 14px;
  }
}
 