/**
 * Google GMB Reviews Styles
 */

.gmb-reviews-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  max-width: 100%;
  margin: 0 auto;
}

.gmb-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gmb-review-item {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.gmb-review-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gmb-review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.gmb-stars {
  display: flex;
  gap: 2px;
}

.gmb-star {
  font-size: 18px;
  line-height: 1;
}

.gmb-star-filled {
  color: #ffc107;
}

.gmb-star-empty {
  color: #e0e0e0;
}

.gmb-rating-text {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.gmb-review-comment {
  margin-bottom: 15px;
}

.gmb-review-comment blockquote {
  margin: 0;
  padding: 0;
  border-left: 3px solid #007cba;
  padding-left: 15px;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.gmb-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.gmb-review-author,
.gmb-review-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gmb-icon-user::before {
  content: "👤";
}

.gmb-icon-calendar::before {
  content: "📅";
}

.gmb-review-reply {
  background: #f8f9fa;
  border-left: 3px solid #28a745;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.gmb-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.gmb-reply-header strong {
  color: #28a745;
}

.gmb-reply-date {
  color: #666;
  font-size: 12px;
}

.gmb-reply-content {
  color: #555;
  line-height: 1.5;
}

.gmb-reviews-footer {
  margin-top: 20px;
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.gmb-reviews-note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.gmb-no-reviews {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Widget specific styles */
.gmb-reviews-widget-content .gmb-review-item {
  padding: 15px;
  margin-bottom: 15px;
}

.gmb-reviews-widget-content .gmb-review-comment blockquote {
  font-size: 14px;
  line-height: 1.4;
}

.gmb-reviews-widget-content .gmb-review-meta {
  font-size: 12px;
  gap: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .gmb-review-item {
    padding: 15px;
  }

  .gmb-review-meta {
    flex-direction: column;
    gap: 8px;
  }

  .gmb-reply-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Loading state */
.gmb-reviews-loading {
  text-align: center;
  padding: 40px 20px;
}

.gmb-reviews-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007cba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error state */
.gmb-reviews-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* Success state */
.gmb-reviews-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  text-align: center;
}
