/**
 * Achievement System Styles
 */

.achievement-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(20px);
  border: 2px solid #FFD700;
  border-radius: 20px;
  padding: 20px 24px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.achievement-notification.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.achievement-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.achievement-icon {
  font-size: 48px;
  animation: bounce 0.6s infinite alternate;
}

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

.achievement-info {
  text-align: left;
}

.achievement-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.achievement-name {
  font-size: 18px;
  font-weight: 900;
  color: white;
  margin-bottom: 4px;
}

.achievement-reward {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Achievements Overlay */
.achievements-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.achievements-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.achievements-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.achievements-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: white;
}

.achievements-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.achievements-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #00D2FF;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.achievements-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.achievement-category {
  margin-bottom: 24px;
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-items {
  display: grid;
  gap: 12px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s;
}

.achievement-item.unlocked {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.achievement-item.locked {
  opacity: 0.6;
}

.item-icon {
  font-size: 32px;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.item-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.item-reward {
  font-size: 11px;
  color: #FFD700;
  margin-top: 4px;
}

/* Daily Challenge Styles */
.daily-challenge-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.daily-challenge-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.daily-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.daily-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 450px;
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.daily-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: white;
}

.streak-badge {
  background: linear-gradient(135deg, #FF512F, #DD2476);
  padding: 8px 16px;
  border-radius: 20px;
}

.streak-count {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.challenge-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.challenge-constraints {
  margin-bottom: 20px;
}

.challenge-constraints h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.constraint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 81, 47, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}

.constraint-icon {
  font-size: 16px;
}

.constraint-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.no-constraints {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.challenge-rewards {
  margin-bottom: 24px;
}

.challenge-rewards h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.rewards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reward {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 12px;
}

.reward.bonus {
  background: rgba(255, 215, 0, 0.1);
}

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

.reward-text {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.daily-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.start-challenge-btn {
  background: linear-gradient(135deg, #00D2FF, #3A7BD5);
  border: none;
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.start-challenge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.close-daily-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.completed-message {
  text-align: center;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 16px;
}

.completed-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.completed-stats {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* Challenge Timer */
.challenge-timer {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 8px 16px;
  z-index: 1000;
}

.bp-mobile .challenge-timer,
.bp-tablet .challenge-timer {
  top: 52px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 10px;
}

.bp-mobile .timer-value,
.bp-tablet .timer-value {
  font-size: 14px;
}

.challenge-timer.warning {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-icon {
  font-size: 20px;
}

.timer-value {
  font-size: 18px;
  font-weight: 900;
  color: white;
}
