﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GMN Rating System Styles
   Version: 1.0 | March 2026
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Rating Widget Container â”€â”€ */
.gmn-rating-widget {
  background: linear-gradient(135deg, rgba(20,20,30,0.95) 0%, rgba(30,25,40,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
  backdrop-filter: blur(10px);
  max-width: 720px;
}

/* â”€â”€ Header: Big number + stars + distribution â”€â”€ */
.gmn-rating-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gmn-rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.gmn-rating-big-number {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.gmn-rating-count {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* â”€â”€ Stars â”€â”€ */
.gmn-stars {
  display: flex;
  gap: 2px;
}

.gmn-star {
  font-size: 22px;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}

.gmn-star-filled {
  color: #f59e0b;
}

.gmn-stars-interactive .gmn-star {
  cursor: pointer;
  font-size: 32px;
  padding: 2px;
}

.gmn-stars-interactive .gmn-star:hover,
.gmn-star-hover {
  color: #fbbf24 !important;
  transform: scale(1.2);
}

/* â”€â”€ Distribution bars â”€â”€ */
.gmn-rating-dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gmn-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmn-dist-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  min-width: 28px;
  text-align: right;
}

.gmn-dist-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.gmn-dist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e63946);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.gmn-dist-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  min-width: 24px;
}

.gmn-rating-empty {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-style: italic;
}

/* â”€â”€ User rating form â”€â”€ */
.gmn-user-rating-section {
  margin-top: 20px;
}

.gmn-rating-form-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.gmn-rating-review {
  width: 100%;
  min-height: 80px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gmn-rating-review:focus {
  outline: none;
  border-color: #f59e0b;
}

.gmn-rating-review::placeholder {
  color: rgba(255,255,255,0.3);
}

.gmn-rating-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.gmn-rating-submit {
  background: linear-gradient(135deg, #f59e0b, #e63946);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.gmn-rating-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gmn-rating-delete {
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.gmn-rating-delete:hover {
  color: #e63946;
  border-color: #e63946;
}

/* â”€â”€ Feedback messages â”€â”€ */
.gmn-rating-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  min-height: 20px;
}

.gmn-rating-success { color: #10b981; }
.gmn-rating-error   { color: #e63946; }

/* â”€â”€ Login prompt â”€â”€ */
.gmn-rating-login-prompt {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.gmn-rating-login-prompt p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 0;
}

.gmn-rating-login-link {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
}

.gmn-rating-login-link:hover {
  text-decoration: underline;
}

/* â”€â”€ Reviews section â”€â”€ */
.gmn-reviews-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.gmn-reviews-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
}

.gmn-review-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.gmn-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gmn-review-user {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.gmn-review-date {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.gmn-review-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 8px 0 0 0;
  line-height: 1.5;
}

/* â”€â”€ Browse card rating badge â”€â”€ */
.gmn-card-rating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 640px) {
  .gmn-rating-widget {
    padding: 20px 16px;
    margin: 20px 0;
  }

  .gmn-rating-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .gmn-rating-summary {
    flex-direction: row;
    gap: 16px;
  }

  .gmn-rating-big-number {
    font-size: 36px;
  }

  .gmn-rating-dist {
    width: 100%;
  }

  .gmn-stars-interactive .gmn-star {
    font-size: 28px;
  }

  .gmn-rating-form-actions {
    flex-direction: column;
  }
}
