/**
 * Daily Login Rewards Styles
 */

/* Daily Rewards Modal */
#daily-rewards-modal .modal-content {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.daily-rewards-content {
  max-width: 600px;
  text-align: center;
}

/* Custom scrollbar for daily rewards modal */
#daily-rewards-modal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#daily-rewards-modal .modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#daily-rewards-modal .modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4caf50, #388e3c);
  border-radius: 4px;
}

#daily-rewards-modal .modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #66bb6a, #43a047);
}

.daily-rewards-header {
  margin-bottom: 20px;
}

.daily-rewards-header h2 {
  color: #4caf50;
  margin-bottom: 5px;
}

.streak-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
}

.streak-count {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.streak-number {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  line-height: 1;
}

.streak-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.streak-fire {
  font-size: 36px;
  animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
  from { transform: scale(1) rotate(-5deg); }
  to { transform: scale(1.1) rotate(5deg); }
}

/* Current Reward Display */
.current-reward {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.current-reward::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  animation: reward-spin 4s linear infinite;
}

@keyframes reward-spin {
  to { transform: rotate(360deg); }
}

.current-reward-content {
  position: relative;
  z-index: 1;
}

.reward-day {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.reward-icon {
  font-size: 64px;
  margin: 10px 0;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.reward-name {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin: 10px 0 5px;
}

.reward-description {
  font-size: 16px;
  color: #4caf50;
}

/* Claim Button */
.claim-reward-btn {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.claim-reward-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.claim-reward-btn:disabled {
  background: linear-gradient(135deg, #555, #444);
  cursor: not-allowed;
  box-shadow: none;
}

.claim-reward-btn:disabled:hover {
  transform: none;
}

/* Countdown Timer */
.claim-countdown {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 10px;
}

.countdown-time {
  color: #ffd700;
  font-weight: bold;
}

/* Upcoming Rewards Calendar */
.upcoming-rewards {
  margin-top: 25px;
}

.upcoming-rewards h3 {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.rewards-calendar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.calendar-day {
  width: 70px;
  padding: 10px 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.calendar-day.current {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  transform: scale(1.1);
}

.calendar-day.milestone {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
}

.calendar-day.claimed {
  opacity: 0.5;
}

.calendar-day-number {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.calendar-day-icon {
  font-size: 24px;
}

.calendar-day-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Display */
.daily-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-stat {
  text-align: center;
}

.daily-stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
}

.daily-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Bundle Rewards Display */
.bundle-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.bundle-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Claim Success Animation */
.claim-success {
  animation: claim-celebrate 0.5s ease-out;
}

@keyframes claim-celebrate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Milestone Badge */
.milestone-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
  text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .daily-rewards-content {
    padding: 15px;
  }

  .streak-number {
    font-size: 36px;
  }

  .reward-icon {
    font-size: 48px;
  }

  .rewards-calendar {
    gap: 5px;
  }

  .calendar-day {
    width: 45px;
    padding: 8px 3px;
  }

  .calendar-day-icon {
    font-size: 18px;
  }

  .daily-stats {
    gap: 15px;
  }
}
