/* ============================================
   SG SEO Rating Module - Styles v2.0
   Clean, minimal, professional rating system
   ============================================ */

/* --- Title --- */
.sg-seo-rating-title {
  font-size: 1.05em;
  margin-bottom: 8px;
  color: #333;
}

/* --- Stars Container --- */
.sg-seo-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- Star Wrapper (positioned container for star + number) --- */
.sg-seo-rating-stars .star-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* --- Star Image --- */
.sg-seo-rating-stars .star-wrapper .star {
  width: 100%;
  height: 100%;
  display: block;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

/* --- Number Inside Star --- */
.sg-seo-rating-stars .sg-seo-rating-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  line-height: 1;
  color: #b0b0b0;
  margin-top: 2px;
  pointer-events: none;
  transition: color 0.2s ease;
  user-select: none;
}

/* Number: Active (gold) */
.sg-seo-rating-stars .sg-seo-rating-number.active {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Number: Inactive (muted) */
.sg-seo-rating-stars .sg-seo-rating-number.inactive {
  color: #c5c5c5;
}

/* --- Rated State --- */
.sg-seo-rating-wrapper.rated .star-wrapper {
  cursor: default;
}

/* --- Hover: Scale star image --- */
.sg-seo-rating-wrapper:not(.rated):not(.processing) .star-wrapper:hover .star {
  transform: scale(1.15);
}

/* --- Summary & Message --- */
.sg-seo-rating-summary {
  margin-top: 6px;
  font-size: 0.9em;
  color: #555;
}

.sg-seo-rating-summary__average strong {
  color: #333;
}

.sg-seo-rating-summary__count {
  margin-left: 4px;
  font-size: 0.85em;
  color: #888;
}

/* --- Success / Error --- */
.sg-seo-rating-success {
  color: #227122;
  font-size: 0.9em;
}

.sg-seo-rating-error {
  color: #d63638;
  font-size: 0.9em;
}

.sg-seo-rating-success-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* --- Loader --- */
.sg-seo-rating-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-top-color: #555;
  border-radius: 50%;
  animation: sg-seo-rating-spin 0.7s linear infinite;
}

@keyframes sg-seo-rating-spin {
  to {
    transform: rotate(360deg);
  }
}
