/* Rhapsody Voting Widget Styles */
.voting-widget-container {
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.voting-widget-heading {
  color: #1d4ed8;
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 52px;
  margin-bottom: 0;
}

.voting-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rating-text {
  color: #45556c;
  text-edge: cap;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 52px;
}

.current-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-number {
  color: #04975f;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 52px;
}

.rating-stars .stars {
  display: flex;
  gap: 5px;
  font-size: 1.5em;
}

.star {
  display: inline-block;
  line-height: 1;
  position: relative;
}

.star-full {
  color: #ffb900;
}

.star-full::before {
  content: "★";
  font-size: inherit;
}

.star-half {
  position: relative;
  display: inline-block;
  min-width: 24px;
}

.star-half .star-empty {
  color: #ddd;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.star-half .star-empty::before {
  content: "★";
  font-size: inherit;
}

.star-half .star-full {
  color: #ffb900;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  width: 12px;
}

.star-half .star-full::before {
  content: "★";
  font-size: inherit;
}

.star-empty {
  color: #ddd;
}

.star-empty::before {
  content: "★";
  font-size: inherit;
}

.vote-count {
	color: #45556C;
	text-edge: cap;
	font-family: "Inter", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 52px;
}

/* Voting Interface */
.voting-interface {
  margin-top: 24px;
}

.voting-subheading {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 0;
}

.vote-stars-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.vote-star {
  font-size: 40px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  display: inline-block;
}

.vote-star::before {
  content: "★";
  font-size: inherit;
}

.vote-star:hover,
.vote-star.active,
.vote-star.hover-active {
  color: #ffb900;
  transform: scale(1.2);
}

.vote-message {
  min-height: 30px;
  margin-top: 15px;
  font-size: 1em;
}

.vote-message.success {
  color: #28a745;
  font-weight: 600;
}

.vote-message.error {
  color: #dc3545;
  font-weight: 600;
}

/* Vote Status */
.vote-status-message {
}

.vote-submitted-message {
  font-size: 1.1em;
  margin: 0 0 15px;
  color: #333;
}

.vote-submitted-message strong {
  display: block;
  margin-bottom: 10px;
  color: #2557a7;
}

.user-rating-number {
  display: inline-block;
  margin-left: 10px;
  font-weight: 700;
  color: #333;
}

/* Login Required Message */
.login-required-message {
}

.login-required-message p {
  margin: 0;
  color: #856404;
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .voting-widget-container {
    padding: 25px;
  }

  .voting-widget-heading {
    font-size: 2em;
  }

  .rating-number {
    font-size: 2.5em;
  }

  .vote-star {
    font-size: 32px;
  }

  .voting-stats {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .voting-widget-container {
    padding: 20px;
  }

  .voting-widget-heading {
    font-size: 1.5em;
  }

  .rating-number {
    font-size: 2em;
  }

  .vote-star {
    font-size: 28px;
    gap: 5px;
  }

  .vote-stars-container {
    gap: 5px;
  }
}
