/* Rewards Popup Styles */

.rewards-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rewards-popup.active {
  opacity: 1;
}

.rewards-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.rewards-popup-content {
  position: relative;
  background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 100%);
  border: 4px solid #6a3cce;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(106, 60, 206, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rewards-popup.active .rewards-popup-content {
  transform: scale(1);
}

.rewards-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #6a3cce;
  background: rgba(106, 60, 206, 0.2);
}

.rewards-popup-title {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 28px;
  color: #FFD700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rewards-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.rewards-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.rewards-popup-body {
  padding: 20px 30px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
  scrollbar-width: thin;
  scrollbar-color: #6a3cce #1a0033;
}

.rewards-popup-body::-webkit-scrollbar {
  width: 10px;
}

.rewards-popup-body::-webkit-scrollbar-track {
  background: #1a0033;
  border-radius: 5px;
}

.rewards-popup-body::-webkit-scrollbar-thumb {
  background: #6a3cce;
  border-radius: 5px;
}

.rewards-popup-body::-webkit-scrollbar-thumb:hover {
  background: #8a5cee;
}

.reward-section {
  margin-bottom: 30px;
}

.reward-section-title {
  font-family: 'Pixelifysans', sans-serif;
  font-size: 20px;
  color: #FFD700;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.reward-item {
  background: rgba(106, 60, 206, 0.15);
  border: 2px solid #6a3cce;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  gap: 15px;
}

.reward-item:hover {
  background: rgba(106, 60, 206, 0.25);
  border-color: #8a5cee;
  transform: translateX(5px);
}

.reward-item.special {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.reward-item.special:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFA500;
}

.reward-cards {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.reward-cards img {
  width: 60px;
  height: auto;
  border-radius: 6px;
  border: 2px solid #6a3cce;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.reward-cards img:hover {
  transform: scale(1.1);
}

.reward-cards .plus {
  color: #FFD700;
  font-size: 20px;
  font-weight: bold;
}

.reward-description {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.reward-description img.special-card {
  width: 60px;
  height: auto;
  border-radius: 6px;
  border: 2px solid #FFD700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.reward-description img.reward-icon {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  object-fit: contain;
}

.reward-text {
  color: #fff;
  font-size: 16px;
  font-family: 'Pixelifysans', sans-serif;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 220px;
  justify-content: flex-end;
}

.reward-amount {
  color: #FFD700;
  font-size: 18px;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  min-width: 120px;
  text-align: right;
}

.claim-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: 2px solid #2e7d32;
  border-radius: 8px;
  color: white;
  font-family: 'Pixelifysans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.claim-button:hover {
  background: linear-gradient(135deg, #66BB6A, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.claim-button:active {
  transform: translateY(0);
}

.claim-button:disabled {
  background: #666;
  border-color: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rewards-popup-content {
    width: 95%;
    max-height: 90vh;
  }

  .rewards-popup-header {
    padding: 20px;
  }

  .rewards-popup-title {
    font-size: 22px;
  }

  .rewards-popup-body {
    padding: 15px 20px;
  }

  .reward-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .reward-cards {
    flex-wrap: wrap;
  }

  .reward-cards img {
    width: 50px;
  }

  .reward-info {
    width: 100%;
    justify-content: space-between;
    min-width: auto;
  }

  .reward-amount {
    min-width: auto;
  }

  .reward-description img.special-card {
    width: 50px;
  }
}

