/* Recommendation Feedback Styles */
/* Includes coin animation, feedback buttons, gradient modal, and success messages */

/* ============================================
   FEEDBACK BUTTONS
   ============================================ */

.recommendation-feedback-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Fix button positioning - prevent left cutoff */
  margin-left: 0;
  padding-left: 0;
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feedback-btn:active:not(:disabled) {
  transform: translateY(0);
}

.feedback-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.feedback-btn-positive {
  border-color: rgba(16, 185, 129, 0.3);
}

.feedback-btn-positive:hover:not(:disabled) {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.feedback-btn-negative {
  border-color: rgba(239, 68, 68, 0.3);
}

.feedback-btn-negative:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.feedback-btn.feedback-voted {
  border-width: 3px;
  font-weight: 600;
}

.feedback-btn-positive.feedback-voted {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.feedback-btn-negative.feedback-voted {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.feedback-icon {
  font-size: 18px;
  line-height: 1;
}

.feedback-label {
  font-size: 13px;
}

/* ============================================
   COIN ANIMATION ELEMENTS
   ============================================ */

.rdt-coin-container {
  position: fixed;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  /* Transparent background - no box, just the SVG coin */
  background: transparent !important;
  border: none !important;
  /* Shadow removed - SVG has its own internal shadow via filter */
  /* Allow SVG shadow to render outside container bounds */
  overflow: visible;
}

.rdt-coin-container svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ============================================
   BALANCE BADGE PULSE ANIMATION
   ============================================ */

.balance-pulse {
  animation: balance-pulse-effect 0.4s ease-out;
}

@keyframes balance-pulse-effect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   FEEDBACK MESSAGES (Toast notifications)
   ============================================ */

.feedback-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 300px;
}

.feedback-message-success {
  background: #10b981;
}

.feedback-message-warning {
  background: #f59e0b;
}

.feedback-message-error {
  background: #ef4444;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .feedback-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .feedback-icon {
    font-size: 16px;
  }
  
  .feedback-label {
    font-size: 12px;
  }
  
  .rdt-coin-container {
    width: 56px;
    height: 56px;
  }
  
  .feedback-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
  .recommendation-feedback-buttons {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  
  .feedback-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
  }
  
  .feedback-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ============================================
   GRADIENT REWARD MODAL (Green-to-Blue)
   Similar to Onboarding Modal
   ============================================ */

.feedback-reward-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feedback-reward-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.feedback-reward-modal-content {
  /* RidyFlow gradient: Green to Blue */
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
              0 0 100px rgba(16, 185, 129, 0.3);
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.feedback-reward-modal-overlay.show .feedback-reward-modal-content {
  transform: scale(1);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.feedback-reward-modal-inner {
  padding: 48px 32px;
  text-align: center;
  color: white;
}

.reward-coin-display {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  animation: coinBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes coinBounce {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

.reward-modal-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: titleFadeIn 0.4s ease 0.2s both;
}

.reward-amount {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  animation: amountPop 0.5s ease 0.3s both;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes amountPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reward-modal-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  animation: subtitleFadeIn 0.4s ease 0.4s both;
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive for modal */
@media (max-width: 640px) {
  .feedback-reward-modal-inner {
    padding: 32px 24px;
  }

  .reward-modal-title {
    font-size: 24px;
  }

  .reward-amount {
    font-size: 32px;
  }
}

