/* Gamification Section */
.gamification {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gamification h2 {
  width: 100%;
  margin-bottom: 1rem;
}

/* Streak Pills */
.streak-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.streak-pill.active {
  border-color: var(--accent);
  background-color: var(--accent-bg);
}

.streak-pill .icon {
  font-size: 1.2rem;
}

/* Motivation Card */
.motivation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Motivation Avatar */
.motivation-avatar {
  width: 80px;
  height: 80px;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: breathe 3s ease-in-out infinite;
}

.motivation-avatar .avatar-face {
  font-size: 2.5rem;
}

.motivation-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* Achievements */
.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  width: 100%;
}

.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement.unlocked {
  border-color: var(--accent);
  background-color: var(--accent-bg);
  animation: bounceIn 0.5s ease;
}

.achievement.locked {
  opacity: 0.5;
}

.achievement-icon {
  font-size: 2rem;
}

.achievement-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.achievement-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Retro theme overrides */
[data-theme="retro"] .streak-pill {
  border-radius: 0;
  border-width: 2px;
}

[data-theme="retro"] .streak-pill.active {
  background-color: var(--accent);
  color: var(--bg-color);
}

[data-theme="retro"] .avatar {
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="retro"] .achievement {
  border-radius: 0;
  border-width: 2px;
}

[data-theme="retro"] .achievement.unlocked {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Leather theme overrides */
[data-theme="leather"] .streak-pill {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="leather"] .streak-pill.active {
  box-shadow: 0 4px 8px rgba(201, 162, 39, 0.3);
}

[data-theme="leather"] .avatar {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(201, 162, 39, 0.2);
}

[data-theme="leather"] .achievement {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="leather"] .achievement.unlocked {
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}