/* User Achievements - Modern Design mit Darkmode */

.ua-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.ua-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ua-title {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.ua-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ua-grid.ua-grid-compact {
  gap: 8px;
}

.ua-item {
  border-radius: 12px;
  padding: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  color: #1a1a1a;
}

.ua-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ua-item.ua-unlocked {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.ua-item.ua-unlocked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.ua-item.ua-locked {
  opacity: 0.75;
}

.ua-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ua-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.ua-item.ua-unlocked .ua-item-icon {
  opacity: 1;
}

.ua-item-title {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  flex: 1;
}

.ua-item-state {
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}

.ua-item.ua-locked .ua-item-state {
  color: #9ca3af;
  font-size: 14px;
}

.ua-item-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  min-height: 32px;
}

.ua-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.ua-icons-title {
  font-weight: 700;
  font-size: 12px;
  color: #1a1a1a;
  opacity: 0.9;
}

.ua-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ua-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.03);
  color: #111827;
}

.ua-icon-locked {
  opacity: 0.45;
}

.ua-icon-unlocked {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.ua-icon .icon {
  display: block;
}

.ua-progress {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.ua-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  position: relative;
}

.ua-item.ua-unlocked .ua-progress-fill {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.ua-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.ua-item-meta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ua-cta {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a00 0%, #ff6a00 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(255, 138, 0, 0.25);
  transition: all 0.2s ease;
}

.ua-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.35);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .ua-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .ua-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .ua-title {
    color: #f1f5f9;
  }

  .ua-item {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
  }

  .ua-item.ua-unlocked {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-color: rgba(34, 197, 94, 0.4);
  }

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

  .ua-item-title {
    color: #f1f5f9;
  }

  .ua-item-state {
    color: #22c55e;
  }

  .ua-item.ua-locked .ua-item-state {
    color: #64748b;
  }

  .ua-item-desc {
    color: #94a3b8;
  }

  .ua-icons {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .ua-icons-title {
    color: #f1f5f9;
  }

  .ua-icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
  }

  .ua-icon-unlocked {
    border-color: rgba(34, 197, 94, 0.40);
    background: rgba(34, 197, 94, 0.12);
  }

  .ua-icon-locked {
    opacity: 0.40;
  }

  .ua-progress {
    background: rgba(255, 255, 255, 0.08);
  }

  .ua-item-meta {
    color: #94a3b8;
  }

  .ua-cta {
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.4);
  }

  .ua-cta:hover {
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.5);
  }
}

/* Responsive */
@media (max-width: 560px) {
  .ua-card {
    padding: 16px;
  }

  .ua-item {
    padding: 12px;
  }
}
