/* UX Game Review - Dark Mode Styles */

.ux-game-review-container {
  max-width: 100%;
  margin: 40px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Section Titles */
.ux-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fs-color-secondary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ececec0f;
}

/* Review Form Section */
.ux-review-form-section {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #ececec0f;
}

/* Notices */
.ux-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.ux-notice-info {
  background: rgba(94, 196, 255, 0.1);
  border: 1px solid rgba(94, 196, 255, 0.3);
  color: var(--fs-color-secondary);
}

.ux-notice-warning {
  background: rgba(255, 193, 94, 0.1);
  border: 1px solid rgba(255, 193, 94, 0.3);
  color: #ffc15e;
}

.ux-notice-success {
  background: rgba(94, 255, 158, 0.1);
  border: 1px solid rgba(94, 255, 158, 0.3);
  color: #5eff9e;
}

.ux-notice a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.ux-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
}

/* Form Styles */
.ux-review-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ux-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ux-label {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

/* Star Rating - New Structure */
.ux-star-rating {
  display: flex;
  gap: 8px;
  position: relative;
}

.ux-star-rating input[type="hidden"] {
  display: none;
}

.ux-star-rating label {
  font-size: 32px;
  color: var(--fs-color-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  order: 0;
}

.ux-star-rating label[data-value="1"] { order: 1; }
.ux-star-rating label[data-value="2"] { order: 2; }
.ux-star-rating label[data-value="3"] { order: 3; }
.ux-star-rating label[data-value="4"] { order: 4; }
.ux-star-rating label[data-value="5"] { order: 5; }

.ux-star-rating label.hover {
  color: var(--fs-color-secondary);
  transform: scale(1.1);
}

.ux-star-rating label.selected {
  color: var(--fs-color-secondary);
}

/* Textarea */
.ux-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0f1419;
  border: 1px solid #364153;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
  min-height: 86px;
  max-height: 86px;
  height: 86px;
}

.ux-no-reviews p {
  color: #99a1af;
}

.ux-textarea:focus {
  outline: none;
  border-color: var(--fs-color-secondary);
  box-shadow: 0 0 0 3px rgba(94, 196, 255, 0.1);
  background-color: #0f1419 !important; color: #64748b;
}

.ux-textarea::placeholder {
  color: #64748b;
}

/* Button */
.ux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.ux-btn-primary {
  background: var(--fs-color-secondary);
  color: #fff;
  text-transform: inherit;
  padding: 12px 24px;
}

.ux-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(94, 196, 255, 0.4);
  opacity: 0.9;
}

.ux-btn-primary:active {
  transform: translateY(0);
}

.ux-btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.ux-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Review List Section */
.ux-review-list-section {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #ececec0f;
}

.ux-review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Review Item */
.ux-review-item {
  background: #0f1419;
  border: 1px solid #364153;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.ux-review-item:hover {
  border-color: var(--fs-color-secondary);
  box-shadow: 0 4px 12px rgba(94, 196, 255, 0.1);
}

.ux-review-header {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
}

.ux-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fs-color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ux-review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ux-review-author {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.ux-review-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ux-review-stars {
  display: flex;
  gap: 2px;
}

.ux-star {
  font-size: 16px;
  color: #364153;
}

.ux-star.active {
  color: var(--fs-color-secondary);
}

.ux-review-date {
  font-size: 13px;
  color: #64748b;
}

.ux-review-content {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.ux-review-content p {
  margin: 0;
}

/* No Reviews */
.ux-no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.ux-no-reviews-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  stroke-width: 1.5;
  opacity: 0.5;
}

.ux-no-reviews p {
  font-size: 15px;
  margin: 0;
}

/* Loading State */
.ux-loading {
  opacity: 0.6;
  pointer-events: none;
}

.ux-btn.ux-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ux-spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes ux-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ux-review-form-section,
  .ux-review-list-section {
    padding: 20px;
  }
  
  .ux-section-title {
    font-size: 18px;
  }
  
  .ux-star-rating label {
    font-size: 28px;
  }
  
  .ux-review-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .ux-review-author {
    font-size: 15px;
  }
  
  .ux-btn {
    width: 100%;
  }
}