/* Achievement Modal */
.achievement-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-modal.hidden {
  display: none;
}

.achievement-modal-content {
  background: #ffffff;
  border: 2px solid #cccccc;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .achievement-modal-content {
  background: #2a2a2a;
  border-color: #555555;
}

.achievement-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.achievement-modal-header h2 {
  margin: 0;
  flex-grow: 1;
  text-align: center;
  color: #333333;
  font-size: 24px;
}

[data-theme="dark"] .achievement-modal-header h2 {
  color: #ffffff;
}

.achievement-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  border: none;
  background: none;
  padding: 0;
  width: 30px;
  text-align: center;
}

[data-theme="dark"] .achievement-close {
  color: #ffffff;
}

.achievement-close:hover {
  opacity: 0.7;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #cccccc;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

[data-theme="dark"] .achievement-item {
  background: #333333;
  border-color: #555555;
}

.achievement-item.unlocked {
  background: #e8f5e8;
  border-color: #4caf50;
}

[data-theme="dark"] .achievement-item.unlocked {
  background: #2d4a2d;
  border-color: #4caf50;
}

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

.achievement-item-icon {
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.achievement-item-text {
  flex-grow: 1;
}

.achievement-item-title {
  font-weight: bold;
  font-size: 16px;
  color: #333333;
  margin-bottom: 5px;
}

[data-theme="dark"] .achievement-item-title {
  color: #ffffff;
}

.achievement-item-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.3;
}

[data-theme="dark"] .achievement-item-description {
  color: #cccccc;
}

.achievement-item-date {
  font-size: 12px;
  color: #888888;
  margin-top: 5px;
  font-style: italic;
}

[data-theme="dark"] .achievement-item-date {
  color: #aaaaaa;
}

/* Achievement Notification */
.achievement-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #e8f5e8;
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 20px;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.5s ease;
  max-width: 400px;
  width: 90%;
}

[data-theme="dark"] .achievement-notification {
  background: #2d4a2d;
}

.achievement-notification.hidden {
  display: none;
}

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

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

.achievement-icon {
  font-size: 32px;
  width: 40px;
  text-align: center;
}

.achievement-text {
  flex-grow: 1;
}

.achievement-title {
  font-weight: bold;
  font-size: 16px;
  color: #333333;
  margin-bottom: 5px;
}

[data-theme="dark"] .achievement-title {
  color: #ffffff;
}

.achievement-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.3;
}

[data-theme="dark"] .achievement-description {
  color: #cccccc;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .achievement-modal-content {
    padding: 20px;
    max-width: 95%;
  }

  .achievement-modal-header h2 {
    font-size: 20px;
  }

  .achievement-item {
    padding: 12px;
  }

  .achievement-item-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 25px;
  }

  .achievement-item-title {
    font-size: 14px;
  }

  .achievement-item-description {
    font-size: 12px;
  }

  .achievement-notification {
    top: 15px;
    padding: 15px;
  }

  .achievement-icon {
    font-size: 24px;
    width: 30px;
  }

  .achievement-title {
    font-size: 14px;
  }

  .achievement-description {
    font-size: 12px;
  }
}
